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 abd0cd3a30
(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>
This commit is contained in:

committed by
Junio C Hamano

parent
cd3e606211
commit
7b089120d9
@ -1639,15 +1639,14 @@ error:
|
||||
return -1;
|
||||
}
|
||||
|
||||
static int files_create_reflog(struct ref_store *ref_store,
|
||||
const char *refname, int force_create,
|
||||
static int files_create_reflog(struct ref_store *ref_store, const char *refname,
|
||||
struct strbuf *err)
|
||||
{
|
||||
struct files_ref_store *refs =
|
||||
files_downcast(ref_store, REF_STORE_WRITE, "create_reflog");
|
||||
int fd;
|
||||
|
||||
if (log_ref_setup(refs, refname, force_create, &fd, err))
|
||||
if (log_ref_setup(refs, refname, 1, &fd, err))
|
||||
return -1;
|
||||
|
||||
if (fd >= 0)
|
||||
|
Reference in New Issue
Block a user