Re: [PATCH v12 1/6] branch: add --forked filter for --list mode
- From
Harald Nordgren <haraldnordgren@gmail.com>
- Date
- Jun 5, 2026, 17:50 UTC
- Message-ID
- <CAHwyqnXqPxaSnzqn0=t8ErWW-Nh_cVHAG6KYRROz-M55t16YSw@mail.gmail.com>
- In-Reply-To
- <9f5c36a9-a3b8-403d-9c59-40367eb895bd@gmail.com>
Hi Phillip!
Great points all around, I will take a look at implementing them. I'll respond here instead of for each specific message, and then include comments as part of the next version.
Show 8 quoted lines
> > Add a --forked option to "git branch" list mode that keeps only > > branches whose configured upstream matches <branch>. The argument > > can be a ref (e.g. "origin/main", "master") or a shell-style > > glob (e.g. "origin/*"). The option can be repeated to widen the > > filter. > > Do we want to support a remote name as an alias for $remote/HEAD to > match "git checkout -b $remote"?
I have been going back and forth on this, and while I like the bare remote, it made the implementation a lot easier after it was removed, as the arguments from some of the others made sense to me.
Harald