diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-12-11 01:35:13 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-12-11 01:35:13 +0300 |
commit | b8148376a2dbb02ade419c2e3fdc478c1f0981dd (patch) | |
tree | 93c26104ae0f7c1052b3369263c61187745f4fb5 /refs.c | |
parent | cdac0caddd21c9469ca09f9942cb0e9bc3649204 (diff) | |
parent | 7b089120d9e0065978da461f8ccf42000e6760a4 (diff) |
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 'refs.c')
-rw-r--r-- | refs.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -2373,16 +2373,15 @@ int reflog_exists(const char *refname) } int refs_create_reflog(struct ref_store *refs, const char *refname, - int force_create, struct strbuf *err) + struct strbuf *err) { - return refs->be->create_reflog(refs, refname, force_create, err); + return refs->be->create_reflog(refs, refname, err); } -int safe_create_reflog(const char *refname, int force_create, - struct strbuf *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) |