Thread (1 message) 1 message, 1 author, 2019-03-05

Re: Git log print commits between a revision range (inclusive)

From: Junio C Hamano <hidden>
Date: 2019-03-05 23:52:22

Rafael Ascensão [off-list ref] writes:
As Junio mentioned, "A..B" means all commits reachable from B except those
reachable from A. Understanding this is just a way to say "B --not A" is
important to know you can take advantage of:

`--boundary`
    Output excluded boundary commits. Boundary commits are prefixed with -.

In other words, git log --boundary <older hash>..<newer hash> should give you
exactly what you asked with the small caveat it marks excluded commits
differently.
You are correct, but only when dealing with a single strand of
pearls.  If the history leading to <newer> is bushy with merges, the
above will give _far_ more than what was requested.  The fork points
of the side branches that got merged during <old>..<new> will also
be shown, in addition to the <old>.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help