]> git.ipfire.org Git - thirdparty/git.git/commit - diff.h
diff.c: add --output-indicator-{new, old, context}
authorStefan Beller <sbeller@google.com>
Fri, 17 Aug 2018 20:43:52 +0000 (13:43 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 20 Aug 2018 21:33:24 +0000 (14:33 -0700)
commit7648b79eeefc23e773a41b24e3ecdadb9fe93643
tree1dc3d01c6cb6d064cd0e030367c7b7ed4d6f8f82
parent444106791ee2c4c4575db439ef74d5db5ede6a27
diff.c: add --output-indicator-{new, old, context}

This will prove useful in range-diff in a later patch as we will be able to
differentiate between adding a new file (that line is starting with +++
and then the file name) and regular new lines.

It could also be useful for experimentation in new patch formats, i.e.
we could teach git to emit moved lines with lines other than +/-.

Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff.c
diff.h