All of lore.kernel.org
 help / color / mirror / Atom feed
* Shorthand for "$(git merge-base A B)"
@ 2019-03-15 18:58 John Passaro
  2019-03-15 21:23 ` Jonathan Nieder
  0 siblings, 1 reply; 3+ messages in thread
From: John Passaro @ 2019-03-15 18:58 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-03-18  5:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-15 18:58 Shorthand for "$(git merge-base A B)" John Passaro
2019-03-15 21:23 ` Jonathan Nieder
2019-03-18  5:27   ` Junio C Hamano

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.