fetch: add --update-shallow to accept refs that update .git/shallow
commit48d25cae22667dfc2c31ad620172c0f0a3ac1490
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Thu, 5 Dec 2013 13:02:42 +0000 (5 20:02 +0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 11 Dec 2013 00:14:17 +0000 (10 16:14 -0800)
tree9e757eeeff528d48a7184c72675f838361537a42
parent79d3a236c551ad59719a6835bee03a1446296e65
fetch: add --update-shallow to accept refs that update .git/shallow

The same steps are done as in when --update-shallow is not given. The
only difference is we now add all shallow commits in "ours" and
"theirs" to .git/shallow (aka "step 8").

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/fetch-options.txt
builtin/fetch.c
fetch-pack.c
fetch-pack.h
t/t5537-fetch-shallow.sh
transport.c
transport.h