login
Header Space

 
 

Re: [PATCH] git-bundle - bundle objects and references for disconnected transfer.

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Johannes Schindelin <Johannes.Schindelin@...>
Cc: <git@...>
Date: Wednesday, February 14, 2007 - 10:32 pm

Johannes Schindelin wrote:

And that loop would always abort on things meant for git-rev-list. I 
want to avoid making git-bundle have to understand everything that is 
legal to git-rev-list. The current construct does this: it lets 
git-rev-parse remove what that function knows, aborting if something is 
amiss (or aborting later in git-rev-list), leaving git-bundle's parser 
to chew on the rest. I really don't see a way out of the dilemma: either 
allow --output foo but don't barf on bad arguments, or only accept 
--output=foo and be able to trap errors, or teach git-bundle everything 
that is valid for the other two.  (Let me write this in python, the 
dilemma is gone).


git-unbundle uses no temporary files: it pipes directly from tar (was 
zip, but I've changed to tar per Junio's request).

The problem is creating the tar: I know of no way to create a tar file 
with two separately addressable items, both created by piping in to 
stdin. If there are not two streams, I don't know how to split the data 
in sh without mangling the pack file due to sh variable substitution 
rules. So, I think the temporary file solution is a reasonable compromise.

See my other note.


Thanks.


Mark

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: Scripts to use "bundles" for moving data between reposit..., Johannes Schindelin, (Wed Feb 14, 11:46 am)
Re: [PATCH] git-bundle - bundle objects and references for d..., Johannes Schindelin, (Wed Feb 14, 5:58 pm)
Re: [PATCH] git-bundle - bundle objects and references for d..., Johannes Schindelin, (Wed Feb 14, 8:07 pm)
Re: [PATCH] git-bundle - bundle objects and references for d..., Mark Levedahl, (Wed Feb 14, 10:32 pm)
Re: [PATCH] git-bundle - bundle objects and references for d..., Johannes Schindelin, (Thu Feb 15, 11:32 am)
Re: [PATCH] git-bundle - bundle objects and references for d..., Johannes Schindelin, (Thu Feb 15, 8:40 pm)
Re: [PATCH] git-bundle - bundle objects and references for d..., Johannes Schindelin, (Wed Feb 14, 8:15 pm)
Re: [PATCH] git-bundle - bundle objects and references for d..., Johannes Schindelin, (Thu Feb 15, 11:35 am)
[PATCH] Create a man page for git-bundle., Mark Levedahl, (Wed Feb 14, 10:10 am)
[PATCH] Create a man page for git-unbundle., Mark Levedahl, (Wed Feb 14, 10:10 am)
speck-geostationary