Use git log R --not P
Same as git log P..R
from @ micha-wiedenmann comment, but I find that the previous syntax says more. And yes, it will include 2, 4, 6, 7, 9
, since it does not matter when they were chronologically (in terms of time), but where they are in the DAG. With R --not P
you basically create a complement P in R in terms of set theory.
source share