summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5b6ffff)
raw | patch | inline | side by side (parent: 5b6ffff)
author | Shawn O. Pearce <spearce@spearce.org> | |
Mon, 28 May 2007 15:11:56 +0000 (11:11 -0400) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Mon, 28 May 2007 21:50:41 +0000 (17:50 -0400) |
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>
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>
git-gui.sh | patch | blob | history | |
lib/option.tcl | patch | blob | history |
diff --git a/git-gui.sh b/git-gui.sh
index d238d452385e73ab4b43c0d38284a35388ba8f03..c1a6b84fa44262dd3410dafd064a14e32191d25c 100755 (executable)
--- a/git-gui.sh
+++ b/git-gui.sh
} else {
set auto_path [concat [list $oguilib] $auto_path]
}
-unset -nocomplain oguilib oguirel idx fd
+unset -nocomplain oguirel idx fd
if {![catch {set _verbose $env(GITGUI_VERBOSE)}]} {
unset _verbose
diff --git a/lib/option.tcl b/lib/option.tcl
index e06aca59f3165348aa8263a2e4e6f525b1f7965c..9f76f0294eb5c855c65b1531dc5d29fe3a82c565 100644 (file)
--- a/lib/option.tcl
+++ b/lib/option.tcl
}
proc do_about {} {
- global appvers copyright
+ global appvers copyright oguilib
global tcl_patchLevel tk_patchLevel
set w .about_dialog
append v ", Tk version $tk_patchLevel"
}
+ set d {}
+ append d "git exec dir: [gitexec]\n"
+ append d "git-gui lib: $oguilib"
+
label $w.vers \
-text $v \
-padx 5 -pady 5 \
-relief solid
pack $w.vers -side top -fill x -padx 5 -pady 5
+ label $w.dirs \
+ -text $d \
+ -padx 5 -pady 5 \
+ -justify left \
+ -anchor w \
+ -borderwidth 1 \
+ -relief solid
+ pack $w.dirs -side top -fill x -padx 5 -pady 5
+
menu $w.ctxm -tearoff 0
$w.ctxm add command \
-label {Copy} \