diff: avoid redundantly clearing a flag
authorJonathan Tan <redacted>
Fri, 11 Aug 2017 22:49:14 +0000 (15:49 -0700)
committerJunio C Hamano <redacted>
Mon, 14 Aug 2017 19:28:36 +0000 (12:28 -0700)
commit23b65f9528a1fa19619d1dcb59932cc55075808c
tree5d42d18cac9562aab3cedeb159221b0b1cbfd2c4
parent61e89eaae8824926dc03c47e6ab3aa990b5b832e
diff: avoid redundantly clearing a flag

No code in diff.c sets DIFF_SYMBOL_MOVED_LINE except in
mark_color_as_moved(), so it is redundant to clear it for the current
line. Therefore, clear it only for previous lines.

This makes a refactoring in a subsequent patch easier.

Signed-off-by: Jonathan Tan <redacted>
Signed-off-by: Junio C Hamano <redacted>
diff.c
git clone https://git.99rst.org/PROJECT