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?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jul 29, 2009 at 4:15 AM, demerphq<demerphq@xxxxxxxxx> 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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]