aboutsummaryrefslogtreecommitdiffstats
path: root/diff.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-02-14 10:29:59 -0800
committerJunio C Hamano <gitster@pobox.com>2013-02-14 10:29:59 -0800
commita1d68bea891118bdaecb6dd77610e6daf2f7d53d (patch)
treec9fcf59d0b60c42afeafd0a68e13dc2f72521d0b /diff.h
parentMerge branch 'nd/status-show-in-progress' (diff)
parentcombine-diff.c: teach combined diffs about line prefix (diff)
downloadgit-a1d68bea891118bdaecb6dd77610e6daf2f7d53d.tar.gz
git-a1d68bea891118bdaecb6dd77610e6daf2f7d53d.zip
Merge branch 'jk/diff-graph-cleanup'
Refactors a lot of repetitive code sequence from the graph drawing code and adds it to the combined diff output. * jk/diff-graph-cleanup: combine-diff.c: teach combined diffs about line prefix diff.c: use diff_line_prefix() where applicable diff: add diff_line_prefix function diff.c: make constant string arguments const diff: write prefix to the correct file graph: output padding for merge subsequent parents
Diffstat (limited to 'diff.h')
-rw-r--r--diff.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/diff.h b/diff.h
index a47bae48d5..76830e28b4 100644
--- a/diff.h
+++ b/diff.h
@@ -174,6 +174,9 @@ const char *diff_get_color(int diff_use_color, enum color_diff ix);
diff_get_color((o)->use_color, ix)
+const char *diff_line_prefix(struct diff_options *);
+
+
extern const char mime_boundary_leader[];
extern void diff_tree_setup_paths(const char **paths, struct diff_options *);