summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 72a8e81)
raw | patch | inline | side by side (parent: 72a8e81)
author | Shawn O. Pearce <spearce@spearce.org> | |
Thu, 27 Sep 2007 06:15:29 +0000 (02:15 -0400) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Fri, 28 Sep 2007 02:17:01 +0000 (22:17 -0400) |
When displaying the name of the application in window titles
and menu options (e.g. "About [appname]") we would prefer to
call ourselves "Git Gui" over "git-gui" as the former name is
now being actively used in the Mac OS X UI strings and just
plain looks better to the reader.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
and menu options (e.g. "About [appname]") we would prefer to
call ourselves "Git Gui" over "git-gui" as the former name is
now being actively used in the Mac OS X UI strings and just
plain looks better to the reader.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui.sh | patch | blob | history |
diff --git a/git-gui.sh b/git-gui.sh
index 843191a896de0318967600a49be949195a714a80..82f873bdcde560243646eae22561cbf027259525 100755 (executable)
--- a/git-gui.sh
+++ b/git-gui.sh
##
## read only globals
-set _appname [lindex [file split $argv0] end]
+set _appname {Git Gui}
set _gitdir {}
set _gitexec {}
set _reponame {}
##
## feature option selection
-if {[regexp {^git-(.+)$} [appname] _junk subcommand]} {
+if {[regexp {^git-(.+)$} [file tail $argv0] _junk subcommand]} {
unset _junk
} else {
set subcommand gui
gui {
if {[llength $argv] != 0} {
puts -nonewline stderr "usage: $argv0"
- if {$subcommand ne {gui} && [appname] ne "git-$subcommand"} {
+ if {$subcommand ne {gui}
+ && [file tail $argv0] ne "git-$subcommand"} {
puts -nonewline stderr " $subcommand"
}
puts stderr {}