Thread (15 messages) 15 messages, 5 authors, 2026-06-08

Re: limiting git branch --contains

From: Junio C Hamano <hidden>
Date: 2023-03-23 19:42:56

Possibly related (same subject, not in this thread)

Oswald Buddenhagen [off-list ref] writes:
git branch --contains can be a rather expensive operation in big
repositories. as my use case is actually a rather limited search for
commits in my local wip branches,...
I can do

    $ git branch --list --contains master \??/\*

to show only the topic branches that forked from/after 'master', and
replacing 'master' with v2.40.0 or any older point and the output
starts showing more branches, but the search excludes integration
branches like 'next' and 'seen'.  Is that what you are after?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help