author | Junio C Hamano <junkio@cox.net> | |
Thu, 25 Jan 2007 00:47:24 +0000 (16:47 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Thu, 25 Jan 2007 02:08:02 +0000 (18:08 -0800) | ||
commit | af7cf268f0bf8d4216f9c11d1cb0082cb3550f61 | |
tree | fb4cc3c94a6c793122e02c3797b04f6716549e62 | tree | snapshot |
parent | 9e10fd1ac0bb50202138efb9291568160dacd7ab | commit | diff |
fetch-pack: remove --keep-auto and make it the default.
This makes git-fetch over git native protocol to automatically
decide to keep the downloaded pack if the fetch results in more
than 100 objects, just like receive-pack invoked by git-push
does. This logic is disabled when --keep is explicitly given
from the command line, so that a very small clone still keeps
the downloaded pack as before.
The 100 threshold can be adjusted with fetch.unpacklimit
configuration. We might want to introduce transfer.unpacklimit
to consolidate the two unpacklimit variables, which will be a
topic for the next patch.
Signed-off-by: Junio C Hamano <junkio@cox.net>
This makes git-fetch over git native protocol to automatically
decide to keep the downloaded pack if the fetch results in more
than 100 objects, just like receive-pack invoked by git-push
does. This logic is disabled when --keep is explicitly given
from the command line, so that a very small clone still keeps
the downloaded pack as before.
The 100 threshold can be adjusted with fetch.unpacklimit
configuration. We might want to introduce transfer.unpacklimit
to consolidate the two unpacklimit variables, which will be a
topic for the next patch.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Documentation/config.txt | diff | blob | history | |
fetch-pack.c | diff | blob | history | |
t/t5500-fetch-pack.sh | diff | blob | history |