Re: [PATCH] ls-tree matching a prefix
- From
Junio C Hamano <junkio@cox.net>
- Date
- May 26, 2005, 04:44 UTC
- Message-ID
- <7vsm0aeguo.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <20050526034756.GA1488@port.evillabs.net>
>>>>> "JM" == Jason McMullan <jason.mcmullan@timesys.com> writes:
JM> For this purpose, I've enhanced git-ls-tree to allow the JM> specification of an optional 'match path' that restricts JM> that output of git-ls-tree to just the path requested.
JM> If the patch has a '/' in it, it implies -r.
I'd rather see the behaviour match existing commands with path restriction, like diff-tree, diff-cache, and diff-files. That is, to take a list of paths and limit your output to those that match one of them. I do not think this enhancement would negatively affect your stated use of getting one entry with the exact match.