Files
git/builtin
Harald Nordgren 876029beca branch: add --forked filter for --list mode
Add a --forked option to "git branch" list mode that lists only
branches whose configured upstream matches <branch>. The argument
can be a ref (e.g. "origin/main", "master"), a remote name like
"origin" for the branch its origin/HEAD points at, or a shell glob
(e.g. "origin/*"), and may be repeated to widen the filter.

It is an ordinary list filter, so it combines with the others:

    git branch --merged origin/main --forked 'origin/*'

lists branches forked from origin that are already merged into
origin/main, and --no-merged inverts the question.

This is the building block for --delete-merged, which deletes the
listed branches once they have landed on their upstream.

Signed-off-by: Harald Nordgren <haraldnordgren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2026-08-05 10:08:27 -07:00
..
2026-04-10 07:58:53 -07:00
2026-07-15 13:24:18 -07:00
2025-09-29 11:40:35 -07:00
2025-08-22 13:13:20 -07:00
2026-07-15 13:24:19 -07:00
2026-07-07 10:49:41 -07:00
2026-07-13 08:27:27 -07:00
2026-07-19 10:42:19 -07:00
2026-03-31 20:43:14 -07:00
2026-07-06 15:50:21 -07:00
2026-07-07 10:49:40 -07:00
2026-07-07 10:49:40 -07:00
2026-07-07 17:48:57 -07:00
2026-03-31 20:43:14 -07:00
2026-05-06 09:48:28 +09:00
2025-08-21 13:46:59 -07:00