]> git.ipfire.org Git - thirdparty/git.git/commit - refs/refs-internal.h
refs: add a backend method structure
authorRonnie Sahlberg <sahlberg@google.com>
Sun, 4 Sep 2016 16:08:10 +0000 (18:08 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 9 Sep 2016 22:28:12 +0000 (15:28 -0700)
commit3dce444f178503bf3da13ade6f79c80d6964d175
tree85c8e334ab027c9abcfb249c4337c711f2bf43c1
parent65a0a8e5facb42f41561a96af209016954878b63
refs: add a backend method structure

Add a `struct ref_storage_be` to represent types of reference stores. In
OO notation, this is the class, and will soon hold some class
methods (e.g., a factory to create new ref_store instances) and will
also serve as the vtable for ref_store instances of that type.

As yet, the backends cannot do anything.

Signed-off-by: Ronnie Sahlberg <sahlberg@google.com>
Signed-off-by: David Turner <dturner@twopensource.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs.c
refs.h
refs/files-backend.c
refs/refs-internal.h