diff options
author | Brandon Williams <bmwill@google.com> | 2018-03-15 18:31:23 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-03-15 20:01:08 +0100 |
commit | 1af8ae1cfa44a3f3c3f1efb7f9ebe68bc0ce7578 (patch) | |
tree | caf98c45f10651c6b86ba2c6753716c0ee4ae2c7 /builtin/ls-remote.c | |
parent | transport: convert get_refs_list to take a list of ref prefixes (diff) | |
download | git-1af8ae1cfa44a3f3c3f1efb7f9ebe68bc0ce7578.tar.xz git-1af8ae1cfa44a3f3c3f1efb7f9ebe68bc0ce7578.zip |
transport: convert transport_get_remote_refs to take a list of ref prefixes
Teach transport_get_remote_refs() to accept a list of ref prefixes,
which will be sent to the server for use in filtering when using
protocol v2. (This list will be ignored when not using protocol v2.)
Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/ls-remote.c')
-rw-r--r-- | builtin/ls-remote.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/ls-remote.c b/builtin/ls-remote.c index c4be98ab9e..c6e9847c5c 100644 --- a/builtin/ls-remote.c +++ b/builtin/ls-remote.c @@ -96,7 +96,7 @@ int cmd_ls_remote(int argc, const char **argv, const char *prefix) if (uploadpack != NULL) transport_set_option(transport, TRANS_OPT_UPLOADPACK, uploadpack); - ref = transport_get_remote_refs(transport); + ref = transport_get_remote_refs(transport, NULL); if (transport_disconnect(transport)) return 1; |