I wanted to know whether it is possible to create patch files in git. I mean if I have done some changes in few files then patch file should be created with respect to the filename.
Say you've made a commit
aaa111 which modifies
git format-patch -1 aaa111
It generates a patch including three files' changes.
git format-patch -1 aaa111 -- foo.txt
It generates a patch including only the change of
git format-patch -1 aaa111 --stdout -- bar.txt > aaa111.bar.patch
It generates a patch named as
aaa111.bar.patch which includes only the change of