]> git.ipfire.org Git - thirdparty/git.git/commit - refs/refs-internal.h
refs: create a base class "ref_store" for files_ref_store
authorMichael Haggerty <mhagger@alum.mit.edu>
Sun, 4 Sep 2016 16:08:11 +0000 (18:08 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 9 Sep 2016 22:28:12 +0000 (15:28 -0700)
commit00eebe351c4b4626a7b8e0b2dc4b7a172f3fd8d9
tree42aeb59c625ab3367921fcef57145adb86d9803c
parent3dce444f178503bf3da13ade6f79c80d6964d175
refs: create a base class "ref_store" for files_ref_store

We want ref_stores to be polymorphic, so invent a base class of which
files_ref_store is a derived class. For now there is exactly one
ref_store for the main repository and one for any submodules whose
references have been accessed.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs.c
refs/files-backend.c
refs/refs-internal.h