Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
git-gui: display error launching blame as a message box.
author
Pat Thoyts
<patthoyts@users.sourceforge.net>
Sat, 7 Aug 2010 23:07:43 +0000
(
00:07
+0100)
committer
Pat Thoyts
<patthoyts@users.sourceforge.net>
Sat, 7 Aug 2010 23:07:43 +0000
(
00:07
+0100)
This does not appear to Windows users and can follow the form of the fatal
error messages near the top of the script file.
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
git-gui.sh
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
ea47503
)
diff --git
a/git-gui.sh
b/git-gui.sh
index e554043e99ce25bf1066e930a3be67d54b4e0ec5..815725d1e1fec3068e07320a682becd80d25fff9 100755
(executable)
--- a/
git-gui.sh
+++ b/
git-gui.sh
@@
-2944,7
+2944,12
@@
blame {
}
blame {
if {$head eq {} && ![file exists $path]} {
- puts stderr [mc "fatal: cannot stat path %s: No such file or directory" $path]
+ catch {wm withdraw .}
+ tk_messageBox \
+ -icon error \
+ -type ok \
+ -title [mc "git-gui: fatal error"] \
+ -message [mc "fatal: cannot stat path %s: No such file or directory" $path]
exit 1
}
blame::new $head $path $jump_spec