Re: obnoxious CLI complaints
- From
Jakub Narebski <jnareb@gmail.com>
- Date
- Sep 10, 2009, 20:23 UTC
- Message-ID
- <200909102223.31602.jnareb@gmail.com>
- In-Reply-To
- <43d8ce650909101246l50189c97r4f3fc4a8d7a0bd4@mail.gmail.com>
Dnia czwartek 10. września 2009 21:46, John Tapsell napisał:
> 2009/9/10 Jakub Narebski <jnareb@gmail.com>:
Show 8 quoted lines
> > First, it would be consistent with how ordinary archivers such as tar > > or zip are used, where you have to specify list of files to archive > > (in our case this list is HEAD). Second, I'd rather not accidentally > > dump binary to terminal: "git archive [HEAD]" dumps archive to standard > > output. > > That could be fixed by outputting to a file. git format-patch outputs > to a file, so why wouldn't git achieve?
"git format-patch" outputs to files because it generates _multiple_ files; generating single patch is special case. Also git-format-patch can generate file names from patch (commit) subject; it is not the case for "git archive" (what name should it use?).
-- Jakub Narebski Poland