ref: fd8a2d81c3ddf6584d2b47f1b8efe30b66beb7b5
parent: 27a696b145c85e7d892e97a5819565d298c8cd2b
author: Ori Bernstein <[email protected]>
date: Mon Sep 25 21:09:32 EDT 2023
git/walk: only show untracked paths matching requested prefix
--- a/sys/src/cmd/git/walk.c
+++ b/sys/src/cmd/git/walk.c
@@ -513,7 +513,7 @@
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++;
}