[PATCH] Simplify "reverse-diff" logic in the diff core.
authorJunio C Hamano <junkio@cox.net>
Fri, 20 May 2005 16:54:07 +0000 (09:54 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 20 May 2005 17:08:56 +0000 (10:08 -0700)
commit7ca45252a35df8c78060ff233957fc558714a5d6
tree134a415f97f1a53c45219dd55c99b6788ab13f15
parent411746940f02f6fb90c4b6b97c6f07cee599c2e1
[PATCH] Simplify "reverse-diff" logic in the diff core.

Instead of swapping the arguments just before output, this patch
makes the swapping happen on the input side of the diff core,
when "reverse-diff" is in effect.  This greatly simplifies the
logic, but more importantly it is necessary for upcoming "copy
detection" work.

Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
diff.c