Move write_shallow_commits to fetch-pack.c
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Thu, 18 Aug 2011 12:29:36 +0000 (19:29 +0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 18 Aug 2011 18:01:18 +0000 (11:01 -0700)
commit294e15fc19b5ba370b703d003920d000a4f5547a
tree6b8cc497400079485f01a4696b168a0a3ae485a1
parent09d46644b780ede1a6b757db3e1a1ae9c1128a13
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>
builtin/fetch-pack.c
commit.c
commit.h