I want to find all the files changed in a branch from the time of creation of branch. Challenge is branch might or might not be merged in master or merged at certain time but not recently.
What I trying to find is not how much that branch is ahead of master.
Also NOT what files are different from Master.
What I need is all the files changes in branch from the time branch is created(whether or not merged in master). If I can find all the commits in branch that will also suffice.
I tried git commits on a specific branch but all answers are picking starting commit after merge with master.
Also tried :
git diff --name-status master...origin/feature/fname
but again files those are files different from master not all the files changes in the current branch since branch is created(e.g. branch is merged from master in between or took latest from master so only new files after merge/pull are available not all changed files in that branch).
Requirement is all the files changed by user in all the commits in feature branch whether they are different from master or not.
EDIT: I have clearly tried accepted solution from Is there a way to see all changed files on a branch in Git? with three dots,already mentioned.
It is not duplicate since I don't want files changed from master. This solution break when someone merge changes to master then this solution shows this feature changed no files but that is not true. Also if I merge intermediate or more than one time in master results for files changed in feature branch are inconsistent & false.