From: Karl Wiberg Date: Mon, 17 May 2010 17:14:37 GMT Subject: Re: [StGit PATCH] edit: Allow setting git tree SHA1 of a patch Message-ID: In-Reply-To: <20100516172738.5043.94039.stgit@localhost.localdomain> 2010/5/16 Gustav HÃ¥llberg : > I would like to have something similar to this patch, which allows for > setting the (git) tree of a particular patch. I would like to use it > (from the Emacs mode) to make it easier to split an old patch into two > (or more). > > It might be that this is too "powerful" (read: unsafe), and maybe a > better (safer) command would use whatever is currently in the index > rather than a SHA1. I think this is a reasonable idea. (Note that for unapplied patches---or any patch that we can pop---the notion of setting the bottom tree makes sense too. pick can currently create a patch from a given commit; it might be reasonable to teach it (or stg new) to take two trees instead.) -- Karl Wiberg, kha@treskal.com subrabbit.wordpress.com www.treskal.com/kalle