Re: [PATCH] Do not show empty diff in diff-cache uncached.
- From
Linus Torvalds <torvalds@osdl.org>
- Date
- May 30, 2005, 05:34 UTC
- Message-ID
- <Pine.LNX.4.58.0505292231580.10545@ppc970.osdl.org>
- In-Reply-To
- <7v3bs5k8d1.fsf@assigned-by-dhcp.cox.net>
On Sun, 29 May 2005, Junio C Hamano wrote:
> > Please disregard the patches you have already discarded so far; > this request-to-discard includes -O and -B enhancements.
I actually like -B, it's just that that patch depended on -O and also came with a separate patch that was the reason I liked -B in the first place..
IO, if we have
/* start out with files "a" and "b" */ mv b c mv a b git-update-cache --add --remove a b c git-diff-cache -B HEAD
then I htink you're 100% right that it should show up as two renames in a diffs, and "-B" would catch it. I think that's a great thing.
Linus