git: 9front

Download patch

ref: d6281e73eb8334ff1bce556b76a3219e5d3e5198
parent: 995fc877c2ade5889199665c788c42f868ca2589
author: Ori Bernstein <ori@eigenstate.org>
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++;
 		}
--