summaryrefslogtreecommitdiff
path: root/refs.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-12-10 22:35:13 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-12-10 22:35:13 (GMT)
commitb8148376a2dbb02ade419c2e3fdc478c1f0981dd (patch)
tree93c26104ae0f7c1052b3369263c61187745f4fb5 /refs.h
parentcdac0caddd21c9469ca09f9942cb0e9bc3649204 (diff)
parent7b089120d9e0065978da461f8ccf42000e6760a4 (diff)
downloadgit-b8148376a2dbb02ade419c2e3fdc478c1f0981dd.zip
git-b8148376a2dbb02ade419c2e3fdc478c1f0981dd.tar.gz
git-b8148376a2dbb02ade419c2e3fdc478c1f0981dd.tar.bz2
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.h')
-rw-r--r--refs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/refs.h b/refs.h
index 45c34e9..bb50d1e 100644
--- a/refs.h
+++ b/refs.h
@@ -417,8 +417,8 @@ int refs_pack_refs(struct ref_store *refs, unsigned int flags);
* Setup reflog before using. Fill in err and return -1 on failure.
*/
int refs_create_reflog(struct ref_store *refs, const char *refname,
- int force_create, struct strbuf *err);
-int safe_create_reflog(const char *refname, int force_create, struct strbuf *err);
+ struct strbuf *err);
+int safe_create_reflog(const char *refname, struct strbuf *err);
/** Reads log for the value of ref during at_time. **/
int read_ref_at(struct ref_store *refs,