If you format the hash from git log by adding the path number with the "-" symbol, then all patches can be generated immediately in different files. Example:
git format-patch $(git log --reverse 073dd505f..fff28ff65 --pretty="%H" -- the/needed/path | awk '{print -NR, " ", $0}')
This will cover the whole filter that you can apply in the git log. They are not always consistent with each other. For example, taking the corrections corresponding to this user:
git format-patch $(git log --reverse --author="John Doe" --pretty="%H" -- the/needed/path | awk '{print -NR, " ", $0}')
The -reverse option is needed in order to give you a patch in chronological order, because git log gives most repetitions first.
yucer
source share