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?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.