From: Matthieu Moy Date: Fri, 27 May 2016 15:59:12 GMT Subject: Re: Advanced revision selection? Message-ID: In-Reply-To: <874m9j7bnv.fsf@thinkpad.rath.org> Nikolaus Rath writes: > In Mercurial, this can be done with a more verbose syntax (e.g. > "last(ancestors(tag("re:release-.*")),3) and descendants(aebeccf)" for > the above example). This has no direct equivalent in Git. A lot can be done passing options to "git rev-list" or so, for example, but I don't think a combination can be found for your exact example. The closest I get is: git log `git for-each-ref refs/tags/release- --format '%(refname)'` -3 Which lists 3 commits preceeding a tag whose name starts with release-. -- Matthieu Moy http://www-verimag.imag.fr/~moy/