Thread (15 messages) flat view 15 messages, 4 authors, 2020-06-10

Re: [RFC PATCH v2 3/4] grep: honor sparse checkout patterns

From: Matheus Tavares Bernardino <hidden>
Date: 2020-05-21 17:36:04

Possibly related (same subject, not in this thread)

On Thu, May 21, 2020 at 4:26 AM Elijah Newren [off-list ref] wrote:
On Tue, May 12, 2020 at 5:17 PM Junio C Hamano [off-list ref] wrote:
quoted
Matheus Tavares Bernardino [off-list ref] writes:
quoted
The idea behind not skipping gitlinks here was to be compliant with
what we have in the working tree. In 4fd683b ("sparse-checkout:
document interactions with submodules"), we decided that, if the
sparse-checkout patterns exclude a submodule, the submodule would
still appear in the working tree. The purpose was to keep these
features (submodules and sparse-checkout) independent. Along the same
lines, I think we should always recurse into initialized submodules in
Sorry if I missed it in the code, but do you check whether the
submodule is initialized before descending into it, or do you descend
into it based on it just being a submodule?
We only descend if the submodule is initialized. The new code in this
patch doesn't do this check, but it is already implemented in
grep_submodule() (which is called by grep_tree() and grep_cache() when
a submodule is found).
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help