summaryrefslogtreecommitdiffstats
path: root/tree-diff.c
diff options
context:
space:
mode:
authorKirill Smelkov <kirr@mns.spb.ru>2014-02-24 20:21:45 +0400
committerJunio C Hamano <gitster@pobox.com>2014-03-26 14:30:47 -0700
commitad6f3cc7d2eaec5247b39e9dca8e55a0f98123e7 (patch)
tree005ab8506bf03b378044430d699be8b409f97be5 /tree-diff.c
parent6ca844e9f5ca93efd0a1323a9c9aaa882c0043e8 (diff)
downloadgit-ad6f3cc7d2eaec5247b39e9dca8e55a0f98123e7.tar.gz
git-ad6f3cc7d2eaec5247b39e9dca8e55a0f98123e7.tar.xz
tree-diff: diff_tree() should now be static
We reworked all its users to use the functionality through diff_tree_sha1 variant in recent patches (see "tree-diff: allow diff_tree_sha1 to accept NULL sha1" and what comes next). diff_tree() is now not used outside tree-diff.c - make it static. Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'tree-diff.c')
-rw-r--r--tree-diff.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tree-diff.c b/tree-diff.c
index 8e04002c0..0e43906b4 100644
--- a/tree-diff.c
+++ b/tree-diff.c
@@ -141,8 +141,8 @@ static void skip_uninteresting(struct tree_desc *t, struct strbuf *base,
}
}
-int diff_tree(struct tree_desc *t1, struct tree_desc *t2,
- const char *base_str, struct diff_options *opt)
+static int diff_tree(struct tree_desc *t1, struct tree_desc *t2,
+ const char *base_str, struct diff_options *opt)
{
struct strbuf base;
int baselen = strlen(base_str);