diff options
author | Jeff King <peff@peff.net> | 2019-07-01 09:17:40 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-07-01 09:47:29 -0700 |
commit | 709dfa69908c9448db91a9bcc96941549be6421e (patch) | |
tree | 2385f31772133f5580886a25739a72b1a30d6743 /builtin | |
parent | Git 2.22 (diff) | |
download | tgif-709dfa69908c9448db91a9bcc96941549be6421e.tar.xz |
object-store.h: move for_each_alternate_ref() from transport.h
There's nothing inherently transport-related about enumerating the
alternate ref tips. The code has lived in transport.[ch] because the
only use so far had been advertising available tips during transport.
But it could be used for more, and a future patch will teach rev-list to
access these refs.
Let's move it alongside the other alt-odb code, declaring it in
object-store.h with the implementation in sha1-file.c.
This lets us drop the inclusion of transport.h from receive-pack, which
perhaps shows how it was misplaced (though receive-pack is about
transporting objects, transport.h is mostly about the client side).
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/receive-pack.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/builtin/receive-pack.c b/builtin/receive-pack.c index 29f165d8bd..4ab6dc1037 100644 --- a/builtin/receive-pack.c +++ b/builtin/receive-pack.c @@ -12,7 +12,6 @@ #include "object.h" #include "remote.h" #include "connect.h" -#include "transport.h" #include "string-list.h" #include "sha1-array.h" #include "connected.h" |