refs: make pack_refs() virtual
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
62665823d2
commit
8231527e15
@ -500,6 +500,8 @@ typedef int ref_transaction_commit_fn(struct ref_store *refs,
|
||||
struct ref_transaction *transaction,
|
||||
struct strbuf *err);
|
||||
|
||||
typedef int pack_refs_fn(struct ref_store *ref_store, unsigned int flags);
|
||||
|
||||
/*
|
||||
* Read a reference from the specified reference store, non-recursively.
|
||||
* Set type to describe the reference, and:
|
||||
@ -554,6 +556,8 @@ struct ref_storage_be {
|
||||
ref_store_init_fn *init;
|
||||
ref_transaction_commit_fn *transaction_commit;
|
||||
|
||||
pack_refs_fn *pack_refs;
|
||||
|
||||
read_raw_ref_fn *read_raw_ref;
|
||||
verify_refname_available_fn *verify_refname_available;
|
||||
};
|
||||
|
Reference in New Issue
Block a user