From: Harald Nordgren Date: Fri, 05 Jun 2026 17:50:38 GMT Subject: Re: [PATCH v12 1/6] branch: add --forked filter for --list mode Message-ID: 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. > > Add a --forked option to "git branch" list mode that keeps only > > branches whose configured upstream matches . 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