]> git.ipfire.org Git - thirdparty/git.git/commit - diff.h
diff.c: add a blocks mode for moved code detection
authorStefan Beller <sbeller@google.com>
Mon, 16 Jul 2018 23:05:39 +0000 (16:05 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 17 Jul 2018 18:25:31 +0000 (11:25 -0700)
commit51da15eb2301667c6ac01dd18851b7a424fbf2b1
tree4d19e188779d5d495f04bdfa80bfa4a41052c59c
parentee1df66f7cfd0f37bb0e235c4f7ef12bd09a8d2d
diff.c: add a blocks mode for moved code detection

The new "blocks" mode provides a middle ground between plain and zebra.
It is as intuitive (few colors) as plain, but still has the requirement
for a minimum of lines/characters to count a block as moved.

Suggested-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
 (https://public-inbox.org/git/87o9j0uljo.fsf@evledraar.gmail.com/)
Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/diff-options.txt
diff.c
diff.h
t/t4015-diff-whitespace.sh