gitk: Recognize -L option

This gives line-log support to gitk, by exploiting the new support for processing and showing "inline" diffs straight from the git-log output. Note that we 'set allknown 0', which is a bit counterintuitive since this is a "known" option. But that flag prevents gitk from thinking it can optimize the view by running rev-list to see the topology; in the -L case that doesn't work. Signed-off-by: Thomas Rast <trast@inf.ethz.ch> Signed-off-by: Paul Mackerras <paulus@samba.org>

Thomas Rast committed Nov 16, 2013 at 18:37 UTC ce2c58cdaad42b9af6ad243f149c542ea93f8d01
1 file changed +8
gitk
+8
@@ -235,6 +235,14 @@ proc parseviewargs {n arglist} {
235 set filtered 1
236 lappend glflags $arg
237 }
238 + "-L*" {
239 + # Line-log with 'stuck' argument (unstuck form is
240 + # not supported)
241 + set filtered 1
242 + set vinlinediff($n) 1
243 + set allknown 0
244 + lappend glflags $arg
245 + }
246 "-n" {
247 # This appears to be the only one that has a value as a
248 # separate word following it