Skip to content
  • Duy Nguyen's avatar
    fetch: support fetching from a shallow repository · 4820a33b
    Duy Nguyen authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    This patch just put together pieces from the 8 steps patch. We stop at
    step 7 and reject refs that require new shallow commits.
    
    Note that, by rejecting refs that require new shallow commits, we
    leave dangling objects in the repo, which become "object islands" by
    the next "git fetch" of the same source.
    
    If the first fetch our "ours" set is zero and we do practically
    nothing at step 7, "ours" is full at the next fetch and we may need to
    walk through commits for reachability test. Room for improvement.
    
    Signed-off-by: default avatarNguyễn Thái Ngọc Duy <pclouds@gmail.com>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    4820a33b