Re: [PATCH 3/8] refs: export `ref_transaction_update_reflog()`
Patrick Steinhardt <ps@pks.im> writes:
[snip]
Show 11 quoted lines
> diff --git a/refs.h b/refs.h
> index efa182c6a14..0faf3bc0422 100644
> --- a/refs.h
> +++ b/refs.h
> @@ -794,6 +794,21 @@ int ref_transaction_update(struct ref_transaction *transaction,
> unsigned int flags, const char *msg,
> struct strbuf *err);
>
> +/*
> + * Similar to`ref_transaction_update`, but this function is only for adding
>
Show 19 quoted lines
> + * a reflog update. Supports providing custom committer information. The index
> + * field can be utiltized to order updates as desired. When not used, the
> + * updates default to being ordered by refname.
> + */
> +int ref_transaction_update_reflog(struct ref_transaction *transaction,
> + const char *refname,
> + const struct object_id *new_oid,
> + const struct object_id *old_oid,
> + const char *committer_info,
> + const char *msg,
> + uint64_t index,
> + struct strbuf *err);
> +
> /*
> * Add a reference creation to transaction. new_oid is the value that
> * the reference should have after the update; it must not be
>
> --
> 2.50.1.465.gcb3da1c9e6.dirty