summaryrefslogtreecommitdiff
path: root/builtin/fast-export.c
diff options
context:
space:
mode:
authorBrandon Williams <bmwill@google.com>2018-05-16 15:58:11 -0700
committerJunio C Hamano <gitster@pobox.com>2018-05-18 06:19:43 +0900
commitd000414e26654f6f13526e4b83c648d7119586f0 (patch)
tree4562ac589c3c0121f1d1f815a8ae2c5d4e352503 /builtin/fast-export.c
parenta2ac50cbfd232b5739bafaf6bfdb80c13633b732 (diff)
downloadgit-d000414e26654f6f13526e4b83c648d7119586f0.tar.gz
remote: convert apply_refspecs to take a struct refspec
Convert 'apply_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/fast-export.c')
-rw-r--r--builtin/fast-export.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/fast-export.c b/builtin/fast-export.c
index 143999738e..41fe49e4d6 100644
--- a/builtin/fast-export.c
+++ b/builtin/fast-export.c
@@ -831,7 +831,7 @@ static void get_tags_and_duplicates(struct rev_cmdline_info *info)
if (refspecs.nr) {
char *private;
- private = apply_refspecs(refspecs.items, refspecs.nr, full_name);
+ private = apply_refspecs(&refspecs, full_name);
if (private) {
free(full_name);
full_name = private;