diff options
| author | Brandon Williams <bmwill@google.com> | 2018-05-16 15:58:12 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2018-05-18 06:19:43 +0900 |
| commit | 86baf82521de70184182972b96bbf1859f097366 (patch) | |
| tree | 8155a3e2dea2e8a968aa70a35481acc886118941 /builtin/push.c | |
| parent | d000414e26654f6f13526e4b83c648d7119586f0 (diff) | |
| download | git-86baf82521de70184182972b96bbf1859f097366.tar.gz | |
remote: convert query_refspecs to take a struct refspec
Convert 'query_refspecs()' to take a 'struct refspec' as a parameter instead
of a list of 'struct refspec_item'.
Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/push.c')
| -rw-r--r-- | builtin/push.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/builtin/push.c b/builtin/push.c index 509dc66772..6b7e458907 100644 --- a/builtin/push.c +++ b/builtin/push.c @@ -83,8 +83,7 @@ static const char *map_refspec(const char *ref, struct refspec_item query; memset(&query, 0, sizeof(struct refspec_item)); query.src = matched->name; - if (!query_refspecs(remote->push.items, remote->push.nr, &query) && - query.dst) { + if (!query_refspecs(&remote->push, &query) && query.dst) { struct strbuf buf = STRBUF_INIT; strbuf_addf(&buf, "%s%s:%s", query.force ? "+" : "", |
