summaryrefslogtreecommitdiff
path: root/commit.h
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2011-08-18 19:29:36 +0700
committerJunio C Hamano <gitster@pobox.com>2011-08-18 11:01:18 -0700
commit294e15fc19b5ba370b703d003920d000a4f5547a (patch)
tree6b8cc497400079485f01a4696b168a0a3ae485a1 /commit.h
parent09d46644b780ede1a6b757db3e1a1ae9c1128a13 (diff)
downloadgit-294e15fc19b5ba370b703d003920d000a4f5547a.tar.gz
Move write_shallow_commits to fetch-pack.c
This function produces network traffic and should be in fetch-pack. It has been in commit.c because it needs to iterate (private) graft list. It can now do so using for_each_commit_graft(). Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.h')
-rw-r--r--commit.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/commit.h b/commit.h
index 9bf3fefea2..12d100b8b6 100644
--- a/commit.h
+++ b/commit.h
@@ -154,7 +154,6 @@ extern struct commit_list *get_octopus_merge_bases(struct commit_list *in);
extern int register_shallow(const unsigned char *sha1);
extern int unregister_shallow(const unsigned char *sha1);
-extern int write_shallow_commits(struct strbuf *out, int use_pack_protocol);
extern int for_each_commit_graft(each_commit_graft_fn, void *);
extern int is_repository_shallow(void);
extern struct commit_list *get_shallow_commits(struct object_array *heads,