@matheusbsbs / matheus-bagliano / commits / 2f4479fb17
Fork 0

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>

Shawn O. Pearce committed Jan 20, 2007 at 20:04 UTC 2f4479fb177fbbeab7c7311f3b2f1f31c6de428a
1 file changed +4 -3
git-gui.sh
+4 -3
@@ -2505,7 +2505,7 @@ proc do_commit {} {
2505 }
2506
2507 proc do_about {} {
2508 - global appname copyright
2508 + global appname appvers copyright
2509 global tcl_patchLevel tk_patchLevel
2510
2511 set w .about_dialog
@@ -2534,8 +2534,9 @@ $copyright" \
2534 -font font_ui
2535 pack $w.desc -side top -fill x -padx 5 -pady 5
2536
2537 - set v [exec git --version]
2538 - append v "\n\n"
2537 + set v {}
2538 + append v "$appname version $appvers\n\n"
2539 + append v "[exec git --version]\n\n"
2540 if {$tcl_patchLevel eq $tk_patchLevel} {
2541 append v "Tcl/Tk version $tcl_patchLevel"
2542 } else {