]> git.ipfire.org Git - thirdparty/git.git/commit - transport.c
object-store: migrate alternates struct and functions from cache.h
authorStefan Beller <sbeller@google.com>
Fri, 23 Mar 2018 17:20:56 +0000 (18:20 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 23 Mar 2018 18:06:01 +0000 (11:06 -0700)
commit0d4a132144a14ae6801523960cbc1939a9bab6c1
treec17d22ae0e9b8e01d10c699c9514d8c28345e613
parent90c62155d65a6bec5c2c293c8ece0b22173f63a3
object-store: migrate alternates struct and functions from cache.h

Migrate the struct alternate_object_database and all its related
functions to the object store as these functions are easier found in
that header. The migration is just a verbatim copy, no need to
include the object store header at any C file, because cache.h includes
repository.h which in turn includes the object-store.h

Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
12 files changed:
builtin/clone.c
builtin/count-objects.c
builtin/fsck.c
builtin/submodule--helper.c
cache.h
object-store.h
packfile.c
sha1_name.c
submodule.c
t/helper/test-ref-store.c
tmp-objdir.c
transport.c