]> git.ipfire.org Git - thirdparty/git.git/commit
refs: drop force_create argument of create_reflog API
authorHan-Wen Nienhuys <hanwen@google.com>
Mon, 22 Nov 2021 14:19:08 +0000 (14:19 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 22 Nov 2021 19:01:25 +0000 (11:01 -0800)
commit7b089120d9e0065978da461f8ccf42000e6760a4
treecf891aed11ed2574032887f06c3987be0783ab5f
parentcd3e606211bb1cf8bc57f7d76bab98cc17a150bc
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>
builtin/checkout.c
refs.c
refs.h
refs/debug.c
refs/files-backend.c
refs/packed-backend.c
refs/refs-internal.h
t/helper/test-ref-store.c
t/t1405-main-ref-store.sh
t/t1406-submodule-ref-store.sh