Thread (14 messages) flat view 14 messages, 3 authors, 2016-06-15

Re: Teach git-bundle to read revision arguments from stdin like git-rev-list

From: Adam Brewster <hidden>
Date: 2016-06-15 22:44:53

On Sat, Jul 5, 2008 at 8:57 PM, Junio C Hamano [off-list ref] 
quoted
+                     if (read_from_stdin++)
+                             die("--stdin given twice?");
Hmm, do we deeply care about this case?  What bad things coulc happen 
if
you call read_revisions_from_stdin() twice?
Presently, it'll actually try to read stdin twice and that won't work.

Also, if you want git-bundle to deal with --stdin --stdin, I'd say that 
git-rev-list should do the same.  I don't really care how this 
particular error case is handled, but I think git-rev-list and 
git-bundle should do the same thing for any given input.

If you prefer to be liberal in what you accept, then you might like 
these two patches that allow git-rev-list and git-bundle to deal with 
--stdin --stdin.

By the way, I'm not exactly sure on the format of these guys.  You said 
you queued some changes yesterday, so these go on top of those.  If 
you want me to start from scratch and give you the whole chain again, I 
can do that too.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help