Skip to content

Commit 6675ea4

Browse files
Johannes Sixtpaulusmack
authored andcommitted
[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 <johannes.sixt@telecom.at> Signed-off-by: Paul Mackerras <paulus@samba.org>
1 parent 1407ade commit 6675ea4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gitk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5032,13 +5032,14 @@ proc getblobline {bf id} {
50325032
proc mergediff {id l} {
50335033
global diffmergeid mdifffd
50345034
global diffids
5035+
global diffcontext
50355036
global parentlist
50365037
global limitdiffs viewfiles curview
50375038

50385039
set diffmergeid $id
50395040
set diffids $id
50405041
# this doesn't seem to actually affect anything...
5041-
set cmd [concat | git diff-tree --no-commit-id --cc $id]
5042+
set cmd [concat | git diff-tree --no-commit-id --cc -U$diffcontext $id]
50425043
if {$limitdiffs && $viewfiles($curview) ne {}} {
50435044
set cmd [concat $cmd -- $viewfiles($curview)]
50445045
}

0 commit comments

Comments
 (0)