summaryrefslogtreecommitdiff
path: root/send-pack.c
diff options
context:
space:
mode:
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>2014-01-05 23:55:01 +0000
committerJunio C Hamano <gitster@pobox.com>2014-01-06 08:26:36 -0800
commit16a2743cd08c74d71b17e663c05c878fddffa03c (patch)
tree15666547099e55385fc433034e668c076126d86d /send-pack.c
parent82fba2b9d39163a0c9b7a3a2f35964cbc039e1aa (diff)
downloadgit-16a2743cd08c74d71b17e663c05c878fddffa03c.tar.gz
send-pack.c: mark a file-local function static
Commit f2c681cf ("send-pack: support pushing from a shallow clone via http", 05-12-2013) adds the 'advertise_shallow_grafts_buf' function as an external symbol. Noticed by sparse. ("'advertise_shallow_grafts_buf' was not declared. Should it be static?") Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'send-pack.c')
-rw-r--r--send-pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/send-pack.c b/send-pack.c
index 848d15e9b5..cdcdea7a75 100644
--- a/send-pack.c
+++ b/send-pack.c
@@ -183,7 +183,7 @@ static int advertise_shallow_grafts_cb(const struct commit_graft *graft, void *c
return 0;
}
-void advertise_shallow_grafts_buf(struct strbuf *sb)
+static void advertise_shallow_grafts_buf(struct strbuf *sb)
{
if (!is_repository_shallow())
return;