I am trying to obtain a list of files that were merged during a merge request. The point is, we need to know for sure, which branch these files belong to. Dev branch or feature/DHO-XXX_YYYYYYY branch. We only care for files that belongs to feature/DHO-XXX_YYYYYYY.
What I tried was the following command: (However is not optimal, because we do not know which file belong to which branch)
git log --diff-filter=AM --pretty=format:"%s" -m --name-only --grep="feature/DHO" --since=1.week
Merge branch 'feature/DHO-BBB_samtest' into feature/sam_dev_test
test DHO-BBB.txt
Merge branch 'feature/DHO-BBB_samtest' into feature/sam_dev_test
FileForTestingMergeWithDev.txt
Merge branch 'feature/DHO-AAA_samTest' into feature/sam_dev_test
test DHO-AAA.txt
Merge branch 'feature/DHO-AAA_samTest' into feature/sam_dev_test
FileForTestingMergeWithDev.txt
Would someone know how could I do it?