]> git.ipfire.org Git - thirdparty/git.git/commit - fetch-pack.c
fetch-pack: add refetch
authorRobert Coup <robert@coup.net.nz>
Mon, 28 Mar 2022 14:02:06 +0000 (14:02 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 28 Mar 2022 17:25:52 +0000 (10:25 -0700)
commit4dfd0925cbba78cc737e3af29faa5774bbc7b6a3
tree5c8734add2e33f648ce3b6fbdcfdf1575b3f64fc
parent1836836593e90b515269b564b384dcf091a4493d
fetch-pack: add refetch

Allow a "refetch" where the contents of the local object store are
ignored and a full fetch is performed, not attempting to find or
negotiate common commits with the remote.

A key use case is to apply a new partial clone blob/tree filter and
refetch all the associated matching content, which would otherwise not
be transferred when the commit objects are already present locally.

Signed-off-by: Robert Coup <robert@coup.net.nz>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
fetch-pack.c
fetch-pack.h