summaryrefslogtreecommitdiff
path: root/t/t5501-fetch-push-alternates.sh
Commit message (Collapse)AuthorAgeFilesLines
* fetch-pack: objects in our alternates are available to usJunio C Hamano2011-03-171-1/+1
| | | | | | | | Use the helper function split from the receiving end of "git push" to allow the same optimization on the receiving end of "git fetch". Signed-off-by: Junio C Hamano <gitster@pobox.com> Acked-by: Shawn O. Pearce <spearce@spearce.org>
* refs_from_alternate: helper to use refs from alternatesJunio C Hamano2011-03-171-0/+66
The receiving end of "git push" advertises the objects that the repository itself does not use, but are at the tips of refs in other repositories whose object databases are used as alternates for it. This helps it avoid having to receive (and the pusher having to send) objects that are already available to the receiving repository via the alternates mechanism. Tweak the helper function that implements this feature, and move it to transport.[ch] for future reuse by other programs. The additional test demonstrates how this optimization is helping "git push", and "git fetch" is ignorant about it. Signed-off-by: Junio C Hamano <gitster@pobox.com> Acked-by: Shawn O. Pearce <spearce@spearce.org>