Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/diff.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-06-11 19:29:51 +0300
committerJunio C Hamano <gitster@pobox.com>2015-06-11 19:29:51 +0300
commit709cd912d4663af87903d3d278a3bab9d4d84153 (patch)
tree416e3f1cbd0b50ef317b59bbb337f3a7bea72765 /diff.h
parent7974889a053574e449b55ca543a486e38e74864f (diff)
parentb8767f791c15f119554c1466af60e4f2433ae971 (diff)
Merge branch 'jc/diff-ws-error-highlight'
Allow whitespace breakages in deleted and context lines to be also painted in the output. * jc/diff-ws-error-highlight: diff.c: --ws-error-highlight=<kind> option diff.c: add emit_del_line() and emit_context_line() t4015: separate common setup and per-test expectation t4015: modernise style
Diffstat (limited to 'diff.h')
-rw-r--r--diff.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/diff.h b/diff.h
index f6fdf49e14b..57762ee8b1f 100644
--- a/diff.h
+++ b/diff.h
@@ -138,6 +138,11 @@ struct diff_options {
int dirstat_permille;
int setup;
int abbrev;
+/* white-space error highlighting */
+#define WSEH_NEW 1
+#define WSEH_CONTEXT 2
+#define WSEH_OLD 4
+ unsigned ws_error_highlight;
const char *prefix;
int prefix_length;
const char *stat_sep;