Re: [StGit PATCH] edit: Allow setting git tree SHA1 of a patch
- From
Karl Wiberg <kha@treskal.com>
- Date
- May 17, 2010, 17:14 UTC
- Message-ID
- <AANLkTimBSc35cnmRgDMDhQKtXC2PchcrSGHxMBcBMtuG@mail.gmail.com>
- In-Reply-To
- <20100516172738.5043.94039.stgit@localhost.localdomain>
2010/5/16 Gustav Hållberg <gustav@gmail.com>:
Show 8 quoted lines
> 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