Given branch-a
and git rebase origin/master branch-a
, sometimes you get conflicts in a file.
CONFLICT (content): Merge conflict in .../file.txt
Given that before the rebase there were no conflicts (by definition), then conflicts can only have occurred b/c one or more commits to .../file.txt
.
During the conflict resolution process, I can't figure out a way to easily show "commits from origin/master that affected .../file.txt" so that I can more confidently integrate those changes.
---A---B---[C]---D
\ \
E---[F]---G E'--[C/F']--G'
ABCD
is mainline development. EFG
is my local branch development. Commit C
caused a conflict in file/commit F
during my local rebase onto D
.
Given a detached HEAD or "rebasing" state, when I do git log -3 file.txt
it doesn't seem to show me what I want to see, which is WHAT was the diff (ie: commit C
) which caused the conflict I'm trying to resolve now when applying commit F
.
How can I get a list of commits which only affect a particular file and are from the range ABCD
... not including my commits in EFG
or the currently active --rebase
?