aboutsummaryrefslogtreecommitdiff
path: root/refs/debug.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-12-07 12:45:15 -0800
committerJunio C Hamano <gitster@pobox.com>2021-12-07 12:45:15 -0800
commit4e26066009ef3d4e725da075f1bed39630e4da9f (patch)
tree1986844d3ea7c07d912b662d088c80639917f347 /refs/debug.c
parentbb4921cf45e11d063e7bbe55f594adf8f0077d5d (diff)
parent7b089120d9e0065978da461f8ccf42000e6760a4 (diff)
downloadgit-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/debug.c')
-rw-r--r--refs/debug.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/refs/debug.c b/refs/debug.c
index 8667c64023..756d07c724 100644
--- a/refs/debug.c
+++ b/refs/debug.c
@@ -339,11 +339,10 @@ static int debug_reflog_exists(struct ref_store *ref_store, const char *refname)
}
static int debug_create_reflog(struct ref_store *ref_store, const char *refname,
- int force_create, struct strbuf *err)
+ struct strbuf *err)
{
struct debug_ref_store *drefs = (struct debug_ref_store *)ref_store;
- int res = drefs->refs->be->create_reflog(drefs->refs, refname,
- force_create, err);
+ int res = drefs->refs->be->create_reflog(drefs->refs, refname, err);
trace_printf_key(&trace_refs, "create_reflog: %s: %d\n", refname, res);
return res;
}