Re: [PATCH 5/8] pathspec: convert strip_submodule_slash to take an index
- From
Junio C Hamano <gitster@pobox.com>
- Date
- May 10, 2017, 05:55 UTC
- Message-ID
- <xmqq60h9xnkp.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <20170509191805.176266-6-bmwill@google.com>
Brandon Williams <bmwill@google.com> writes:
> Signed-off-by: Brandon Williams <bmwill@google.com> > --- > pathspec.c | 9 +++++---- > 1 file changed, 5 insertions(+), 4 deletions(-)
This conversion is not wrong per-se, but I wonder if there is a practical situation where we want to validate a pathspec element against an in-core index that does not represent the index currently in effect (aka "the_index"). I do not think of any offhand myself.