Skip to content

Commit

Permalink
gitk: Recognize -L option
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thomas Rast authored and Paul Mackerras committed Dec 1, 2013
1 parent 9403bd0 commit ce2c58c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions gitk
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,14 @@ proc parseviewargs {n arglist} {
set filtered 1
lappend glflags $arg
}
"-L*" {
# Line-log with 'stuck' argument (unstuck form is
# not supported)
set filtered 1
set vinlinediff($n) 1
set allknown 0
lappend glflags $arg
}
"-n" {
# This appears to be the only one that has a value as a
# separate word following it
Expand Down

0 comments on commit ce2c58c

Please sign in to comment.