From: Karl Hasselström Date: Fri, 12 Sep 2008 13:07:03 GMT Subject: Re: [StGit PATCH] add option to import series directly from a tar archive Message-ID: <20080912130703.GA31240@diana.vm.bytemark.co.uk> In-Reply-To: <2008-09-12-14-21-13+trackit+sam@rfc1149.net> On 2008-09-12 14:21:13 +0200, Samuel Tardieu wrote: > Two things that would be great would be: > > - to be able to import patches with "-p0" (people not using git > often sends such patches) This should be trivial to implement, since git-apply (pardon the dash) has a -p flag with precisely this meaning. > - to be able to find where the patch should be applied; I > sometimes receive patches for GCC directory "gcc/ada/", diffed > from there, and if StGit could see that the patch only makes > sense there and not at the top-level it would be great as well I don't believe git-apply can do this (please correct me if I'm wrong), and the right way to teach StGit to do it would arguably be to teach it to git-apply and then make StGit use it. It'd be _possible_ to do it directly in StGit, but it wouldn't be quite the right level, and git users wouldn't benefit. -- Karl Hasselström, kha@treskal.com www.treskal.com/kalle