summaryrefslogtreecommitdiff
path: root/fetch-pack.c
Commit message (Collapse)AuthorAgeFilesLines
* fetch-pack: start multi-head pulling.Junio C Hamano2005-08-121-16/+40
| | | | | | | | | | This is a beginning of resurrecting the multi-head pulling support for git-fetch-pack command. The git-fetch-script wrapper still only knows about fetching a single head, without renaming, so it is not very useful unless you directly call git-fetch-pack itself yet. It also fixes a longstanding obsolete description of how the command discovers the list of local commits.
* Merge three separate "fetch refs" functionsLinus Torvalds2005-07-161-33/+17
| | | | | It really just boils down to one "get_remote_heads()" function, and a common "struct ref" structure definition.
* [PATCH] Documentation: clone/fetch/upload.Junio C Hamano2005-07-141-3/+8
| | | | | | | This adds documentation for 'smarter pull' family of commands. Signed-off-by: Junio C Hamano <junkio@cox.net> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
* Get rid of nasty utf-8 characters in printoutLinus Torvalds2005-07-131-1/+1
| | | | | | Oh, well.. FC4 has UTF-8 as the default environment, and I applaud that, but then it sometimes results in these characters that aren't actually visible as a problem.
* git-fetch-pack: close output fd after dup'ing the inputLinus Torvalds2005-07-131-1/+1
| | | | | With the socket case, the input and output fd's might end up being the same, so we want to dup the other before we close either of them.
* Move "get_ack()" to common git_connect functionsLinus Torvalds2005-07-051-18/+0
| | | | git-clone-pack will want it too. Soon.
* Remove multi-head support from fetch-packLinus Torvalds2005-07-051-38/+3
| | | | | It was a misguided attempt to mix fetching and cloning. I'll make a separate clone thing.
* Add "git_path()" and "head_ref()" helper functions.Linus Torvalds2005-07-051-5/+1
| | | | | | | "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.
* Make git-fetch-pack actually do all the unpacking etc.Linus Torvalds2005-07-041-14/+48
| | | | | | | | | | It returns the result SHA1 on stdout, so you can do remote=$(git-fetch-pack host:dir branchname) and it will unpack the objects and "remote" will be the SHA1 name of the branch on the other side. You can then save that off, or merge it, or whatever.
* Make git-fetch-pack and git-upload-pack negotiate needs/haves fullyLinus Torvalds2005-07-041-9/+62
| | | | Now the only piece missing is actually generating the pack-file.
* Commit first cut at "git-fetch-pack"Linus Torvalds2005-07-041-0/+125
It's meant to be used by "git fetch" for the local and ssh case. It doesn't actually do the fetching now, but it does discover the common commit point.