diff options
| author | Junio C Hamano <gitster@pobox.com> | 2021-12-10 14:35:13 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2021-12-10 14:35:13 -0800 |
| commit | b8148376a2dbb02ade419c2e3fdc478c1f0981dd (patch) | |
| tree | 93c26104ae0f7c1052b3369263c61187745f4fb5 /t/helper/test-ref-store.c | |
| parent | cdac0caddd21c9469ca09f9942cb0e9bc3649204 (diff) | |
| parent | 7b089120d9e0065978da461f8ccf42000e6760a4 (diff) | |
| download | git-b8148376a2dbb02ade419c2e3fdc478c1f0981dd.tar.gz | |
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 't/helper/test-ref-store.c')
| -rw-r--r-- | t/helper/test-ref-store.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/t/helper/test-ref-store.c b/t/helper/test-ref-store.c index 3986665037..73461c29d3 100644 --- a/t/helper/test-ref-store.c +++ b/t/helper/test-ref-store.c @@ -182,11 +182,10 @@ static int cmd_reflog_exists(struct ref_store *refs, const char **argv) static int cmd_create_reflog(struct ref_store *refs, const char **argv) { const char *refname = notnull(*argv++, "refname"); - int force_create = arg_flags(*argv++, "force-create"); struct strbuf err = STRBUF_INIT; int ret; - ret = refs_create_reflog(refs, refname, force_create, &err); + ret = refs_create_reflog(refs, refname, &err); if (err.len) puts(err.buf); return ret; |
