Re: [GIT PATCH] Selective diff-tree
- From
Linus Torvalds <torvalds@osdl.org>
- Date
- Apr 24, 2005, 05:09 UTC
- Message-ID
- <Pine.LNX.4.58.0504232202340.19877@ppc970.osdl.org>
- In-Reply-To
- <1113400651.20848.135.camel@hades.cambridge.redhat.com>
On Wed, 13 Apr 2005, David Woodhouse wrote:
Show 5 quoted lines
> > The patch below makes diff-tree take extra arguments, specifying the > files or directories which should be considered 'interesting'. Changes > in uninteresting directories are not reported; we don't even bother to > recurse down into those trees.
David, I took your patch, updated it for some changes in diff-tree, and then totally rewrote (and simplified) your testing for "interesting". There was no reason to consider "/" special, as it falls out of the other cases quite naturally.
It passes all the tests I threw at it, but they weren't exhaustive (but I do think I tested the border cases). Mind double-checking that it works for your cases too?
Linus