Brandon Williams <bmwill@xxxxxxxxxx> writes: > Signed-off-by: Brandon Williams <bmwill@xxxxxxxxxx> > --- > 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.