git-gui: Show only the abbreviated SHA1 after committing.
There's really no great reason to show the entire commit object id within the GUI, especially if the user is unable to copy and paste it into another interface such as gitk or a terminal window. So we'll just show them the first 8 digits and hope that is unique within their repository. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Shawn O. Pearce committed
Nov 8, 2006 at 22:51 UTC
d4ab2035ca64ccb380c42a73f1ce0aefe1669a39
1 file changed
+1
-1
git-gui
+1
-1
@@ -626,7 +626,7 @@ proc commit_stage2 {fd_wt curHEAD msg} {
626
set HEAD $cmt_id
627
set PARENT $cmt_id
628
unlock_index
629
- update_status "Changes committed as $cmt_id."
629
+ update_status "Changes committed as [string range $cmt_id 0 7]."
630
}
631
632
######################################################################