summaryrefslogtreecommitdiff
path: root/t/t4013/diff.diff_initial..side
diff options
context:
space:
mode:
authorHarald Nordgren <haraldnordgren@gmail.com>2026-08-05 14:24:31 +0000
committerJunio C Hamano <gitster@pobox.com>2026-08-05 10:08:27 -0700
commit876029beca8495a44e3b6c335b7fac5208e8da86 (patch)
treeacf4efe3e5646f56dffdb2a01b4a1159f3f711d0 /t/t4013/diff.diff_initial..side
parent13c7afec212fc97ce257d15601659314c6673d6c (diff)
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>
Diffstat (limited to 't/t4013/diff.diff_initial..side')
0 files changed, 0 insertions, 0 deletions