summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3f28f63)
raw | patch | inline | side by side (parent: 3f28f63)
author | Shawn O. Pearce <spearce@spearce.org> | |
Sun, 29 Apr 2007 00:49:22 +0000 (20:49 -0400) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Wed, 2 May 2007 17:06:09 +0000 (13:06 -0400) |
Now that the command line git-commit has made displaying
the subject (first line) of the newly created commit popular
we can easily do the same thing here in git-gui, without the
ugly part of forking off a child process to obtain that first
line.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
the subject (first line) of the newly created commit popular
we can easily do the same thing here in git-gui, without the
ugly part of forking off a child process to obtain that first
line.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui.sh | patch | blob | history |
diff --git a/git-gui.sh b/git-gui.sh
index 0ad2815d1086d3843fbb093cc3d984aee4f63e3f..f6c6d44357502672bca34be983eda8a5b29221c8 100755 (executable)
--- a/git-gui.sh
+++ b/git-gui.sh
}
set i [string first "\n" $msg]
if {$i >= 0} {
- append reflogm {: } [string range $msg 0 [expr {$i - 1}]]
+ set subject [string range $msg 0 [expr {$i - 1}]]
} else {
- append reflogm {: } $msg
+ set subject $msg
}
+ append reflogm {: } $subject
set cmd [list git update-ref -m $reflogm HEAD $cmt_id $curHEAD]
if {[catch {eval exec $cmd} err]} {
error_popup "update-ref failed:\n\n$err"
unlock_index
reshow_diff
set ui_status_value \
- "Changes committed as [string range $cmt_id 0 7]."
+ "Created commit [string range $cmt_id 0 7]: $subject"
}
######################################################################