From: Junio C Hamano Date: Thu, 23 Mar 2023 19:42:52 GMT Subject: Re: limiting git branch --contains Message-ID: In-Reply-To: Oswald Buddenhagen 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?