I have 2 branches: main and other-branch
A -- B --> main
\
-- C -- D ... --> other-branch
- commit B -> changed a file called main.txt
- commits C, D ... -> change a file called other.txt multiple times
When I run git diff --name-only other-branch main
it returns me both main.txt and other.txt, but I would like it to return only the diff to the common ancestor (C diff A), meaning it would exclude main.txt
Is there a way of doing that in a simple command?