Re: [PATCH 08/17] refs: generalize `refs_for_each_namespaced_ref()`
On Mon, Feb 23, 2026 at 01:02:56AM -0800, Karthik Nayak wrote:
Show 16 quoted lines
> Patrick Steinhardt <ps@pks.im> writes:
> > diff --git a/refs.h b/refs.h
> > index a66dbf3865..2bde60aa0e 100644
> > --- a/refs.h
> > +++ b/refs.h
> > @@ -468,6 +468,12 @@ struct refs_for_each_ref_options {
> > */
> > const char *pattern;
> >
> > + /*
> > + * If set, only yield refs part of the configured namespace. Exclude
> > + * patterns will be rewritten to apply to the namespace.
> > + */
> > + const char *namespace;
>
> Nit: should we also mention how prefix is appended to namespace?Yeah, makes sense, will do.
Patrick