]> git.ipfire.org Git - thirdparty/git.git/commit - fetch-pack.c
fetch-pack: move common check and marking together
authorJonathan Tan <jonathantanmy@google.com>
Thu, 14 Jun 2018 22:54:27 +0000 (15:54 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 15 Jun 2018 15:44:24 +0000 (08:44 -0700)
commitd093bc7582fc60b51b42d2edf32b3ce68cd283eb
tree3f9c629aa1b82d5dd78ad880fbae602469c14619
parentd30fe89c37b746ac2f3419ae0e3990a9984fb4cf
fetch-pack: move common check and marking together

When receiving 'ACK <object-id> continue' for a common commit, check if
the commit was already known to be common and mark it as such if not up
front. This should make future refactoring of how the information about
common commits is stored more straightforward.

No visible change intended.

Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
fetch-pack.c