refs: mark ref_transaction_update_reflog()
as static
The `ref_transaction_update_reflog()` function is only used within 'refs.c', so mark it as static. Reported-by: Junio C Hamano <gitster@pobox.com> Signed-off-by: Karthik Nayak <karthik.188@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
0f3d8e2e46
commit
af47976cc0
22
refs.c
22
refs.c
@ -1318,13 +1318,21 @@ int ref_transaction_update(struct ref_transaction *transaction,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int ref_transaction_update_reflog(struct ref_transaction *transaction,
|
/*
|
||||||
const char *refname,
|
* Similar to`ref_transaction_update`, but this function is only for adding
|
||||||
const struct object_id *new_oid,
|
* a reflog update. Supports providing custom committer information. The index
|
||||||
const struct object_id *old_oid,
|
* field can be utiltized to order updates as desired. When not used, the
|
||||||
const char *committer_info, unsigned int flags,
|
* updates default to being ordered by refname.
|
||||||
const char *msg, unsigned int index,
|
*/
|
||||||
struct strbuf *err)
|
static 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,
|
||||||
|
unsigned int flags,
|
||||||
|
const char *msg,
|
||||||
|
unsigned int index,
|
||||||
|
struct strbuf *err)
|
||||||
{
|
{
|
||||||
struct ref_update *update;
|
struct ref_update *update;
|
||||||
|
|
||||||
|
14
refs.h
14
refs.h
@ -771,20 +771,6 @@ int ref_transaction_update(struct ref_transaction *transaction,
|
|||||||
unsigned int flags, const char *msg,
|
unsigned int flags, const char *msg,
|
||||||
struct strbuf *err);
|
struct strbuf *err);
|
||||||
|
|
||||||
/*
|
|
||||||
* Similar to`ref_transaction_update`, but this function is only for adding
|
|
||||||
* 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, unsigned int flags,
|
|
||||||
const char *msg, unsigned int index,
|
|
||||||
struct strbuf *err);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Add a reference creation to transaction. new_oid is the value that
|
* Add a reference creation to transaction. new_oid is the value that
|
||||||
* the reference should have after the update; it must not be
|
* the reference should have after the update; it must not be
|
||||||
|
Reference in New Issue
Block a user