We are trying to set up a way to have the pull request default to the correct branch (which is the parent one 95% of the time). While trying to do this, I inevidably come across the reality that there is not a greate way to get the parent branch of a branch. The reason why this is hard is that a branch is just a pointer to a commit, and a commit may have multiple or no parents. What I don't understand is why a branch is only a pointer to a commit? It would seem useful to also track an additional piece piece of data that would point to a parent branch, and when you create a new branch with checkout -b, it would get the current branch you are in and set that as the parent of the new branch. If you are merging branches, there would be multiple parents of the commit, but the branch and parent branch would still stay the same as it was before the merge. Is there some design reason why this information is not stored? If not, is there some reason the git community wouldn't accept this sort of change?
... View more