From 7648b79eeefc23e773a41b24e3ecdadb9fe93643 Mon Sep 17 00:00:00 2001 From: Stefan Beller Date: Fri, 17 Aug 2018 13:43:52 -0700 Subject: 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 Signed-off-by: Junio C Hamano --- diff.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'diff.h') diff --git a/diff.h b/diff.h index e1e54256c1..d7edc64454 100644 --- a/diff.h +++ b/diff.h @@ -194,6 +194,11 @@ struct diff_options { FILE *file; int close_file; +#define OUTPUT_INDICATOR_NEW 0 +#define OUTPUT_INDICATOR_OLD 1 +#define OUTPUT_INDICATOR_CONTEXT 2 + char output_indicators[3]; + struct pathspec pathspec; pathchange_fn_t pathchange; change_fn_t change; -- cgit 1.2.3-korg