Signed-off-by: Ronnie Sahlberg <rsahlberg@xxxxxxxxxx> Signed-off-by: David Turner <dturner@xxxxxxxxxxxxxxxx> --- refs-be-files.c | 5 +++-- refs.c | 6 ++++++ refs.h | 1 + 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/refs-be-files.c b/refs-be-files.c index 104e90f..7560a55 100644 --- a/refs-be-files.c +++ b/refs-be-files.c @@ -3317,8 +3317,8 @@ void files_init_backend(void *data) /* do nothing */ } -int initial_ref_transaction_commit(struct ref_transaction *transaction, - struct strbuf *err) +static int files_initial_transaction_commit(struct ref_transaction *transaction, + struct strbuf *err) { int ret = 0, i; int n = transaction->nr; @@ -3543,6 +3543,7 @@ struct ref_be refs_be_files = { "files", files_init_backend, files_transaction_commit, + files_initial_transaction_commit, files_for_each_reflog_ent, files_for_each_reflog_ent_reverse, files_for_each_reflog, diff --git a/refs.c b/refs.c index 304fead..6e41ed8 100644 --- a/refs.c +++ b/refs.c @@ -1250,3 +1250,9 @@ int reflog_expire(const char *refname, const unsigned char *sha1, prepare_fn, should_prune_fn, cleanup_fn, policy_cb_data); } + +int initial_ref_transaction_commit(struct ref_transaction *transaction, + struct strbuf *err) +{ + return the_refs_backend->initial_transaction_commit(transaction, err); +} diff --git a/refs.h b/refs.h index 5888877..e3136ee 100644 --- a/refs.h +++ b/refs.h @@ -738,6 +738,7 @@ struct ref_be { const char *name; ref_backend_init_fn *init_backend; ref_transaction_commit_fn *transaction_commit; + ref_transaction_commit_fn *initial_transaction_commit; for_each_reflog_ent_fn *for_each_reflog_ent; for_each_reflog_ent_reverse_fn *for_each_reflog_ent_reverse; for_each_reflog_fn *for_each_reflog; -- 2.4.2.644.g97b850b-twtrsrc -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html