Question: I'm customizing my git log to be all in 1 line. Specifically, I added the following alias:

```
lg = log --graph --pretty=format:'%Cred%h%Creset - %C(yellow)%an%Creset - %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative

```

So, when I run `git lg`, I see the following:

```
* 41a49ad - zain - commit 1 message here (3 hours ago)
* 6087812 - zain - commit 2 message here (5 hours ago)
* 74842dd - zain - commit 3 message here (6 hours ago)

```

However, I want to add the SVN revision number in there too, so it looks something like: 

```
* 41a49ad - r1593 - zain - commit 1 message here (3 hours ago)

```

The normal `git log` shows you the SVN revision number, so I'm sure this must be possible. How do I do this?

Answer: 
Run:

```
git rev-parse HEAD

```

which gives you git commit hash.

Then use that commit hash to run:

```
git svn find-rev <commit_hash>

```

Which gives you svn revision.
Ended up with something like this:

```
git svn log --oneline -1 | cut -d '|' -f1

```

That gives the last revision from that repo (you can tweak `git svn log` parameters for showing another revision, but keep `--oneline` and `-1`), but with a trailing whitespace (something like `"r9441 "`) that I think should be easy to strip out.

Hope it helps...