Merge git://git.kernel.org/pub/scm/gitk/gitk

* git://git.kernel.org/pub/scm/gitk/gitk:
  [PATCH] gitk: Heed the lines of context in merge commits
This commit is contained in:
Junio C Hamano 2008-02-16 17:41:38 -08:00
commit f124e986cf

View File

@ -5032,13 +5032,14 @@ proc getblobline {bf id} {
proc mergediff {id l} { proc mergediff {id l} {
global diffmergeid mdifffd global diffmergeid mdifffd
global diffids global diffids
global diffcontext
global parentlist global parentlist
global limitdiffs viewfiles curview global limitdiffs viewfiles curview
set diffmergeid $id set diffmergeid $id
set diffids $id set diffids $id
# this doesn't seem to actually affect anything... # 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 {}} { if {$limitdiffs && $viewfiles($curview) ne {}} {
set cmd [concat $cmd -- $viewfiles($curview)] set cmd [concat $cmd -- $viewfiles($curview)]
} }