tmwoods
tmwoods

Reputation: 2413

How to search branch revision number in Git

We've just switched from SVN to Git and we've always used the revision count as our File Version in our build dll. Now that we've switched to Git, we are making the transition to just use hashes, but in the meantime we are using the commit count (git rev-list --count HEAD) from our release branch. Yes I know there are pitfalls with this.

However, I am trying to figure out how to map back to a specific commit in the branch when only having the commit number. I can search with either TortoiseGit or Bash with the hash but can't figure out how to do this with the branch name and revision count. How can I do that?

Upvotes: 0

Views: 2089

Answers (1)

MrTux
MrTux

Reputation: 34032

Go to TortoiseGit settings -> General -> Dialogs 1 and enable "Display branch revision number". After enabling the revision number is shown in each commit message in log dialog.

Upvotes: 1

Related Questions