summaryrefslogtreecommitdiff
path: root/refs.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2021-12-07 12:45:15 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-12-07 12:45:15 -0800
commit4e26066009ef3d4e725da075f1bed39630e4da9f (patch)
tree1986844d3ea7c07d912b662d088c80639917f347 /refs.c
parentMerge branch 'hn/reftable' into hn/reftable-coverity-fixes (diff)
parentrefs: drop force_create argument of create_reflog API (diff)
downloadtgif-4e26066009ef3d4e725da075f1bed39630e4da9f.tar.xz
Merge branch 'hn/create-reflog-simplify' into hn/reftable-coverity-fixes
* hn/create-reflog-simplify: refs: drop force_create argument of create_reflog API
Diffstat (limited to 'refs.c')
-rw-r--r--refs.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/refs.c b/refs.c
index 996ac27164..958c744036 100644
--- a/refs.c
+++ b/refs.c
@@ -2366,16 +2366,15 @@ int reflog_exists(const char *refname)
}
int refs_create_reflog(struct ref_store *refs, const char *refname,
- int force_create, struct strbuf *err)
+ struct strbuf *err)
{
- return refs->be->create_reflog(refs, refname, force_create, err);
+ return refs->be->create_reflog(refs, refname, err);
}
-int safe_create_reflog(const char *refname, int force_create,
- struct strbuf *err)
+int safe_create_reflog(const char *refname, struct strbuf *err)
{
return refs_create_reflog(get_main_ref_store(the_repository), refname,
- force_create, err);
+ err);
}
int refs_delete_reflog(struct ref_store *refs, const char *refname)