HOME/bin/git-mkpatches
frankdelange ecd79740fd Add ~/bin
2022-06-26 20:20:31 +02:00

10 lines
172 B
Text
Executable file

#/bin/sh
mkdir patches/
count="1"
for i in $(git-rev-list HEAD ^ORIG_HEAD | tac)
do
git-diff-tree --pretty -p ${i} > patches/$count.diff
count=$(($count + 1))
done