@matheusbsbs / matheus-bagliano / commits / 0b2bc460fc
Fork 0

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>

Shawn O. Pearce committed Sep 27, 2007 at 02:15 UTC 0b2bc460fc69d2aa4f5af743b2b2317088e53949
1 file changed +4 -3
git-gui.sh
+4 -3
@@ -108,7 +108,7 @@ unset oguimsg
108 ##
109 ## read only globals
110
111 -set _appname [lindex [file split $argv0] end]
111 +set _appname {Git Gui}
112 set _gitdir {}
113 set _gitexec {}
114 set _reponame {}
@@ -789,7 +789,7 @@ unset -nocomplain idx fd
789 ##
790 ## feature option selection
791
792 -if {[regexp {^git-(.+)$} [appname] _junk subcommand]} {
792 +if {[regexp {^git-(.+)$} [file tail $argv0] _junk subcommand]} {
793 unset _junk
794 } else {
795 set subcommand gui
@@ -2140,7 +2140,8 @@ citool -
2140 gui {
2141 if {[llength $argv] != 0} {
2142 puts -nonewline stderr "usage: $argv0"
2143 - if {$subcommand ne {gui} && [appname] ne "git-$subcommand"} {
2143 + if {$subcommand ne {gui}
2144 + && [file tail $argv0] ne "git-$subcommand"} {
2145 puts -nonewline stderr " $subcommand"
2146 }
2147 puts stderr {}