@matheusbsbs / matheus-bagliano / commits / 26ae37d6fc
Fork 0

git-gui: Show the git-gui library path in 'About git-gui'

Because we now try to automatically guess the library directory in certain installations users may wonder where git-gui is getting its supporting files from. We now display this location in our About dialog, and we also include the location we are getting our Git executables from. Unfortunately users cannot use this 'About git-gui' dialog to troubleshoot library loading problems; the dialog is defined by code that exists in the library directory, creating a catch-22. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

Shawn O. Pearce committed May 28, 2007 at 11:11 UTC 26ae37d6fc9eeec27a0edf98c820b8a0b98e96f3
2 files changed +15 -2
git-gui.sh
+1 -1
@@ -59,7 +59,7 @@ if {$idx ne {}} {
59 } else {
60 set auto_path [concat [list $oguilib] $auto_path]
61 }
62 -unset -nocomplain oguilib oguirel idx fd
62 +unset -nocomplain oguirel idx fd
63
64 if {![catch {set _verbose $env(GITGUI_VERBOSE)}]} {
65 unset _verbose
lib/option.tcl
+14 -1
@@ -52,7 +52,7 @@ proc save_config {} {
52 }
53
54 proc do_about {} {
55 - global appvers copyright
55 + global appvers copyright oguilib
56 global tcl_patchLevel tk_patchLevel
57
58 set w .about_dialog
@@ -91,6 +91,10 @@ $copyright" \
91 append v ", Tk version $tk_patchLevel"
92 }
93
94 + set d {}
95 + append d "git exec dir: [gitexec]\n"
96 + append d "git-gui lib: $oguilib"
97 +
98 label $w.vers \
99 -text $v \
100 -padx 5 -pady 5 \
@@ -100,6 +104,15 @@ $copyright" \
104 -relief solid
105 pack $w.vers -side top -fill x -padx 5 -pady 5
106
107 + label $w.dirs \
108 + -text $d \
109 + -padx 5 -pady 5 \
110 + -justify left \
111 + -anchor w \
112 + -borderwidth 1 \
113 + -relief solid
114 + pack $w.dirs -side top -fill x -padx 5 -pady 5
115 +
116 menu $w.ctxm -tearoff 0
117 $w.ctxm add command \
118 -label {Copy} \