The question is similar to this one with a small change.
Suppose I have checked out commit B:
G
\
E - F - B (*) - A (first commit)
/ /
D - C /
H - - - - -
So, HEAD
is B. I would like to only list those commits to the left of B (including B), or temporally later than B (or including B) that changed a particular file, file1.txt
.
There are two subcases -- (1) the commits listed could be only descendants of B so that a later commit whose parent is A that is temporally later than B is not listed (H would not be listed in the example above), (2) the commits listed could be descendants of A on a separate branch yet with a commit date later than B. (H would be listed)
In both subcases, I only want to list commits that affected/changed file1.txt
.
The linked to question lists all commits that changed the file including A, which I don't want to be listed.