]> git.ipfire.org Git - thirdparty/git.git/commit - object-store.h
object-store: move alt_odb_list and alt_odb_tail to object store
authorStefan Beller <sbeller@google.com>
Fri, 23 Mar 2018 17:20:57 +0000 (18:20 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 23 Mar 2018 18:06:01 +0000 (11:06 -0700)
commit031dc927f443fa5274e794c12ac34f19a0e0d318
tree07acd9769fb07037595e1ac0643984f43c8b3641
parent0d4a132144a14ae6801523960cbc1939a9bab6c1
object-store: move alt_odb_list and alt_odb_tail to object store

In a process with multiple repositories open, alternates should be
associated to a single repository and not shared globally. Move
alt_odb_list and alt_odb_tail into the_repository and adjust callers
to reflect this.

Now that the alternative object data base is per repository, we're
leaking its memory upon freeing a repository. The next patch plugs
this hole.

No functional change intended.

Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fsck.c
object-store.h
packfile.c
sha1_file.c
sha1_name.c