summaryrefslogtreecommitdiff
path: root/transport.h
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2019-07-01 13:17:40 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-07-01 16:47:29 (GMT)
commit709dfa69908c9448db91a9bcc96941549be6421e (patch)
tree2385f31772133f5580886a25739a72b1a30d6743 /transport.h
parentb697d92f56511e804b8ba20ccbe7bdc85dc66810 (diff)
downloadgit-709dfa69908c9448db91a9bcc96941549be6421e.zip
git-709dfa69908c9448db91a9bcc96941549be6421e.tar.gz
git-709dfa69908c9448db91a9bcc96941549be6421e.tar.bz2
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 'transport.h')
-rw-r--r--transport.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/transport.h b/transport.h
index 06e06d3..0b5f780 100644
--- a/transport.h
+++ b/transport.h
@@ -262,6 +262,4 @@ int transport_refs_pushed(struct ref *ref);
void transport_print_push_status(const char *dest, struct ref *refs,
int verbose, int porcelain, unsigned int *reject_reasons);
-typedef void alternate_ref_fn(const struct object_id *oid, void *);
-void for_each_alternate_ref(alternate_ref_fn, void *);
#endif