shallow: only add shallow graft points to new shallow file
commit6a3bbb4db409c5417960ffd3f020f75e0cb36f81
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Fri, 16 Aug 2013 09:52:03 +0000 (16 16:52 +0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 28 Aug 2013 18:51:17 +0000 (28 11:51 -0700)
tree0b2513653866fe9449b53b207ea1ba17e3c1ac43
parent3125fe528b65c1e4a4f5f934d056af342ab5472d
shallow: only add shallow graft points to new shallow file

for_each_commit_graft() goes through all graft points, and shallow
boundaries are just one special kind of grafting.

If $GIT_DIR/shallow and $GIT_DIR/info/grafts are both present,
write_shallow_commits() may catch both sets, accidentally turning
some graft points to shallow boundaries.  Don't do that.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
shallow.c