summaryrefslogtreecommitdiff
path: root/diff.h
diff options
context:
space:
mode:
authorEric Sunshine <sunshine@sunshineco.com>2020-09-08 07:16:08 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-09-08 22:03:26 (GMT)
commitcdffbdc217aba8a39d786a642d1376a5a605adec (patch)
tree212d466731fac04ad80903848f647a52d9a3bf04 /diff.h
parent3a238e539bcdfe3f9eb5010fd218640c1b499f7a (diff)
downloadgit-cdffbdc217aba8a39d786a642d1376a5a605adec.zip
git-cdffbdc217aba8a39d786a642d1376a5a605adec.tar.gz
git-cdffbdc217aba8a39d786a642d1376a5a605adec.tar.bz2
diff: move show_interdiff() from its own file to diff-lib
show_interdiff() is a relatively small function and not likely to grow larger or more complicated. Rather than dedicating an entire source file to it, relocate it to diff-lib.c which houses other "take two things and compare them" functions meant to be re-used but not so low-level as to reside in the core diff implementation. Signed-off-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diff.h')
-rw-r--r--diff.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/diff.h b/diff.h
index e0c0af6..308937c 100644
--- a/diff.h
+++ b/diff.h
@@ -600,6 +600,8 @@ int index_differs_from(struct repository *r, const char *def,
const struct diff_flags *flags,
int ita_invisible_in_index);
+void show_interdiff(struct rev_info *, int indent);
+
/*
* Fill the contents of the filespec "df", respecting any textconv defined by
* its userdiff driver. The "driver" parameter must come from a