summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2021-12-10 14:35:13 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-12-10 14:35:13 -0800
commitb8148376a2dbb02ade419c2e3fdc478c1f0981dd (patch)
tree93c26104ae0f7c1052b3369263c61187745f4fb5 /builtin
parentMerge branch 'jt/midx-doc-fix' (diff)
parentrefs: drop force_create argument of create_reflog API (diff)
downloadtgif-b8148376a2dbb02ade419c2e3fdc478c1f0981dd.tar.xz
Merge branch 'hn/create-reflog-simplify'
A small simplification of API. * hn/create-reflog-simplify: refs: drop force_create argument of create_reflog API
Diffstat (limited to 'builtin')
-rw-r--r--builtin/checkout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/checkout.c b/builtin/checkout.c
index 43d0275187..3fe87a632e 100644
--- a/builtin/checkout.c
+++ b/builtin/checkout.c
@@ -885,7 +885,7 @@ static void update_refs_for_switch(const struct checkout_opts *opts,
int ret;
struct strbuf err = STRBUF_INIT;
- ret = safe_create_reflog(refname, 1, &err);
+ ret = safe_create_reflog(refname, &err);
if (ret) {
fprintf(stderr, _("Can not do reflog for '%s': %s\n"),
opts->new_orphan_branch, err.buf);