Re: Advanced revision selection?
- From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
- Date
- May 27, 2016, 15:59 UTC
- Message-ID
- <vpq8tyvmqzz.fsf@anie.imag.fr>
- In-Reply-To
- <874m9j7bnv.fsf@thinkpad.rath.org>
Nikolaus Rath <Nikolaus@rath.org> 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/