Which terminal command can i use to check which files were changed after a fast forward merge WHITHOUT the squash option ?
I need it for a CI so i can't execute one command and check by myself for a specific commit SHA and use it after to check the changes.
Lets take an example:
I create develop
branch from master
, i make my changes (5 commits) and i merge develop
into master
without squash option. At this point i want to execute a command that return me all changed files (comparing before and after the merge)
I can't use a specific commit hash in my command since it's for my CI and I don't know in advance what the hash will be
I've tried :
git diff --name-only HEAD~
but it compare the HEAD with the precedent commit and in case of fast forward without squash it will not necessarily be the commit before the merge.git diff --name-only HEAD@{1}
as @eftshift0 suggest but it is not working in CI