]> git.ipfire.org Git - thirdparty/git.git/commit - combine-diff.c
diff -c/--cc: do not include uninteresting deletion before leading context
authorJunio C Hamano <gitster@pobox.com>
Thu, 19 Jun 2008 06:59:41 +0000 (23:59 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 19 Jun 2008 06:59:41 +0000 (23:59 -0700)
commitc86fbe5332abe6b951731940b9a8676ea90a434c
tree6b646608bd2dcabcb410a6b64e647de5c57f5562
parent4afbcab9898ce63ad641dd0de6e9b69deda44330
diff -c/--cc: do not include uninteresting deletion before leading context

When we include a few uninteresting lines before the interesting ones as
context, we are only interested in seeing the surviving lines themselves
and not the deleted lines that are before them.  Mark the added leading
context lines in give_context() and not show deleted lines form them.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
combine-diff.c