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

Shorthand for "$(git merge-base A B)"

From
John Passaro <john.a.passaro@gmail.com>
Date
Mar 15, 2019, 18:58 UTC
Message-ID
<CAJdN7KiS+6y0a3sj0yuGuJ+URJe0SBJJTRg2ZpA2upN2rwZXCA@mail.gmail.com>

I find myself fairly frequently doing something like "git log $(git merge-base A B)..C". As far as I can tell, there is no shorthand for the $() part of this, but it seems like something that could be pretty naturally added, or documented better if there is some esoteric combination of the existing shorthands that would support it.

Is there any way to support a shorthand for $(git merge-base A B)? I hoped a joiner in the spirit of A..B could be used:

A::B A*B A%B If not, maybe A@{mb:B} or something along those lines?

I can imagine this would be a non-trivial amount of work, just wondering if there is interest, or if anybody has thoughts on the notation?

Thanks, John

Next: Jonathan Nieder
Message 1 of 3 in “Shorthand for "$(git merge-base A B)"”
  1. John PassaroMar 15, 2019
  2. Jonathan NiederMar 15, 2019
  3. Junio C HamanoMar 18, 2019

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.