@@ -155,46 +155,46 @@ proc parseviewargs {n arglist} {
155155 set origargs [lreplace $origargs $i $i ]
156156 incr i -1
157157 }
158- # These request or affect diff output, which we don't want.
159- # Some could be used to set our defaults for diff display.
160158 " -[ puabwcrRBMC] " -
161159 " --no-renames" - " --full-index" - " --binary" - " --abbrev=*" -
162160 " --find-copies-harder" - " -l*" - " --ext-diff" - " --no-ext-diff" -
163161 " --src-prefix=*" - " --dst-prefix=*" - " --no-prefix" -
164162 " -O*" - " --text" - " --full-diff" - " --ignore-space-at-eol" -
165163 " --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.
166166 lappend diffargs $arg
167167 }
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.
170168 " --raw" - " --patch-with-raw" - " --patch-with-stat" -
171169 " --name-only" - " --name-status" - " --color" - " --color-words" -
172170 " --log-size" - " --pretty=*" - " --decorate" - " --abbrev-commit" -
173171 " --cc" - " -z" - " --header" - " --parents" - " --boundary" -
174172 " --no-color" - " -g" - " --walk-reflogs" - " --no-walk" -
175173 " --timestamp" - " relative-date" - " --date=*" - " --stdin" -
176174 " --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.
177177 }
178- # These are harmless, and some are even useful
179178 " --stat=*" - " --numstat" - " --shortstat" - " --summary" -
180179 " --check" - " --exit-code" - " --quiet" - " --topo-order" -
181180 " --full-history" - " --dense" - " --sparse" -
182181 " --follow" - " --left-right" - " --encoding=*" {
182+ # These are harmless, and some are even useful
183183 lappend glflags $arg
184184 }
185- # These mean that we get a subset of the commits
186185 " --diff-filter=*" - " --no-merges" - " --unpacked" -
187186 " --max-count=*" - " --skip=*" - " --since=*" - " --after=*" -
188187 " --until=*" - " --before=*" - " --max-age=*" - " --min-age=*" -
189188 " --author=*" - " --committer=*" - " --grep=*" - " -[ iE] " -
190189 " --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
192192 set filtered 1
193193 lappend glflags $arg
194194 }
195- # This appears to be the only one that has a value as a
196- # separate word following it
197195 " -n" {
196+ # This appears to be the only one that has a value as a
197+ # separate word following it
198198 set filtered 1
199199 set nextisval 1
200200 lappend glflags $arg
@@ -211,8 +211,8 @@ proc parseviewargs {n arglist} {
211211 # git rev-parse doesn't understand --merge
212212 lappend revargs --gitk-symmetric-diff-marker MERGE_HEAD...HEAD
213213 }
214- # Other flag arguments including -<n>
215214 " -*" {
215+ # Other flag arguments including -<n>
216216 if {[string is digit -strict [string range $arg 1 end]]} {
217217 set filtered 1
218218 } else {
@@ -222,8 +222,8 @@ proc parseviewargs {n arglist} {
222222 }
223223 lappend glflags $arg
224224 }
225- # Non-flag arguments specify commits or ranges of commits
226225 default {
226+ # Non-flag arguments specify commits or ranges of commits
227227 if {[string match " *...*" $arg ]} {
228228 lappend revargs --gitk-symmetric-diff-marker
229229 }
0 commit comments