summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Shawn O. Pearce <spearce@spearce.org>2007-01-20 20:04:02 -0500
committerLibravatar Shawn O. Pearce <spearce@spearce.org>2007-01-21 02:54:18 -0500
commit2f4479fb177fbbeab7c7311f3b2f1f31c6de428a (patch)
tree3b18b02e0728b0816f3f77853da710a893b4ff21
parentgit-gui: Modified makefile to embed version into git-gui script. (diff)
downloadtgif-2f4479fb177fbbeab7c7311f3b2f1f31c6de428a.tar.xz
git-gui: Display the git-gui version in the Help->About dialog.
Now that we know what version git-gui is, the about dialog should display it to the end-user. This way users can find out what version they have before they report a problem or request a feature. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
-rwxr-xr-xgit-gui.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/git-gui.sh b/git-gui.sh
index 0770ad03f9..212a093118 100755
--- a/git-gui.sh
+++ b/git-gui.sh
@@ -2505,7 +2505,7 @@ proc do_commit {} {
}
proc do_about {} {
- global appname copyright
+ global appname appvers copyright
global tcl_patchLevel tk_patchLevel
set w .about_dialog
@@ -2534,8 +2534,9 @@ $copyright" \
-font font_ui
pack $w.desc -side top -fill x -padx 5 -pady 5
- set v [exec git --version]
- append v "\n\n"
+ set v {}
+ append v "$appname version $appvers\n\n"
+ append v "[exec git --version]\n\n"
if {$tcl_patchLevel eq $tk_patchLevel} {
append v "Tcl/Tk version $tcl_patchLevel"
} else {