From 6675ea4240540e3ee3b0dd2f26b1ad86121d22c6 Mon Sep 17 00:00:00 2001 From: Johannes Sixt Date: Wed, 13 Feb 2008 17:27:30 +0100 Subject: [PATCH] [PATCH] gitk: Heed the lines of context in merge commits There is an edit box where the number of context lines can be chosen. But it was only used when regular diffs were displayed, not for merge commits. This fixes it. Signed-off-by: Johannes Sixt Signed-off-by: Paul Mackerras --- gitk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gitk b/gitk index 25ab725bb..f1f21e97b 100755 --- a/gitk +++ b/gitk @@ -5032,13 +5032,14 @@ proc getblobline {bf id} { proc mergediff {id l} { global diffmergeid mdifffd global diffids + global diffcontext global parentlist global limitdiffs viewfiles curview set diffmergeid $id set diffids $id # this doesn't seem to actually affect anything... - set cmd [concat | git diff-tree --no-commit-id --cc $id] + set cmd [concat | git diff-tree --no-commit-id --cc -U$diffcontext $id] if {$limitdiffs && $viewfiles($curview) ne {}} { set cmd [concat $cmd -- $viewfiles($curview)] } -- 2.26.2