diff options
author | David Barr <david.barr@cordelta.com> | 2010-11-28 13:45:01 -0600 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-12-01 13:27:37 -0800 |
commit | 85c62395b152f99e8867aaf84cea93dddc03243c (patch) | |
tree | e0c85a28a2ad00bb8d05536286bfc189dac3d962 /git_remote_helpers/git/importer.py | |
parent | fast-import: clarify documentation of "feature" command (diff) | |
download | tgif-85c62395b152f99e8867aaf84cea93dddc03243c.tar.xz |
fast-import: let importers retrieve blobs
New objects written by fast-import are not available immediately.
Until a checkpoint has been started and finishes writing the pack
index, any new blobs will not be accessible using standard git tools.
So introduce a new way to access them: a "cat-blob" command in the
command stream requests for fast-import to print a blob to stdout or a
file descriptor specified by the argument to --cat-blob-fd. The value
for cat-blob-fd cannot be specified in the stream because that would
be a layering violation: the decision of where to direct a stream has
to be made when fast-import is started anyway, so we might as well
make the stream format is independent of that detail.
Output uses the same format as "git cat-file --batch".
Thanks to Sverre Rabbelier and Sam Vilain for guidance in designing
the protocol.
Based-on-patch-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: David Barr <david.barr@cordelta.com>
Acked-by: Ramkumar Ramachandra <artagnon@gmail.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git_remote_helpers/git/importer.py')
0 files changed, 0 insertions, 0 deletions