Code

Fix gitk this->selected diffs
authorYann Dirson <ydirson@altern.org>
Sun, 27 Nov 2005 22:29:30 +0000 (23:29 +0100)
committerJunio C Hamano <junkio@cox.net>
Sun, 27 Nov 2005 22:42:51 +0000 (14:42 -0800)
commit55d1eb047d4dffc633502ea2a80dd092194fc900
tree5596ac6f4661c80f823d93de7fa9aeec65ace1f1
parent56fc63193975edd4b9f520b6c65c2b97ecd8ee38
Fix gitk this->selected diffs

The change made in 8b7e5d76e836396a097bb6f61cf930ea872a7bd3 to
accomodate dense revlists in single-commit diffs has broken computing
of diffs between arbitrary trees, which does need to consider two
commit ids.

This patch changes the two git-diff-tree calls to get the necessary
two ids in this case.  It does so by propagating a "singlecommit" flag
through all functions involved via an additional argument.

Signed-off-by: Yann Dirson <ydirson@altern.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
gitk