Re: [PATCH] archive: Refuse to write the archive to a terminal.
- From
Johannes Sixt <j.sixt@viscovery.net>
- Date
- Sep 17, 2009, 05:53 UTC
- Message-ID
- <4AB1CEDF.7020105@viscovery.net>
- In-Reply-To
- <20090917014854.GD3274@feather>
Josh Triplett schrieb:
Show 8 quoted lines
> On Wed, Sep 16, 2009 at 01:11:26PM +0200, Johannes Sixt wrote: >> How about '--output -' instead? > > Yeah, that seems significantly better than --force. Though I don't > particularly care for the '-' convention to mean 'stdout'; in principle > that ought to create a file named '-' in the current directory. > /dev/stdout makes more sense, and doesn't require any work on git's > part beyond this patch.
Except that /dev/stdout is not portable. You can always say --output ./- if you want an oddly named file in the current directory.
-- Hannes