From: Avery Pennarun Date: Wed, 29 Jul 2009 08:40:19 GMT Subject: Re: Adding files to a git-archive when it is generated, and whats the best way to find out what branch a commit is on? Message-ID: <32541b130907290140y25c6a0b2r5ed0123e0ce1ae1@mail.gmail.com> In-Reply-To: <9b18b3110907290115v1f30eeat748631bb09f92517@mail.gmail.com> On Wed, Jul 29, 2009 at 4:15 AM, demerphq wrote: > Another question is whether anyone has any advice on the best way to > find out the "best" branch an arbitrary commit is on. Where best can > be flexibly definied to handle commits that are reachable from > multiple branches.  I have hacked a solution involving git-log and > grep, but it performs quite poorly. I was wondering if there is a > better solution. 'git describe' does this. Avery