Thread (1 message) 1 message, 1 author, 2016-06-15

Re: format-patch: numbered patches from a patch list?

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:47:05

tom fogal [off-list ref] writes:
I have a need to generate a numbered sequence of patches from a sparse
sprinkling of patches on a branch.  Is there a way to accomplish this?

Basically I want to say, `for the patches at the heads of these sha1s,
give me a numbered sequence.'  Currently I take the list of shas that I
want, throw them in a file, and loop over each entry:

  for sha in $(cat patches) ; do git format-patch -o a/ ${sha}^..${sha} ; done
You can pass --start-number to these invocations of format-patch; maintain
the parameter to give as an argument to the option inside your loop.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help