From: Avery Pennarun Date: Thu, 27 Aug 2009 22:22:55 GMT Subject: Re: finding unmerged branches Message-ID: <32541b130908271522u1048dcb1h67b79049e46df1ac@mail.gmail.com> In-Reply-To: <20090827220241.GA1413@gnu.kitenet.net> On Thu, Aug 27, 2009 at 10:02 PM, Joey Hess wrote: > What I really want is a way to find remote branches that > are not merged with any of my local branches (or any origin > branches). A slow and stupid implementation of that is in the > attached git-unmerged script, and it weeds the branch list > down to 68 branches, which are mostly really ones I might > want to look at. How about: gitk $(git for-each-ref --format='%(refname)' 'refs/remotes/'; git for-each-ref --format='^%(refname)' 'refs/heads/') You could also replace 'gitk' with 'git log', and mess with the --pretty=format:whatever parameter. Have fun, Avery