Skip to content

Commit 16a2743

Browse files
Ramsay Jonesgitster
authored andcommitted
send-pack.c: mark a file-local function static
Commit f2c681c ("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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 82fba2b commit 16a2743

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

send-pack.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ static int advertise_shallow_grafts_cb(const struct commit_graft *graft, void *c
183183
return 0;
184184
}
185185

186-
void advertise_shallow_grafts_buf(struct strbuf *sb)
186+
static void advertise_shallow_grafts_buf(struct strbuf *sb)
187187
{
188188
if (!is_repository_shallow())
189189
return;

0 commit comments

Comments
 (0)