summaryrefslogtreecommitdiff
path: root/git-gui
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2006-11-08 22:51:09 -0500
committerShawn O. Pearce <spearce@spearce.org>2006-11-08 22:51:09 -0500
commitd4ab2035ca64ccb380c42a73f1ce0aefe1669a39 (patch)
tree5252154303d13f17f833d90078c3408e399d3641 /git-gui
parent7fe7e733fafbab0373ee0d8fc35b9e284a598ee4 (diff)
downloadgit-d4ab2035ca64ccb380c42a73f1ce0aefe1669a39.tar.gz
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>
Diffstat (limited to 'git-gui')
-rwxr-xr-xgit-gui2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-gui b/git-gui
index c57d713144..1b1ffee5ea 100755
--- a/git-gui
+++ b/git-gui
@@ -626,7 +626,7 @@ proc commit_stage2 {fd_wt curHEAD msg} {
set HEAD $cmt_id
set PARENT $cmt_id
unlock_index
- update_status "Changes committed as $cmt_id."
+ update_status "Changes committed as [string range $cmt_id 0 7]."
}
######################################################################