On Thu, Apr 23, 2009 at 09:47:05PM +0200, Jesper Dangaard Brouer wrote: >>> Is there any easy git way to figure out which release this commit got >>> into? >> >> I guess git-describe, but I prefer clicking at the "raw" (X-Git-Tag): >> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff_plain;h=f4c1f3e0c59be0e6566d9c00b1d8b204ffb861a2 > > I think I prefer the command line edition "git-describe". But it seems > that the two approaches gives a different results. > (Cc'ing the git mailing list as they might know the reason) You want "git describe --contains". The default mode for describe is "you are at tag $X, plus $N commits, and by the way, the sha1 is $H" (shown as "$X-$N-g$H"). The default mode is useful for generating a unique semi-human-readable version number (e.g., to be included in your builds). -Peff -- 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