On 25/04/12 23:37, Krinkle wrote:
== Gerrit change numbers ==
- Specific to gerrit, requires gerrit to get/resolve them (might become problematic in long-term if we drop gerrit)
- Not usable in git cli
- One id per change set, not per patch/commit/amend
- Easy to link in bugzilla ("gerrit( change) #")
- Link to it can be copied from the address bar in Gerrit
Example links:
git config --add alias.showc '!git show changes/${1: -2}/$1/${2:-1} #'
Then git showc 5596 works as git show 07326ad522ea520e7ab71c84d2ab520b63451656, showing the contents of patchset 1 of https://gerrit.wikimedia.org/r/#change,5596
You need to fetch changes, though. That means a line fetch = +refs/changes/*:refs/changes/* in the [remote "origin"] section of your config.