git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Advanced revision selection?

From
Nikolaus Rath <nikolaus@rath.org>
Date
May 27, 2016, 15:39 UTC
Message-ID
<874m9j7bnv.fsf@thinkpad.rath.org>
Hello,

Is there a way to specify revision ranges that has more power than what's described in gitrevisions(7)?

For example, is there a way to show "the three most recent commits preceding a tag that starts with "release-" that are also descendants of commit aebecf."?

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). Is there no equivalent in Git, or am I looking for it in the wrong place?

Best, -Nikolaus

-- 
GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F
Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F

             »Time flies like an arrow, fruit flies like a Banana.«
Next: Matthieu Moy
Message 1 of 2 in “Advanced revision selection?”
  1. Nikolaus RathMay 27, 2016
  2. Matthieu MoyMay 27, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.