Allows requests to fetch objects at any tip of refs (including
hidden ones). It seems that there may be use cases even outside
Gerrit (e.g. $gmane/215701).
* jc/fetch-raw-sha1:
fetch: fetch objects by their exact SHA-1 object names
upload-pack: optionally allow fetching from the tips of hidden refs
fetch: use struct ref to represent refs to be fetched
parse_fetch_refspec(): clarify the codeflow a bit
@ -518,11 +518,9 @@ static int fetch_refs_via_pack(struct transport *transport,
@@ -518,11 +518,9 @@ static int fetch_refs_via_pack(struct transport *transport,
@ -536,9 +534,6 @@ static int fetch_refs_via_pack(struct transport *transport,
@@ -536,9 +534,6 @@ static int fetch_refs_via_pack(struct transport *transport,
@ -547,7 +542,8 @@ static int fetch_refs_via_pack(struct transport *transport,
@@ -547,7 +542,8 @@ static int fetch_refs_via_pack(struct transport *transport,
refs = fetch_pack(&args, data->fd, data->conn,
refs_tmp ? refs_tmp : transport->remote_refs,
dest, &sought, &transport->pack_lockfile);
dest, to_fetch, nr_heads,
&transport->pack_lockfile);
close(data->fd[0]);
close(data->fd[1]);
if (finish_connect(data->conn))
@ -557,7 +553,6 @@ static int fetch_refs_via_pack(struct transport *transport,
@@ -557,7 +553,6 @@ static int fetch_refs_via_pack(struct transport *transport,
@ -732,8 +740,10 @@ static int mark_our_ref(const char *refname, const unsigned char *sha1, int flag
@@ -732,8 +740,10 @@ static int mark_our_ref(const char *refname, const unsigned char *sha1, int flag