summaryrefslogtreecommitdiff
path: root/git-gui.sh
diff options
context:
space:
mode:
authorLibravatar Shawn O. Pearce <spearce@spearce.org>2007-09-27 02:15:29 -0400
committerLibravatar Shawn O. Pearce <spearce@spearce.org>2007-09-27 22:17:01 -0400
commit0b2bc460fc69d2aa4f5af743b2b2317088e53949 (patch)
tree4369d6b57fa1407040aafbacc76f968d851f2858 /git-gui.sh
parentgit-gui: Support a native Mac OS X application bundle (diff)
downloadtgif-0b2bc460fc69d2aa4f5af743b2b2317088e53949.tar.xz
git-gui: Refer to ourselves as "Git Gui" and not "git-gui"
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>
Diffstat (limited to 'git-gui.sh')
-rwxr-xr-xgit-gui.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/git-gui.sh b/git-gui.sh
index 843191a896..82f873bdcd 100755
--- a/git-gui.sh
+++ b/git-gui.sh
@@ -108,7 +108,7 @@ unset oguimsg
##
## read only globals
-set _appname [lindex [file split $argv0] end]
+set _appname {Git Gui}
set _gitdir {}
set _gitexec {}
set _reponame {}
@@ -789,7 +789,7 @@ unset -nocomplain idx fd
##
## feature option selection
-if {[regexp {^git-(.+)$} [appname] _junk subcommand]} {
+if {[regexp {^git-(.+)$} [file tail $argv0] _junk subcommand]} {
unset _junk
} else {
set subcommand gui
@@ -2140,7 +2140,8 @@ citool -
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 {}