[PATCH v2 5/7] gitk: recognize -L option
- From
Thomas Rast <tr@thomasrast.ch>
- Date
- Oct 29, 2013, 07:20 UTC
- Message-ID
- <41fc155e3b020e6aa899b97bc936e198865ff4f6.1383031141.git.tr@thomasrast.ch>
- In-Reply-To
- <21f40508f83a9407986d29f002adf5ad366c8b88.1382287779.git.trast@inf.ethz.ch>
From: Thomas Rast <trast@inf.ethz.ch>
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> --- gitk-git/gitk | 8 ++++++++ 1 file changed, 8 insertions(+)
diff --git a/gitk-git/gitk b/gitk-git/gitk index 5ece2a1..3679467 100755 --- a/gitk-git/gitk +++ b/gitk-git/gitk @@ -235,6 +235,14 @@ proc parseviewargs {n arglist} { set filtered 1 lappend glflags $arg } + "-L*" { + # Line-log with 'sticked' argument (unsticked 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
-- 1.8.4.2.838.ga9a3e20