git-gui: Unabbreviate commit SHA-1s prior to display
commit02087abccea681bc0e1f6a9607e97df79ebbf2d9
authorShawn O. Pearce <spearce@spearce.org>
Mon, 9 Jul 2007 01:19:59 +0000 (8 21:19 -0400)
committerShawn O. Pearce <spearce@spearce.org>
Mon, 9 Jul 2007 02:34:51 +0000 (8 22:34 -0400)
treead466fc8d68d0fd3eb3d152a25cfdec3ccef60d2
parentd41b43eb4c73044d0fff2057211fc78e4e7b2094
git-gui: Unabbreviate commit SHA-1s prior to display

If the end-user feeds us an abbreviated SHA-1 on the command line for
`git gui browser` or `git gui blame` we now unabbreviate the value
through `git rev-parse` so that the title section of the blame or
browser window shows the user the complete SHA-1 as Git determined
it to be.

If the abbreviated value was ambiguous we now complain with the
standard error message(s) as reported by git-rev-parse --verify,
so that the user can understand what might be wrong and correct
their command line.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui.sh