git/walk: only show untracked paths matching requested prefix

This commit is contained in:
Ori Bernstein 2023-09-26 01:09:32 +00:00
parent 27a696b145
commit fd8a2d81c3

View file

@ -513,7 +513,7 @@ main(int argc, char **argv)
show(o, Tflg, tstr, wdir[j].path);
else
show(o, Mflg, mstr, wdir[j].path);
}else if(printflg & Uflg)
}else if(printflg & Uflg && pfxmatch(idx[i].path, argrel, argn, argc))
show(o, Uflg, ustr, wdir[j].path);
j++;
}