]> git.ipfire.org Git - thirdparty/git.git/commit - submodule.c
alternates: provide helper for adding to alternates list
authorJeff King <peff@peff.net>
Mon, 3 Oct 2016 20:35:03 +0000 (16:35 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 10 Oct 2016 20:52:36 +0000 (13:52 -0700)
commita5b34d21521c015cd41ced4a3fdde57d79891eb3
tree4cd7013288363bdde05efe99985d66c7c8d3a309
parent4ea82473aa310de7543141f96c2e6b23ef9fcd4c
alternates: provide helper for adding to alternates list

The submodule code wants to temporarily add an alternate
object store to our in-memory alt_odb list, but does it
manually. Let's provide a helper so it can reuse the code in
link_alt_odb_entry().

While we're adding our new add_to_alternates_memory(), let's
document add_to_alternates_file(), as the two are related.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h
sha1_file.c
submodule.c