diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-12-07 12:45:15 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-12-07 12:45:15 -0800 |
commit | 4e26066009ef3d4e725da075f1bed39630e4da9f (patch) | |
tree | 1986844d3ea7c07d912b662d088c80639917f347 /refs.c | |
parent | Merge branch 'hn/reftable' into hn/reftable-coverity-fixes (diff) | |
parent | refs: drop force_create argument of create_reflog API (diff) | |
download | tgif-4e26066009ef3d4e725da075f1bed39630e4da9f.tar.xz |
Merge branch 'hn/create-reflog-simplify' into hn/reftable-coverity-fixes
* 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
@@ -2366,16 +2366,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) |