@@ -155,46 +155,46 @@ proc parseviewargs {n arglist} {
155
155
set origargs [lreplace $origargs $i $i ]
156
156
incr i -1
157
157
}
158
- # These request or affect diff output, which we don't want.
159
- # Some could be used to set our defaults for diff display.
160
158
" -[ puabwcrRBMC] " -
161
159
" --no-renames" - " --full-index" - " --binary" - " --abbrev=*" -
162
160
" --find-copies-harder" - " -l*" - " --ext-diff" - " --no-ext-diff" -
163
161
" --src-prefix=*" - " --dst-prefix=*" - " --no-prefix" -
164
162
" -O*" - " --text" - " --full-diff" - " --ignore-space-at-eol" -
165
163
" --ignore-space-change" - " -U*" - " --unified=*" {
164
+ # These request or affect diff output, which we don't want.
165
+ # Some could be used to set our defaults for diff display.
166
166
lappend diffargs $arg
167
167
}
168
- # These cause our parsing of git log's output to fail, or else
169
- # they're options we want to set ourselves, so ignore them.
170
168
" --raw" - " --patch-with-raw" - " --patch-with-stat" -
171
169
" --name-only" - " --name-status" - " --color" - " --color-words" -
172
170
" --log-size" - " --pretty=*" - " --decorate" - " --abbrev-commit" -
173
171
" --cc" - " -z" - " --header" - " --parents" - " --boundary" -
174
172
" --no-color" - " -g" - " --walk-reflogs" - " --no-walk" -
175
173
" --timestamp" - " relative-date" - " --date=*" - " --stdin" -
176
174
" --objects" - " --objects-edge" - " --reverse" {
175
+ # These cause our parsing of git log's output to fail, or else
176
+ # they're options we want to set ourselves, so ignore them.
177
177
}
178
- # These are harmless, and some are even useful
179
178
" --stat=*" - " --numstat" - " --shortstat" - " --summary" -
180
179
" --check" - " --exit-code" - " --quiet" - " --topo-order" -
181
180
" --full-history" - " --dense" - " --sparse" -
182
181
" --follow" - " --left-right" - " --encoding=*" {
182
+ # These are harmless, and some are even useful
183
183
lappend glflags $arg
184
184
}
185
- # These mean that we get a subset of the commits
186
185
" --diff-filter=*" - " --no-merges" - " --unpacked" -
187
186
" --max-count=*" - " --skip=*" - " --since=*" - " --after=*" -
188
187
" --until=*" - " --before=*" - " --max-age=*" - " --min-age=*" -
189
188
" --author=*" - " --committer=*" - " --grep=*" - " -[ iE] " -
190
189
" --remove-empty" - " --first-parent" - " --cherry-pick" -
191
- " -S*" - " --pickaxe-all" - " --pickaxe-regex" - {
190
+ " -S*" - " --pickaxe-all" - " --pickaxe-regex" {
191
+ # These mean that we get a subset of the commits
192
192
set filtered 1
193
193
lappend glflags $arg
194
194
}
195
- # This appears to be the only one that has a value as a
196
- # separate word following it
197
195
" -n" {
196
+ # This appears to be the only one that has a value as a
197
+ # separate word following it
198
198
set filtered 1
199
199
set nextisval 1
200
200
lappend glflags $arg
@@ -211,8 +211,8 @@ proc parseviewargs {n arglist} {
211
211
# git rev-parse doesn't understand --merge
212
212
lappend revargs --gitk-symmetric-diff-marker MERGE_HEAD...HEAD
213
213
}
214
- # Other flag arguments including -<n>
215
214
" -*" {
215
+ # Other flag arguments including -<n>
216
216
if {[string is digit -strict [string range $arg 1 end]]} {
217
217
set filtered 1
218
218
} else {
@@ -222,8 +222,8 @@ proc parseviewargs {n arglist} {
222
222
}
223
223
lappend glflags $arg
224
224
}
225
- # Non-flag arguments specify commits or ranges of commits
226
225
default {
226
+ # Non-flag arguments specify commits or ranges of commits
227
227
if {[string match " *...*" $arg ]} {
228
228
lappend revargs --gitk-symmetric-diff-marker
229
229
}
0 commit comments