diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-12-10 14:35:13 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-12-10 14:35:13 -0800 |
commit | b8148376a2dbb02ade419c2e3fdc478c1f0981dd (patch) | |
tree | 93c26104ae0f7c1052b3369263c61187745f4fb5 /builtin/checkout.c | |
parent | Merge branch 'jt/midx-doc-fix' (diff) | |
parent | refs: drop force_create argument of create_reflog API (diff) | |
download | tgif-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/checkout.c')
-rw-r--r-- | builtin/checkout.c | 2 |
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); |