summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ff9db6c)
raw | patch | inline | side by side (parent: ff9db6c)
author | Pat Thoyts <patthoyts@users.sourceforge.net> | |
Tue, 5 Oct 2010 22:39:54 +0000 (23:39 +0100) | ||
committer | Pat Thoyts <patthoyts@users.sourceforge.net> | |
Tue, 5 Oct 2010 22:39:54 +0000 (23:39 +0100) |
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
git-gui.sh | patch | blob | history |
diff --git a/git-gui.sh b/git-gui.sh
index 422d4ff5bd9157d64dce272608203f91d6765854..ed0904d9935c0d143cb624a651e24667fffd457b 100755 (executable)
--- a/git-gui.sh
+++ b/git-gui.sh
set s "usage: $::argv0 $::subcommand $::subcommand_args"
if {[tk windowingsystem] eq "win32"} {
wm withdraw .
- tk_messageBox -icon info -title "Usage" -message $s
+ tk_messageBox -icon info -message $s \
+ -title [mc "Usage"]
} else {
puts stderr $s
}
if {[catch {
set head [git rev-parse --verify $head]
} err]} {
- puts stderr $err
+ if {[tk windowingsystem] eq "win32"} {
+ tk_messageBox -icon error -title [mc Error] -message $err
+ } else {
+ puts stderr $err
+ }
exit 1
}
}
citool -
gui {
if {[llength $argv] != 0} {
- puts -nonewline stderr "usage: $argv0"
- if {$subcommand ne {gui}
- && [file tail $argv0] ne "git-$subcommand"} {
- puts -nonewline stderr " $subcommand"
- }
- puts stderr {}
- exit 1
+ usage
}
# fall through to setup UI for commits
}
default {
- puts stderr "usage: $argv0 \[{blame|browser|citool}\]"
+ set err "usage: $argv0 \[{blame|browser|citool}\]"
+ if {[tk windowingsystem] eq "win32"} {
+ wm withdraw .
+ tk_messageBox -icon error -message $err \
+ -title [mc "Usage"]
+ } else {
+ puts stderr $err
+ }
exit 1
}
}