From: Junio C Hamano Date: Thu, 27 Aug 2009 23:25:12 GMT Subject: Re: finding unmerged branches Message-ID: <7vd46gn8kn.fsf@alter.siamese.dyndns.org> In-Reply-To: <20090827223504.GA18307@atjola.homenet> Björn Steinbrink writes: > Hm, not sure if I'd call it "better", but probably at least a bit > faster. You could create a "fake" merge to combine all the branches. > > git branch -r --no-merged $( > : | git commit-tree HEAD^{tree} $( > git for-each-ref --format='-p %(refname)' \ > refs/heads/ \ > refs/remotes/origin > ) > ) Heh, that is certainly a cute hack ;-)