Subject: limiting git branch --contains

From: Oswald Buddenhagen <[email-masked]>
Date: Thu, 23 Mar 2023 19:54:29 +0100

moin,

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, it would be helpful to be able to 
specify exclusions for the rev-walk, say

   git branch --contains deadbeef ^origin/master

suggestions how this is actually already achievable efficiently are of 
course welcome as well. ^^

thanks!