kakyo
kakyo

Reputation: 11580

git-svn: How to know current SVN revision of a git-svn working copy?

I have a git-svn working copy and git log gives me no direct info about which SVN revision I'm on. I understand that once I rebase I should have all upstream logs converted into git log, but that still doesn't seem to give a REVISION NUMBER to me and I'd have to do text mining to find out.

Is there a simple command that I'm missing?

Upvotes: 3

Views: 78

Answers (1)

Michael Mrozek
Michael Mrozek

Reputation: 175315

It shows up at the bottom of each commit message. There's a log line similar to this:

git-svn-id: http://svn.example.com/trunk/whatever@12345 [git-svn remote hash]

The 12345 is that commit's SVN revision

Upvotes: 3

Related Questions