I cloned a project with --depth 1 and got over the inability to commit my changes by using filter-branch to remove
the prior history (bar the last commit prior to mine). I pushed up my new branch to github and looked
at ‘compare’ between my branch and the former ‘master’.
It informed me that:
There isn’t anything to compare.
master and subdeps are entirely different commit histories.
though the file changes are commited and shown.
I gather this prevents a pull request.
I thought that having the last commit in place would be sufficient to link the end of one branch with the beginning
of another, but this doesn’t seem to be the case. Perhaps then the hash only relates to the changes made and does not encompass the hashes of parent commits?
So is the _entire_ history of a branch required in one’s clone in order for Github to generate a pull request?