Go to file
Tay Ray Chuan 2264dfa5c4 http*: add helper methods for fetching packs
The code handling the fetching of packs in http-push.c and
http-walker.c have been refactored into new methods and a new struct
(http_pack_request) in http.c. They are not meant to be invoked
elsewhere.

The new methods in http.c are
 - new_http_pack_request
 - finish_http_pack_request
 - release_http_pack_request

and the new struct is http_pack_request.

Add a function, new_http_pack_request(), that deals with the details of
coming up with the filename to store the retrieved packfile, resuming a
previously aborted request, and making a new curl request. Update
http-push.c::start_fetch_packed() and http-walker.c::fetch_pack() to
use this.

Add a function, finish_http_pack_request(), that deals with renaming
the pack, advancing the pack list, and installing the pack. Update
http-push.c::finish_request() and http-walker.c::fetch_pack to use
this.

Update release_request() in http-push.c and http-walker.c to invoke
release_http_pack_request() to clean up pack request helper data.

The local_stream member of the transfer_request struct in http-push.c
has been removed, as the packfile pointer will be managed in the struct
http_pack_request.

Signed-off-by: Tay Ray Chuan <rctay89@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2009-06-06 11:03:11 -07:00
Documentation Merge branch 'js/add-edit' 2009-05-18 09:00:06 -07:00
arm
compat Fix a bunch of pointer declarations (codestyle) 2009-05-01 15:17:31 -07:00
contrib Merge branch 'mh/show-branch-color' 2009-05-18 08:59:48 -07:00
git-gui Merge git://repo.or.cz/git-gui 2009-05-01 22:11:57 -07:00
gitk-git Merge git://git.kernel.org/pub/scm/gitk/gitk 2009-04-30 19:56:28 -07:00
gitweb gitweb: Remove function prototypes (cleanup) 2009-05-09 01:35:15 -07:00
mozilla-sha1
perl add --html-path to get the location of installed HTML docs 2009-04-04 23:57:59 -07:00
ppc
t t5550-http-fetch: test fetching of packed objects 2009-06-06 10:56:27 -07:00
templates pre-commit.sample: don't print incidental SHA1 2009-05-16 11:57:17 -07:00
xdiff Fix typos / spelling in comments 2009-04-22 19:02:12 -07:00
.gitattributes
.gitignore Merge branch 'da/difftool' 2009-04-17 21:42:12 -07:00
.mailmap
COPYING
GIT-VERSION-GEN GIT 1.6.3.1 2009-05-12 22:30:29 -07:00
INSTALL
Makefile Turn on USE_ST_TIMESPEC for OpenBSD 2009-05-16 10:23:26 -07:00
README
RelNotes Start 1.6.4 development 2009-05-08 21:57:02 -07:00
abspath.c
alias.c Fix a bunch of pointer declarations (codestyle) 2009-05-01 15:17:31 -07:00
alloc.c Fix a bunch of pointer declarations (codestyle) 2009-05-01 15:17:31 -07:00
archive-tar.c archive-tar.c: squelch a type mismatch warning 2009-05-08 23:57:29 -07:00
archive-zip.c
archive.c archive: do not read .gitattributes in working directory 2009-04-17 21:05:49 -07:00
archive.h archive: do not read .gitattributes in working directory 2009-04-17 21:05:49 -07:00
attr.c Fix a bunch of pointer declarations (codestyle) 2009-05-01 15:17:31 -07:00
attr.h attr: add GIT_ATTR_INDEX "direction" 2009-04-17 21:05:49 -07:00
base85.c
bisect.c rev-list: add "int bisect_show_flags" in "struct rev_list_info" 2009-04-07 22:12:44 -07:00
bisect.h rev-list: add "int bisect_show_flags" in "struct rev_list_info" 2009-04-07 22:12:44 -07:00
blob.c
blob.h
branch.c
branch.h
builtin-add.c Merge branch 'jk/maint-add-empty' 2009-05-18 09:01:01 -07:00
builtin-annotate.c
builtin-apply.c replace direct calls to unlink(2) with unlink_or_warn 2009-04-29 18:37:41 -07:00
builtin-archive.c
builtin-bisect--helper.c bisect--helper: implement "git bisect--helper" 2009-04-05 01:29:44 -07:00
builtin-blame.c Fix a bunch of pointer declarations (codestyle) 2009-05-01 15:17:31 -07:00
builtin-branch.c allow -t abbreviation for --track in git branch 2009-05-09 08:32:14 -07:00
builtin-bundle.c
builtin-cat-file.c
builtin-check-attr.c
builtin-check-ref-format.c
builtin-checkout-index.c Fix a bunch of pointer declarations (codestyle) 2009-05-01 15:17:31 -07:00
builtin-checkout.c builtin-checkout: Don't tell user that HEAD has moved before it has 2009-05-16 12:51:58 -07:00
builtin-clean.c
builtin-clone.c Merge branch 'ar/unlink-err' 2009-05-18 09:01:06 -07:00
builtin-commit-tree.c
builtin-commit.c Merge branch 'maint-1.6.1' into maint 2009-04-05 01:04:54 -07:00
builtin-config.c git config: error when editing a repo config and not being in one 2009-04-29 16:50:21 -07:00
builtin-count-objects.c Merge branch 'jc/maint-1.6.0-keep-pack' into maint-1.6.1 2009-05-03 15:01:31 -07:00
builtin-describe.c Fix a bunch of pointer declarations (codestyle) 2009-05-01 15:17:31 -07:00
builtin-diff-files.c
builtin-diff-index.c
builtin-diff-tree.c
builtin-diff.c
builtin-fast-export.c builtin-fast-export.c: handle nested tags 2009-04-19 12:29:26 -07:00
builtin-fetch--tool.c
builtin-fetch-pack.c Merge branch 'ar/unlink-err' 2009-05-18 09:01:06 -07:00
builtin-fetch.c Merge branch 'ae/anon-fetch-info' 2009-05-18 08:59:27 -07:00
builtin-fmt-merge-msg.c
builtin-for-each-ref.c for-each-ref: utilize core.warnAmbiguousRefs for :short-format 2009-04-13 09:36:52 -07:00
builtin-fsck.c Merge branch 'jc/maint-1.6.0-keep-pack' into maint-1.6.1 2009-05-03 15:01:31 -07:00
builtin-gc.c
builtin-grep.c grep: don't support "grep.color"-like config options 2009-04-20 22:55:56 -07:00
builtin-help.c Fix a bunch of pointer declarations (codestyle) 2009-05-01 15:17:31 -07:00
builtin-http-fetch.c
builtin-init-db.c Merge branch 'maint' 2009-04-18 14:45:59 -07:00
builtin-log.c Merge branch 'sb/format-patch-patchname' 2009-04-06 00:42:23 -07:00
builtin-ls-files.c Fix typos / spelling in comments 2009-04-22 19:02:12 -07:00
builtin-ls-remote.c
builtin-ls-tree.c
builtin-mailinfo.c
builtin-mailsplit.c
builtin-merge-base.c
builtin-merge-file.c
builtin-merge-ours.c
builtin-merge-recursive.c
builtin-merge.c Merge branch 'maint' 2009-04-28 00:46:39 -07:00
builtin-mv.c
builtin-name-rev.c
builtin-pack-objects.c Merge branch 'lt/pack-object-memuse' into maint 2009-05-03 15:02:40 -07:00
builtin-pack-refs.c
builtin-prune-packed.c replace direct calls to unlink(2) with unlink_or_warn 2009-04-29 18:37:41 -07:00
builtin-prune.c replace direct calls to unlink(2) with unlink_or_warn 2009-04-29 18:37:41 -07:00
builtin-push.c
builtin-read-tree.c Merge branch 'jc/maint-read-tree-multi' 2009-04-22 19:36:19 -07:00
builtin-receive-pack.c Merge branch 'np/push-delta' 2009-05-18 09:01:16 -07:00
builtin-reflog.c Fix more typos/spelling in comments 2009-04-22 19:03:39 -07:00
builtin-remote.c replace direct calls to unlink(2) with unlink_or_warn 2009-04-29 18:37:41 -07:00
builtin-rerere.c replace direct calls to unlink(2) with unlink_or_warn 2009-04-29 18:37:41 -07:00
builtin-reset.c Fix typos / spelling in comments 2009-04-22 19:02:12 -07:00
builtin-rev-list.c Merge branch 'lt/pack-object-memuse' into maint 2009-05-03 15:02:40 -07:00
builtin-rev-parse.c rev-parse: --abbrev-ref option to shorten ref name 2009-04-13 09:42:55 -07:00
builtin-revert.c
builtin-rm.c
builtin-send-pack.c allow OFS_DELTA objects during a push 2009-05-01 22:06:41 -07:00
builtin-shortlog.c
builtin-show-branch.c Merge branch 'mh/show-branch-color' 2009-05-18 08:59:48 -07:00
builtin-show-ref.c
builtin-stripspace.c
builtin-symbolic-ref.c
builtin-tag.c replace direct calls to unlink(2) with unlink_or_warn 2009-04-29 18:37:41 -07:00
builtin-tar-tree.c archive: do not read .gitattributes in working directory 2009-04-17 21:05:49 -07:00
builtin-unpack-objects.c
builtin-update-index.c Fix a bunch of pointer declarations (codestyle) 2009-05-01 15:17:31 -07:00
builtin-update-ref.c
builtin-upload-archive.c
builtin-verify-pack.c
builtin-verify-tag.c replace direct calls to unlink(2) with unlink_or_warn 2009-04-29 18:37:41 -07:00
builtin-write-tree.c
builtin.h bisect--helper: implement "git bisect--helper" 2009-04-05 01:29:44 -07:00
bundle.c
bundle.h
cache-tree.c Move prime_cache_tree() to cache-tree.c 2009-04-20 04:16:41 -07:00
cache-tree.h Move prime_cache_tree() to cache-tree.c 2009-04-20 04:16:41 -07:00
cache.h Merge branch 'jc/maint-1.6.0-keep-pack' into maint-1.6.1 2009-05-03 15:01:31 -07:00
check-builtins.sh
check-racy.c
check_bindir
color.c
color.h graph API: Added logic for colored edges 2009-04-13 22:41:25 -07:00
combine-diff.c Fix a bunch of pointer declarations (codestyle) 2009-05-01 15:17:31 -07:00
command-list.txt difftool: move 'git-difftool' out of contrib 2009-04-07 22:19:56 -07:00
commit.c
commit.h
config.c improve error message in config.c 2009-05-05 22:49:43 -07:00
config.mak.in
configure.ac
connect.c connect: replace inet_ntop with getnameinfo 2009-04-25 09:29:38 -07:00
convert.c
copy.c
csum-file.c
csum-file.h
ctype.c ctype.c: fix typo in comment 2009-05-01 16:07:29 -07:00
daemon.c daemon.c: fix segfault on OS X 2009-04-29 16:50:21 -07:00
date.c Work around BSD whose typeof(tv.tv_sec) != time_t 2009-05-05 22:19:14 -07:00
decorate.c Fix type-punning issues 2009-05-16 22:41:18 -07:00
decorate.h
delta.h
diff-delta.c
diff-lib.c
diff-no-index.c Fix a bunch of pointer declarations (codestyle) 2009-05-01 15:17:31 -07:00
diff.c Merge branch 'ar/unlink-err' 2009-05-18 09:01:06 -07:00
diff.h
diffcore-break.c
diffcore-delta.c
diffcore-order.c
diffcore-pickaxe.c
diffcore-rename.c Fix typos / spelling in comments 2009-04-22 19:02:12 -07:00
diffcore.h
dir.c dir.c: clean up handling of 'path' parameter in read_directory_recursive() 2009-05-16 22:41:46 -07:00
dir.h
editor.c
entry.c replace direct calls to unlink(2) with unlink_or_warn 2009-04-29 18:37:41 -07:00
environment.c Rename core.unreliableHardlinks to core.createObject 2009-04-29 16:50:07 -07:00
exec_cmd.c Merge branch 'js/maint-1.6.0-exec-path-env' into maint-1.6.1 2009-04-08 23:01:10 -07:00
exec_cmd.h
fast-import.c Merge branch 'ar/unlink-err' 2009-05-18 09:01:06 -07:00
fetch-pack.h
fixup-builtins
fsck.c
fsck.h Fix typos / spelling in comments 2009-04-22 19:02:12 -07:00
generate-cmdlist.sh
git-add--interactive.perl Merge branch 'mm/maint-add-p-quit' 2009-04-20 03:39:38 -07:00
git-am.sh Work around ash "alternate value" expansion bug 2009-04-18 21:37:46 -07:00
git-archimport.perl
git-bisect.sh Merge branch 'cc/bisect-filter' 2009-04-12 16:46:40 -07:00
git-compat-util.h Introduce an unlink(2) wrapper which gives warning if unlink failed 2009-04-29 18:37:41 -07:00
git-cvsexportcommit.perl
git-cvsimport.perl
git-cvsserver.perl
git-difftool--helper.sh mergetool--lib: simplify API usage by removing more global variables 2009-04-12 15:19:12 -07:00
git-difftool.perl Explain seemingly pointless use of system in difftool 2009-04-24 01:20:35 -07:00
git-filter-branch.sh Convert to use quiet option when available 2009-04-22 19:05:37 -07:00
git-instaweb.sh
git-lost-found.sh
git-merge-octopus.sh
git-merge-one-file.sh Clarify kind of conflict in merge-one-file helper 2009-05-09 00:27:39 -07:00
git-merge-resolve.sh Convert to use quiet option when available 2009-04-22 19:05:37 -07:00
git-mergetool--lib.sh mergetool--lib: simplify API usage by removing more global variables 2009-04-12 15:19:12 -07:00
git-mergetool.sh mergetool--lib: simplify API usage by removing more global variables 2009-04-12 15:19:12 -07:00
git-parse-remote.sh Convert to use quiet option when available 2009-04-22 19:05:37 -07:00
git-pull.sh Convert to use quiet option when available 2009-04-22 19:05:37 -07:00
git-quiltimport.sh
git-rebase--interactive.sh
git-rebase.sh
git-relink.perl
git-repack.sh Merge branch 'jc/maint-1.6.0-keep-pack' into maint-1.6.1 2009-05-03 15:01:31 -07:00
git-request-pull.sh
git-send-email.perl Add parsing of elm aliases to git-send-email 2009-04-22 19:10:41 -07:00
git-sh-setup.sh
git-stash.sh
git-submodule.sh Work around ash "alternate value" expansion bug 2009-04-18 21:37:46 -07:00
git-svn.perl Merge branch 'maint' 2009-05-05 22:52:17 -07:00
git-web--browse.sh
git.c Fix a bunch of pointer declarations (codestyle) 2009-05-01 15:17:31 -07:00
git.spec.in
graph.c Merge branch 'ac/graph-horizontal-line' 2009-05-18 08:59:30 -07:00
graph.h
grep.c Merge branch 'maint' 2009-04-28 00:46:39 -07:00
grep.h
hash-object.c
hash.c
hash.h
help.c
help.h
http-push.c http*: add helper methods for fetching packs 2009-06-06 11:03:11 -07:00
http-walker.c http*: add helper methods for fetching packs 2009-06-06 11:03:11 -07:00
http.c http*: add helper methods for fetching packs 2009-06-06 11:03:11 -07:00
http.h http*: add helper methods for fetching packs 2009-06-06 11:03:11 -07:00
ident.c
imap-send.c
index-pack.c Merge branch 'jc/shared-literally' 2009-04-06 00:42:52 -07:00
levenshtein.c Fix typos / spelling in comments 2009-04-22 19:02:12 -07:00
levenshtein.h
list-objects.c Merge branch 'lt/pack-object-memuse' 2009-04-18 14:46:17 -07:00
list-objects.h Merge branch 'lt/pack-object-memuse' 2009-04-18 14:46:17 -07:00
ll-merge.c replace direct calls to unlink(2) with unlink_or_warn 2009-04-29 18:37:41 -07:00
ll-merge.h
lockfile.c Merge branch 'ar/unlink-err' 2009-05-18 09:01:06 -07:00
log-tree.c
log-tree.h
mailmap.c Merge branch 'maint' 2009-04-01 22:46:31 -07:00
mailmap.h
match-trees.c
merge-file.c
merge-index.c
merge-recursive.c merge-recursive: do not die on a conflicting submodule 2009-04-29 16:50:21 -07:00
merge-recursive.h
merge-tree.c
mktag.c
mktree.c
name-hash.c
object.c Fix type-punning issues 2009-05-16 22:41:18 -07:00
object.h
pack-check.c Don't expect verify_pack() callers to set pack_size 2009-06-06 10:56:27 -07:00
pack-redundant.c
pack-refs.c replace direct calls to unlink(2) with unlink_or_warn 2009-04-29 18:37:41 -07:00
pack-refs.h
pack-revindex.c
pack-revindex.h
pack-write.c
pack.h
pager.c
parse-options.c
parse-options.h Fix typos / spelling in comments 2009-04-22 19:02:12 -07:00
patch-delta.c
patch-id.c
patch-ids.c patch-ids: use the new generic "sha1_pos" function to lookup sha1 2009-04-04 22:57:42 -07:00
patch-ids.h
path.c
pkt-line.c
pkt-line.h
preload-index.c
pretty.c
progress.c progress bar: round to the nearest instead of truncating down 2009-04-25 08:54:18 -07:00
progress.h
quote.c
quote.h
reachable.c process_{tree,blob}: Remove useless xstrdup calls 2009-04-08 22:58:43 -07:00
reachable.h
read-cache.c
reflog-walk.c Fix a bunch of pointer declarations (codestyle) 2009-05-01 15:17:31 -07:00
reflog-walk.h
refs.c replace direct calls to unlink(2) with unlink_or_warn 2009-04-29 18:37:41 -07:00
refs.h shorten_unambiguous_ref(): add strict mode 2009-04-13 09:36:44 -07:00
remote.c remote.c: do not trigger remote.<name>.<var> codepath for two-level names 2009-04-24 01:29:28 -07:00
remote.h remote: New function remote_is_configured() 2009-04-07 21:51:59 -07:00
rerere.c replace direct calls to unlink(2) with unlink_or_warn 2009-04-29 18:37:41 -07:00
rerere.h
revision.c Merge branch 'lt/pack-object-memuse' into maint 2009-05-03 15:02:40 -07:00
revision.h Merge branch 'lt/pack-object-memuse' into maint 2009-05-03 15:02:40 -07:00
run-command.c Fix a bunch of pointer declarations (codestyle) 2009-05-01 15:17:31 -07:00
run-command.h
send-pack.h allow OFS_DELTA objects during a push 2009-05-01 22:06:41 -07:00
server-info.c Merge branch 'ar/unlink-err' 2009-05-18 09:01:06 -07:00
setup.c
sha1-lookup.c sha1-lookup: fix up the assertion message 2009-04-06 00:56:27 -07:00
sha1-lookup.h sha1-lookup: add new "sha1_pos" function to efficiently lookup sha1 2009-04-04 22:57:39 -07:00
sha1_file.c Merge branch 'ar/unlink-err' 2009-05-18 09:01:06 -07:00
sha1_name.c
shallow.c
shell.c git-shell: Add 'git-upload-archive' to allowed commands. 2009-04-11 11:01:15 -07:00
shortlog.h
show-index.c
sideband.c
sideband.h
sigchain.c
sigchain.h
strbuf.c
strbuf.h Fix typos / spelling in comments 2009-04-22 19:02:12 -07:00
string-list.c
string-list.h
symlinks.c
tag.c
tag.h
tar.h
test-chmtime.c
test-ctype.c
test-date.c
test-delta.c
test-dump-cache-tree.c
test-genrandom.c test-genrandom: Add newline to usage string 2009-04-23 01:29:00 -07:00
test-match-trees.c
test-parse-options.c
test-path-utils.c
test-sha1.c
test-sha1.sh
test-sigchain.c
thread-utils.c
thread-utils.h
trace.c
transport.c transport.c::get_refs_via_curl(): use the new http API 2009-06-06 11:03:07 -07:00
transport.h fetch: Strip usernames from url's before storing them 2009-04-21 00:05:21 -07:00
tree-diff.c Fix typos / spelling in comments 2009-04-22 19:02:12 -07:00
tree-walk.c
tree-walk.h
tree.c Fix off-by-one in read_tree_recursive 2009-04-20 13:44:14 -07:00
tree.h
unimplemented.sh Makefile: allow building without perl 2009-04-08 22:14:56 -07:00
unpack-file.c
unpack-trees.c replace direct calls to unlink(2) with unlink_or_warn 2009-04-29 18:37:41 -07:00
unpack-trees.h
update-server-info.c
upload-pack.c Merge branch 'lt/pack-object-memuse' into maint 2009-05-03 15:02:40 -07:00
usage.c
userdiff.c
userdiff.h
utf8.c
utf8.h
var.c
walker.c
walker.h
wrapper.c Introduce an unlink(2) wrapper which gives warning if unlink failed 2009-04-29 18:37:41 -07:00
write_or_die.c
ws.c
wt-status.c Fix a bunch of pointer declarations (codestyle) 2009-05-01 15:17:31 -07:00
wt-status.h
xdiff-interface.c
xdiff-interface.h

README

////////////////////////////////////////////////////////////////

	GIT - the stupid content tracker

////////////////////////////////////////////////////////////////

"git" can mean anything, depending on your mood.

 - random three-letter combination that is pronounceable, and not
   actually used by any common UNIX command.  The fact that it is a
   mispronunciation of "get" may or may not be relevant.
 - stupid. contemptible and despicable. simple. Take your pick from the
   dictionary of slang.
 - "global information tracker": you're in a good mood, and it actually
   works for you. Angels sing, and a light suddenly fills the room.
 - "goddamn idiotic truckload of sh*t": when it breaks

Git is a fast, scalable, distributed revision control system with an
unusually rich command set that provides both high-level operations
and full access to internals.

Git is an Open Source project covered by the GNU General Public License.
It was originally written by Linus Torvalds with help of a group of
hackers around the net. It is currently maintained by Junio C Hamano.

Please read the file INSTALL for installation instructions.

See Documentation/gittutorial.txt to get started, then see
Documentation/everyday.txt for a useful minimum set of commands, and
Documentation/git-commandname.txt for documentation of each command.
If git has been correctly installed, then the tutorial can also be
read with "man gittutorial" or "git help tutorial", and the
documentation of each command with "man git-commandname" or "git help
commandname".

CVS users may also want to read Documentation/gitcvs-migration.txt
("man gitcvs-migration" or "git help cvs-migration" if git is
installed).

Many Git online resources are accessible from http://git.or.cz/
including full documentation and Git related tools.

The user discussion and development of Git take place on the Git
mailing list -- everyone is welcome to post bug reports, feature
requests, comments and patches to git@vger.kernel.org. To subscribe
to the list, send an email with just "subscribe git" in the body to
majordomo@vger.kernel.org. The mailing list archives are available at
http://marc.theaimsgroup.com/?l=git and other archival sites.

The messages titled "A note from the maintainer", "What's in
git.git (stable)" and "What's cooking in git.git (topics)" and
the discussion following them on the mailing list give a good
reference for project status, development direction and
remaining tasks.