Is there a subwcrev equivalent in TortoiseGit?

825 views
Skip to first unread message

chris....@gmail.com

unread,
Jul 6, 2015, 3:38:11 PM7/6/15
to tortoise...@googlegroups.com
I'm looking to transition a project from SVN to Git, but one of the things I'll need to change is the product versioning.  I have several projects where I use subwcrev from TortoiseSVN to pull the current commit ID into the version number (e.g. 8.0.1.23572).  Is there an equivalent in TortoiseGit?  I've seen references to it, but it doesn't appear to be installed with the package.  I'll have a look at the source and see what's there, but if anyone has any guidance/suggestions on what to use for embedding some or all of the commit ID into a file pre-build, I'd really appreciate it. 

Sven Strickroth

unread,
Jul 24, 2015, 6:03:28 AM7/24/15
to tortoisegit-users, chris....@gmail.com, chris....@gmail.com
Am Montag, 6. Juli 2015 21:38:11 UTC+2 schrieb chris....@gmail.com:
I'm looking to transition a project from SVN to Git, but one of the things I'll need to change is the product versioning.  I have several projects where I use subwcrev from TortoiseSVN to pull the current commit ID into the version number (e.g. 8.0.1.23572).  Is there an equivalent in TortoiseGit?  I've seen references to it, but it doesn't appear to be installed with the package.  I'll have a look at the source and see what's there, but if anyone has any guidance/suggestions on what to use for embedding some or all of the commit ID into a file pre-build, I'd really appreciate it. 

So far there is no equivalend for TortoiseGit.

Main reason is, that one cannot use git commit IDs (SHA1) as version numbers as  those do not only contains (increasing) numbers (but also the characters a-f). If there is really a need for an equivalent please open an issue.
Message has been deleted

perfor...@gmail.com

unread,
Dec 5, 2018, 8:58:15 PM12/5/18
to tortoisegit-users
With the latest TortoiseGit 2.7.0, you can simply replace SubWCRev with GitWCRev and get the same results.  Revision will use git's SHA1.

Reply all
Reply to author
Forward
0 new messages