Skip to content

Commit ce2c58c

Browse files
Thomas Rastpaulusmack
authored andcommitted
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 <[email protected]> Signed-off-by: Paul Mackerras <[email protected]>
1 parent 9403bd0 commit ce2c58c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

gitk

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,14 @@ proc parseviewargs {n arglist} {
235235
set filtered 1
236236
lappend glflags $arg
237237
}
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+
}
238246
"-n" {
239247
# This appears to be the only one that has a value as a
240248
# separate word following it

0 commit comments

Comments
 (0)