Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH/RFC 2/2] grep: make --full-tree work with pathspecs

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:50:41

Michael J Gruber [off-list ref] writes:
When --full-tree is given, make the pathspecs be applied relative to the
root. That way, "git grep --full-tree expr -- *.c" looks in all C files in
the repo.
This is basically Ok, but I wonder if this has funny interaction with
rev/path disambiguation.  What happens to these two "git grep", and what
should happen?

	cd Documentation
        git grep --full-tree index technical
        git grep --full-tree index Documentation/technical

Once you said --full-tree, "technical" does not refer to Documentation/technical
so the first one should probably say "technical is not a rev and there is
no such path" while the second one should know Documentation/technical/ is
a pathspec, perhaps?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help