summaryrefslogtreecommitdiff
path: root/fetch-pack.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-01-29 22:02:15 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-02-07 21:53:59 (GMT)
commitf2db854d24f32de7b03dde5a7d7134f5e31100b9 (patch)
tree3654e0cb8fcfc1b96fc66f5a1f199cd81a2e867d /fetch-pack.h
parentdef249911ad0e36a40a0603fc42b7e9cf0b21546 (diff)
downloadgit-f2db854d24f32de7b03dde5a7d7134f5e31100b9.zip
git-f2db854d24f32de7b03dde5a7d7134f5e31100b9.tar.gz
git-f2db854d24f32de7b03dde5a7d7134f5e31100b9.tar.bz2
fetch: use struct ref to represent refs to be fetched
Even though "git fetch" has full infrastructure to parse refspecs to be fetched and match them against the list of refs to come up with the final list of refs to be fetched, the list of refs that are requested to be fetched were internally converted to a plain list of strings at the transport layer and then passed to the underlying fetch-pack driver. Stop this conversion and instead pass around an array of refs. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'fetch-pack.h')
-rw-r--r--fetch-pack.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/fetch-pack.h b/fetch-pack.h
index cb14871..dc5266c 100644
--- a/fetch-pack.h
+++ b/fetch-pack.h
@@ -20,17 +20,16 @@ struct fetch_pack_args {
};
/*
- * sought contains the full names of remote references that should be
- * updated from. On return, the names that were found on the remote
- * will have been removed from the list. The util members of the
- * string_list_items are used internally; they must be NULL on entry
- * (and will be NULL on exit).
+ * sought represents remote references that should be updated from.
+ * On return, the names that were found on the remote will have been
+ * marked as such.
*/
struct ref *fetch_pack(struct fetch_pack_args *args,
int fd[], struct child_process *conn,
const struct ref *ref,
const char *dest,
- struct string_list *sought,
+ struct ref **sought,
+ int nr_sought,
char **pack_lockfile);
#endif