3 # Update patches using git-format-patch from a source tree prepared by
6 # (c) 2016 Phil Sutter <phil@nwl.cc>
14 git log
--grep="^OpenADK patch marker:" --oneline |
while read hash subject
; do
17 top_series
="${subject#OpenADK patch marker: }"
21 bottom_series
="${subject#OpenADK patch marker: }"
23 patchdir
=$
(<.git
/patch_tmp
/${top_series}/__patchdir__
)
24 while read patchfile
; do
25 rm ${patchdir}/$patchfile
26 done < .git
/patch_tmp
/${top_series}/__patchfiles__
27 git format-patch
-N -o "$patchdir" ${bottom}..
${top}
30 top_series
=$bottom_series