I am trying to count the number of commits since a tag was made.
I have tried using
$ git rev-list 1.7Start^..HEAD | wc -l
$ git rev-list HEAD | wc -l
git rev-list master | wc -l
git rev-list master
The results that you're getting suggest that there is no history in common between
HEAD must have different root commits. (The syntax
a..b when passed to
git rev-list just means "every commit in
b which isn't in
In the comments above, the questioner indicated that this arose because the repository was migrated from Subversion, and
master is entirely distinct from the imported branch that
1.7Start points to.