From: David Barr Date: Sun, 28 Nov 2010 19:45:01 +0000 (-0600) Subject: fast-import: let importers retrieve blobs X-Git-Tag: v1.7.4-rc0~30^2~3 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/85c62395b152f99e8867aaf84cea93dddc03243c?ds=inline;hp=85c62395b152f99e8867aaf84cea93dddc03243c 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 Signed-off-by: David Barr Acked-by: Ramkumar Ramachandra Signed-off-by: Jonathan Nieder Signed-off-by: Junio C Hamano ---