lkml.org 
[lkml]   [2016]   [May]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [tip:perf/urgent] perf hists: Fix determination of a callchain node's childlessness
Hi,

On 2016-05-02 16:24:08 -0700, Greg KH wrote:
> On Mon, May 02, 2016 at 03:25:25PM -0700, Andres Freund wrote:
> > On 2016-05-02 15:17:54 -0700, Greg KH wrote:
> > Sorry for that, I'd used git describe on the commit to determine which
> > branch it was contained in (outputting v4.3-1188-g4b3a321). That
> > obviously doesn't make sense though, as that just returns the state of
> > the tree at which 4b3a3212233a was introduced, not the commit it was
> > merged into mainline.
>
> I have an alias in my .gitconfig:
> [alias]
> dc = describe --contains
>
> which is what you need here:
> $ git dc 4b3a3212233a
> v4.5-rc1~171^2~43^2~3
>
> hope this helps,

Ah, perfect. Thanks. I made do with git tag --contains, but that's
awfully slow; describe --contains is a lot faster.


Andres

\
 
 \ /
  Last update: 2016-05-03 02:01    [W:0.060 / U:0.356 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site