Git development
 help / color / mirror / Atom feed
* Question: How to find the commits in the ancestry path of seen down to _and_ including a given topic?
@ 2022-07-21  7:23 Elijah Newren
  2022-07-21 15:37 ` Junio C Hamano
  0 siblings, 1 reply; 6+ messages in thread
From: Elijah Newren @ 2022-07-21  7:23 UTC (permalink / raw)
  To: Git Mailing List

A simple question that I'm spinning out of [1]: How can I get `git
log` to show the commits in the ancestry path from seen, back to *and
including* a given topic (but not commits from unrelated topics)?

   git log --ancestry-path $TOPIC..seen

doesn't work, because that excludes $TOPIC.  (It does get me the merge
of $TOPIC into seen, as well as all merges into seen following that
merge, which I want, but it's missing the topic itself.)

  git log --ancestry-path $BASE_OF_TOPIC..seen

usually doesn't work, because $BASE_OF_TOPIC is usually a commit from
"main" or "master", and this results in pulling in hundreds of commits
from unrelated topics that also happen to be based on a version of
"main" or "master" at or after $BASE_OF_TOPIC.

Is there some magic that does what I want, or is this just not
possible currently?

Thanks,
Elijah


[1] https://lore.kernel.org/git/CABPp-BHARfYcsEM7Daeb7+vYxeB9Awo8=qbrOMXG6BQ0gX1RiA@mail.gmail.com/

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

end of thread, other threads:[~2022-07-22 23:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-21  7:23 Question: How to find the commits in the ancestry path of seen down to _and_ including a given topic? Elijah Newren
2022-07-21 15:37 ` Junio C Hamano
2022-07-21 18:48   ` Derrick Stolee
2022-07-21 19:34   ` Elijah Newren
2022-07-22 11:06     ` Derrick Stolee
2022-07-22 23:25       ` Elijah Newren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox