how to generate patches out of $DVCS branches: best practices?

Guido Günther agx at sigxcpu.org
Mon Jul 21 02:54:53 UTC 2008


On Tue, Jul 15, 2008 at 08:31:04PM +0200, Stefano Zacchiroli wrote:
> Specifically for Debian: do we have any guideline on how to do that? If
> not it is probably worth to create one ...
For simple patches I maintain a patch-queue branch (which gets rebased
of course) and debian/rules has:

redo-patches::
	rm -f debian/patches/*
	git format-patch -N -o debian/patches master...patch-queue | \
		sed -e 's%debian/patches/%%' > debian/patches/series

Batches on this branch usually come from topic brnaches. This keeps
dpatch like patch information in the header. I usually squash topic
branches into a single commit for that with git merge --squash.
 -- Guido



More information about the vcs-pkg-discuss mailing list