Commit 4c616c2
committed
merge-recursive: use subtraction to flip stage
The flip_stage() helper uses a bit-flipping xor to switch between "2"
and "3". While clever, this relies on a property of those two numbers
that is mostly coincidence. Let's write it as a subtraction; that's more
clear and would extend to other numbers if somebody copies the logic.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent ee79874 commit 4c616c2
1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1713 | 1713 | | |
1714 | 1714 | | |
1715 | 1715 | | |
1716 | | - | |
1717 | | - | |
| 1716 | + | |
1718 | 1717 | | |
1719 | 1718 | | |
1720 | 1719 | | |
1721 | | - | |
| 1720 | + | |
1722 | 1721 | | |
1723 | 1722 | | |
1724 | 1723 | | |
| |||
0 commit comments