I have a long running git branch. I am trying to determine its ancestor. For example, if I am on a staging
branch that split from master
, the following commands would be perfect:
> git log --show-ancestor-branch
master
or
> git log --show-branches-with-common-ancestors
master
What I mean by ancestor is that master
in the following log would be an ancestor of staging
.
* 741c3fd (master)
| * a8503ef (HEAD, staging)
|/
|
|
* bd783e3 Add simple query expressions
The following did not work:
* `git log --ancestry-path`
* ` git merge-base -a`
The following would work in subversion:
svn log --stop-on-copy