Skip to content

Commit 95bfc6c

Browse files
committed
Merge branch 'st/spaces-tabs-cleanup' into master
Clean up some whitespace. * st/spaces-tabs-cleanup: git-gui: fix mixed tabs and spaces; prefer tabs
2 parents 469725c + 5c1b391 commit 95bfc6c

File tree

1 file changed

+43
-43
lines changed

1 file changed

+43
-43
lines changed

git-gui.sh

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -947,15 +947,15 @@ if {![regsub {^git version } $_git_version {} _git_version]} {
947947
}
948948
949949
proc get_trimmed_version {s} {
950-
set r {}
951-
foreach x [split $s -._] {
952-
if {[string is integer -strict $x]} {
953-
lappend r $x
954-
} else {
955-
break
956-
}
957-
}
958-
return [join $r .]
950+
set r {}
951+
foreach x [split $s -._] {
952+
if {[string is integer -strict $x]} {
953+
lappend r $x
954+
} else {
955+
break
956+
}
957+
}
958+
return [join $r .]
959959
}
960960
set _real_git_version $_git_version
961961
set _git_version [get_trimmed_version $_git_version]
@@ -967,7 +967,7 @@ if {![regexp {^[1-9]+(\.[0-9]+)+$} $_git_version]} {
967967
-type yesno \
968968
-default no \
969969
-title "[appname]: warning" \
970-
-message [mc "Git version cannot be determined.
970+
-message [mc "Git version cannot be determined.
971971
972972
%s claims it is version '%s'.
973973
@@ -1653,7 +1653,7 @@ proc prepare_commit_msg_hook_wait {fd_ph} {
16531653
set pch_error {}
16541654
catch {file delete [gitdir PREPARE_COMMIT_MSG]}
16551655
return
1656-
}
1656+
}
16571657
fconfigure $fd_ph -blocking 0
16581658
catch {file delete [gitdir PREPARE_COMMIT_MSG]}
16591659
}
@@ -2001,72 +2001,72 @@ set filemask {
20012001
#define mask_width 14
20022002
#define mask_height 15
20032003
static unsigned char mask_bits[] = {
2004-
0xfe, 0x1f, 0xfe, 0x1f, 0xfe, 0x1f, 0xfe, 0x1f, 0xfe, 0x1f, 0xfe, 0x1f,
2005-
0xfe, 0x1f, 0xfe, 0x1f, 0xfe, 0x1f, 0xfe, 0x1f, 0xfe, 0x1f, 0xfe, 0x1f,
2006-
0xfe, 0x1f, 0xfe, 0x1f, 0xfe, 0x1f};
2004+
0xfe, 0x1f, 0xfe, 0x1f, 0xfe, 0x1f, 0xfe, 0x1f, 0xfe, 0x1f, 0xfe, 0x1f,
2005+
0xfe, 0x1f, 0xfe, 0x1f, 0xfe, 0x1f, 0xfe, 0x1f, 0xfe, 0x1f, 0xfe, 0x1f,
2006+
0xfe, 0x1f, 0xfe, 0x1f, 0xfe, 0x1f};
20072007
}
20082008
20092009
image create bitmap file_plain -background white -foreground black -data {
20102010
#define plain_width 14
20112011
#define plain_height 15
20122012
static unsigned char plain_bits[] = {
2013-
0xfe, 0x01, 0x02, 0x03, 0x02, 0x05, 0x02, 0x09, 0x02, 0x1f, 0x02, 0x10,
2014-
0x02, 0x10, 0x02, 0x10, 0x02, 0x10, 0x02, 0x10, 0x02, 0x10, 0x02, 0x10,
2015-
0x02, 0x10, 0x02, 0x10, 0xfe, 0x1f};
2013+
0xfe, 0x01, 0x02, 0x03, 0x02, 0x05, 0x02, 0x09, 0x02, 0x1f, 0x02, 0x10,
2014+
0x02, 0x10, 0x02, 0x10, 0x02, 0x10, 0x02, 0x10, 0x02, 0x10, 0x02, 0x10,
2015+
0x02, 0x10, 0x02, 0x10, 0xfe, 0x1f};
20162016
} -maskdata $filemask
20172017
20182018
image create bitmap file_mod -background white -foreground blue -data {
20192019
#define mod_width 14
20202020
#define mod_height 15
20212021
static unsigned char mod_bits[] = {
2022-
0xfe, 0x01, 0x02, 0x03, 0x7a, 0x05, 0x02, 0x09, 0x7a, 0x1f, 0x02, 0x10,
2023-
0xfa, 0x17, 0x02, 0x10, 0xfa, 0x17, 0x02, 0x10, 0xfa, 0x17, 0x02, 0x10,
2024-
0xfa, 0x17, 0x02, 0x10, 0xfe, 0x1f};
2022+
0xfe, 0x01, 0x02, 0x03, 0x7a, 0x05, 0x02, 0x09, 0x7a, 0x1f, 0x02, 0x10,
2023+
0xfa, 0x17, 0x02, 0x10, 0xfa, 0x17, 0x02, 0x10, 0xfa, 0x17, 0x02, 0x10,
2024+
0xfa, 0x17, 0x02, 0x10, 0xfe, 0x1f};
20252025
} -maskdata $filemask
20262026
20272027
image create bitmap file_fulltick -background white -foreground "#007000" -data {
20282028
#define file_fulltick_width 14
20292029
#define file_fulltick_height 15
20302030
static unsigned char file_fulltick_bits[] = {
2031-
0xfe, 0x01, 0x02, 0x1a, 0x02, 0x0c, 0x02, 0x0c, 0x02, 0x16, 0x02, 0x16,
2032-
0x02, 0x13, 0x00, 0x13, 0x86, 0x11, 0x8c, 0x11, 0xd8, 0x10, 0xf2, 0x10,
2033-
0x62, 0x10, 0x02, 0x10, 0xfe, 0x1f};
2031+
0xfe, 0x01, 0x02, 0x1a, 0x02, 0x0c, 0x02, 0x0c, 0x02, 0x16, 0x02, 0x16,
2032+
0x02, 0x13, 0x00, 0x13, 0x86, 0x11, 0x8c, 0x11, 0xd8, 0x10, 0xf2, 0x10,
2033+
0x62, 0x10, 0x02, 0x10, 0xfe, 0x1f};
20342034
} -maskdata $filemask
20352035
20362036
image create bitmap file_question -background white -foreground black -data {
20372037
#define file_question_width 14
20382038
#define file_question_height 15
20392039
static unsigned char file_question_bits[] = {
2040-
0xfe, 0x01, 0x02, 0x02, 0xe2, 0x04, 0xf2, 0x09, 0x1a, 0x1b, 0x0a, 0x13,
2041-
0x82, 0x11, 0xc2, 0x10, 0x62, 0x10, 0x62, 0x10, 0x02, 0x10, 0x62, 0x10,
2042-
0x62, 0x10, 0x02, 0x10, 0xfe, 0x1f};
2040+
0xfe, 0x01, 0x02, 0x02, 0xe2, 0x04, 0xf2, 0x09, 0x1a, 0x1b, 0x0a, 0x13,
2041+
0x82, 0x11, 0xc2, 0x10, 0x62, 0x10, 0x62, 0x10, 0x02, 0x10, 0x62, 0x10,
2042+
0x62, 0x10, 0x02, 0x10, 0xfe, 0x1f};
20432043
} -maskdata $filemask
20442044
20452045
image create bitmap file_removed -background white -foreground red -data {
20462046
#define file_removed_width 14
20472047
#define file_removed_height 15
20482048
static unsigned char file_removed_bits[] = {
2049-
0xfe, 0x01, 0x02, 0x03, 0x02, 0x05, 0x02, 0x09, 0x02, 0x1f, 0x02, 0x10,
2050-
0x1a, 0x16, 0x32, 0x13, 0xe2, 0x11, 0xc2, 0x10, 0xe2, 0x11, 0x32, 0x13,
2051-
0x1a, 0x16, 0x02, 0x10, 0xfe, 0x1f};
2049+
0xfe, 0x01, 0x02, 0x03, 0x02, 0x05, 0x02, 0x09, 0x02, 0x1f, 0x02, 0x10,
2050+
0x1a, 0x16, 0x32, 0x13, 0xe2, 0x11, 0xc2, 0x10, 0xe2, 0x11, 0x32, 0x13,
2051+
0x1a, 0x16, 0x02, 0x10, 0xfe, 0x1f};
20522052
} -maskdata $filemask
20532053
20542054
image create bitmap file_merge -background white -foreground blue -data {
20552055
#define file_merge_width 14
20562056
#define file_merge_height 15
20572057
static unsigned char file_merge_bits[] = {
2058-
0xfe, 0x01, 0x02, 0x03, 0x62, 0x05, 0x62, 0x09, 0x62, 0x1f, 0x62, 0x10,
2059-
0xfa, 0x11, 0xf2, 0x10, 0x62, 0x10, 0x02, 0x10, 0xfa, 0x17, 0x02, 0x10,
2060-
0xfa, 0x17, 0x02, 0x10, 0xfe, 0x1f};
2058+
0xfe, 0x01, 0x02, 0x03, 0x62, 0x05, 0x62, 0x09, 0x62, 0x1f, 0x62, 0x10,
2059+
0xfa, 0x11, 0xf2, 0x10, 0x62, 0x10, 0x02, 0x10, 0xfa, 0x17, 0x02, 0x10,
2060+
0xfa, 0x17, 0x02, 0x10, 0xfe, 0x1f};
20612061
} -maskdata $filemask
20622062
20632063
image create bitmap file_statechange -background white -foreground green -data {
20642064
#define file_statechange_width 14
20652065
#define file_statechange_height 15
20662066
static unsigned char file_statechange_bits[] = {
2067-
0xfe, 0x01, 0x02, 0x03, 0x02, 0x05, 0x02, 0x09, 0x02, 0x1f, 0x62, 0x10,
2068-
0x62, 0x10, 0xba, 0x11, 0xba, 0x11, 0x62, 0x10, 0x62, 0x10, 0x02, 0x10,
2069-
0x02, 0x10, 0x02, 0x10, 0xfe, 0x1f};
2067+
0xfe, 0x01, 0x02, 0x03, 0x02, 0x05, 0x02, 0x09, 0x02, 0x1f, 0x62, 0x10,
2068+
0x62, 0x10, 0xba, 0x11, 0xba, 0x11, 0x62, 0x10, 0x62, 0x10, 0x02, 0x10,
2069+
0x02, 0x10, 0x02, 0x10, 0xfe, 0x1f};
20702070
} -maskdata $filemask
20712071
20722072
set ui_index .vpane.files.index.list
@@ -3878,18 +3878,18 @@ proc on_application_mapped {} {
38783878
set gm $repo_config(gui.geometry)
38793879
if {$use_ttk} {
38803880
bind .vpane <Map> \
3881-
[list on_ttk_pane_mapped %W 0 [lindex $gm 1]]
3881+
[list on_ttk_pane_mapped %W 0 [lindex $gm 1]]
38823882
bind .vpane.files <Map> \
3883-
[list on_ttk_pane_mapped %W 0 [lindex $gm 2]]
3883+
[list on_ttk_pane_mapped %W 0 [lindex $gm 2]]
38843884
} else {
38853885
bind .vpane <Map> \
3886-
[list on_tk_pane_mapped %W 0 \
3887-
[lindex $gm 1] \
3888-
[lindex [.vpane sash coord 0] 1]]
3886+
[list on_tk_pane_mapped %W 0 \
3887+
[lindex $gm 1] \
3888+
[lindex [.vpane sash coord 0] 1]]
38893889
bind .vpane.files <Map> \
3890-
[list on_tk_pane_mapped %W 0 \
3891-
[lindex [.vpane.files sash coord 0] 0] \
3892-
[lindex $gm 2]]
3890+
[list on_tk_pane_mapped %W 0 \
3891+
[lindex [.vpane.files sash coord 0] 0] \
3892+
[lindex $gm 2]]
38933893
}
38943894
wm geometry . [lindex $gm 0]
38953895
}

0 commit comments

Comments
 (0)