Re: an option to make "git-diff Z A" prints Z's diff before A's

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Thu, 26 Oct 2006, Karl Hasselström wrote:
> 
> A related question: is there a way to limit the path to Z, but
> excluding Z/B? That is, I'm interested in the changes in Z, but not
> the changes in its subdirectory B.

We never did that, no. It's certainly a relevant thing to do, and it would 
be sensible to have a kind of common logic with revision parsing (where a 
caret (^) at the beginning would mean "not"), but at the same time, it's 
not been common enough (read: "I have personally never missed it") to 
actually become an issue.

So I _think_ it would fit fairly well into the current code (just teach 
the stuff that uses "char **pathspec" about that new rule), and it might 
not be too bad. On the other hand, that particular code is pretty dense 
and part of a very core and performance critical subsystem, so unless you 
_really_ want this, you might be better off averting your eyes and just 
ignoring this issue ;)

			Linus

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]