aboutsummaryrefslogtreecommitdiff
path: root/refs.h
diff options
context:
space:
mode:
authorKarthik Nayak <karthik.188@gmail.com>2025-01-22 06:35:47 +0100
committerJunio C Hamano <gitster@pobox.com>2025-01-22 09:51:35 -0800
commitaf47976cc044ecfd52105bb45f6a9085b3c8a772 (patch)
tree9f1bc0617bfa38701ca142e4ccc33b023f68791f /refs.h
parent0f3d8e2e46baf16358cd2989580ef708820a35f6 (diff)
downloadgit-af47976cc044ecfd52105bb45f6a9085b3c8a772.tar.xz
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>
Diffstat (limited to 'refs.h')
-rw-r--r--refs.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/refs.h b/refs.h
index a0cdd99250..09be47afbe 100644
--- a/refs.h
+++ b/refs.h
@@ -772,20 +772,6 @@ int ref_transaction_update(struct ref_transaction *transaction,
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
* the reference should have after the update; it must not be
* null_oid. It is verified that the reference does not exist