Commit 7ca4525
[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>1 parent 4117469 commit 7ca4525
1 file changed
+15
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | 353 | | |
363 | 354 | | |
364 | 355 | | |
| |||
765 | 756 | | |
766 | 757 | | |
767 | 758 | | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
768 | 762 | | |
769 | 763 | | |
770 | 764 | | |
771 | | - | |
772 | | - | |
773 | 765 | | |
774 | 766 | | |
775 | 767 | | |
| |||
806 | 798 | | |
807 | 799 | | |
808 | 800 | | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
809 | 808 | | |
810 | 809 | | |
811 | 810 | | |
812 | 811 | | |
813 | 812 | | |
814 | 813 | | |
815 | | - | |
816 | | - | |
817 | | - | |
818 | | - | |
819 | | - | |
820 | | - | |
821 | | - | |
822 | | - | |
823 | | - | |
824 | | - | |
825 | | - | |
826 | | - | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
827 | 819 | | |
828 | 820 | | |
829 | 821 | | |
| |||
0 commit comments