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
13
refs.c
13
refs.c
@ -2358,16 +2358,15 @@ int reflog_exists(const char *refname)
|
||||
}
|
||||
|
||||
int refs_create_reflog(struct ref_store *refs, const char *refname,
|
||||
int force_create, struct strbuf *err)
|
||||
{
|
||||
return refs->be->create_reflog(refs, refname, force_create, err);
|
||||
}
|
||||
|
||||
int safe_create_reflog(const char *refname, int force_create,
|
||||
struct strbuf *err)
|
||||
{
|
||||
return refs->be->create_reflog(refs, refname, err);
|
||||
}
|
||||
|
||||
int safe_create_reflog(const char *refname, struct strbuf *err)
|
||||
{
|
||||
return refs_create_reflog(get_main_ref_store(the_repository), refname,
|
||||
force_create, err);
|
||||
err);
|
||||
}
|
||||
|
||||
int refs_delete_reflog(struct ref_store *refs, const char *refname)
|
||||
|
Reference in New Issue
Block a user