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>
This commit is contained in:

committed by
Junio C Hamano

parent
79d3a236c5
commit
48d25cae22
@ -23,6 +23,7 @@ struct fetch_pack_args {
|
||||
unsigned check_self_contained_and_connected:1;
|
||||
unsigned self_contained_and_connected:1;
|
||||
unsigned cloning:1;
|
||||
unsigned update_shallow:1;
|
||||
};
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user