Add "git_path()" and "head_ref()" helper functions.
"git_path()" returns a static pathname pointer into the git directory using a printf-like format specifier. "head_ref()" works like "for_each_ref()", except for just the HEAD.
This commit is contained in:
@ -153,6 +153,7 @@ static int send_ref(const char *refname, const unsigned char *sha1)
|
||||
|
||||
static int upload_pack(void)
|
||||
{
|
||||
head_ref(send_ref);
|
||||
for_each_ref(send_ref);
|
||||
packet_flush(1);
|
||||
nr_needs = receive_needs();
|
||||
|
||||
Reference in New Issue
Block a user