Re: [PATCH 2/6] show: obey --textconv for blobs
- From
Jeff King <peff@peff.net>
- Date
- Apr 20, 2013, 04:06 UTC
- Message-ID
- <20130420040643.GB24970@sigill.intra.peff.net>
- In-Reply-To
- <5a8c85faddf7f93ca16d284bde415a32dd76779a.1366389739.git.git@drmicha.warpmail.net>
On Fri, Apr 19, 2013 at 06:44:45PM +0200, Michael J Gruber wrote:
Show 7 quoted lines
> Currently, "diff" and "cat-file" for blobs obey "--textconv" options > (with the former defaulting to "--textconv" and the latter to > "--no-textconv") whereas "show" does not obey this option, even though > it takes diff options. > > Make "show" on blobs behave like "diff", i.e. obey "--textconv" by > default and "--no-textconv" when given.
Wait, this does the opposite of the last patch. If we do want to do this, shouldn't the last one have been an "expect_failure"?
I'm not convinced this is the right thing to do, though. It would break:
git show HEAD:file.c >file.c
Admittedly, such people should be using "checkout" or "cat-file", so I do not mind too much breaking them if there is a good reason. But I am not sure what that reason is.
-Peff