summaryrefslogtreecommitdiffstats
path: root/refs/refs-internal.h
diff options
context:
space:
mode:
authorHan-Wen Nienhuys <hanwen@google.com>2021-11-22 15:19:08 +0100
committerJunio C Hamano <gitster@pobox.com>2021-11-22 20:01:25 +0100
commit7b089120d9e0065978da461f8ccf42000e6760a4 (patch)
treecf891aed11ed2574032887f06c3987be0783ab5f /refs/refs-internal.h
parentGit 2.34 (diff)
downloadgit-7b089120d9e0065978da461f8ccf42000e6760a4.tar.xz
git-7b089120d9e0065978da461f8ccf42000e6760a4.zip
refs: drop force_create argument of create_reflog API
There is only one caller, builtin/checkout.c, and it hardcodes force_create=1. This argument was introduced in abd0cd3a301 (refs: new public ref function: safe_create_reflog, 2015-07-21), which promised to immediately use it in a follow-on commit, but that never happened. Signed-off-by: Han-Wen Nienhuys <hanwen@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs/refs-internal.h')
-rw-r--r--refs/refs-internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/refs/refs-internal.h b/refs/refs-internal.h
index 12224742ed..5b40b3bbbf 100644
--- a/refs/refs-internal.h
+++ b/refs/refs-internal.h
@@ -606,7 +606,7 @@ typedef int for_each_reflog_ent_reverse_fn(struct ref_store *ref_store,
void *cb_data);
typedef int reflog_exists_fn(struct ref_store *ref_store, const char *refname);
typedef int create_reflog_fn(struct ref_store *ref_store, const char *refname,
- int force_create, struct strbuf *err);
+ struct strbuf *err);
typedef int delete_reflog_fn(struct ref_store *ref_store, const char *refname);
typedef int reflog_expire_fn(struct ref_store *ref_store,
const char *refname,