From: Junio C Hamano Date: Tue, 16 Aug 2005 21:02:51 GMT Subject: Re: [RFC] Patches exchange is bad? Message-ID: <7vzmrh8uis.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <20050816200132.88287.qmail@web26304.mail.ukl.yahoo.com> Marco Costalba writes: > It is just a very thin layer above the two git scripts, the only extra work > is the cleaning up of some info that git-format-patch-script automatically adds, > so that the new commits look like the originals (i.e. same header and description). > What do you think? All good. The existing tools are designed to work well in the following workflow: $ git format-patch --mbox master..pu $ cat 000[234]-*.txt >to-apply $ git checkout master $ git applymbox to-apply $ mv .git/refs/heads/pu .git/refs/heads/old-pu $ git checkout -b pu master $ git applymbox 0001-*.txt to advance "master" with selected commits, possibly reordered, from the "pu" branch, and rebase the "pu" branch using the remaining commits. I would like to know a bit about "git format-patch" adding extra info that you needed to get rid of. It shouldn't be necessary.