I need to get a list of remotely changed files as a single line that I then process line by line to generate a list of outdated files.
But I am astounded that out of all the possible pretty format %tokens, there is not one to get the filename: https://git-scm.com/docs/pretty-formats
git log --pretty=format:'%f' -- 'myfilename-to-check';
pretty=format:'%f' will give me the commit message, but how can I get the filename inside the pretty format.
Yes I know I can do --name-only or --name-status but that does not allow me to format the output exactly as I need it.
Is there no formatting %token / %key that shows the filename ?
Update
My apologies, I forgot to state that that there are multiple filenames to check:
git log --pretty=format:'%f' -- 'myfilename-to-check-1' 'myfilename-to-check-2' 'myfilename-to-check-3' 'myfilename-to-check-...etc...';