summaryrefslogtreecommitdiff
path: root/builtin-fetch--tool.c
AgeCommit message (Collapse)AuthorFilesLines
2007-02-28builtin-fetch--tool: fix reflog notes.Libravatar Junio C Hamano1-4/+6
Also the verbose output had unnecessary SHA1 and not-for-merge markers leaked because append_fetch_head() cheated Signed-off-by: Junio C Hamano <junkio@cox.net>
2007-02-28git-fetch: retire update-local-ref which is not used anymore.Libravatar Junio C Hamano1-6/+0
Signed-off-by: Junio C Hamano <junkio@cox.net>
2007-02-27builtin-fetch--tool: make sure not to overstep ls-remote-result buffer.Libravatar Junio C Hamano1-0/+2
Signed-off-by: Junio C Hamano <junkio@cox.net>
2007-02-27fetch--tool: fix uninitialized buffer when reading from stdinLibravatar Junio C Hamano1-6/+13
The original code allocates too much space and forgets to NUL terminate the string. Signed-off-by: Junio C Hamano <junkio@cox.net>
2007-02-27builtin-fetch--tool: adjust to updated sha1_object_info().Libravatar Junio C Hamano1-4/+6
Signed-off-by: Junio C Hamano <junkio@cox.net>
2007-02-13Allow fetch--tool to read from stdinLibravatar Julian Phillips1-2/+25
If the reflist is "-" then read the reflist data from stdin instead, this will allow the passing of more than 128K of reflist data - which won't fit in the environment passed by execve. Signed-off-by: Julian Phillips <julian@quantumfyre.co.uk> Signed-off-by: Junio C Hamano <junkio@cox.net>
2007-02-13git-fetch: rewrite expand_ref_wildcard in CLibravatar Junio C Hamano1-0/+90
This does not seem to make measurable improvement when dealing with 1000 unpacked refs, but we would need something like it if we were to do a full rewrite in C somedaoy. Signed-off-by: Junio C Hamano <junkio@cox.net>
2007-02-13git-fetch: rewrite another shell loop in CLibravatar Junio C Hamano1-0/+46
Move another shell loop that canonicalizes the list of refs for underlying git-fetch-pack and fetch-native-store into C. This seems to shave the runtime for the same 1000 branch repository from 30 seconds down to 15 seconds (it used to be 2 and half minutes with the original version). Signed-off-by: Junio C Hamano <junkio@cox.net>
2007-02-13git-fetch: move more code into C.Libravatar Junio C Hamano1-0/+125
This adds "native-store" subcommand to git-fetch--tool to move a huge loop implemented in shell into C. This shaves about 70% of the runtime to fetch and update 1000 tracking branches with a single fetch. Signed-off-by: Junio C Hamano <junkio@cox.net>
2007-02-13git-fetch--tool: start rewriting parts of git-fetch in C.Libravatar Junio C Hamano1-0/+214
Signed-off-by: Junio C Hamano <junkio@cox.net>