Re: [StGit PATCH] edit: Allow setting git tree SHA1 of a patch

From
Catalin Marinas <hidden>
Date
2016-06-15 22:48:50
Reply to
Gustav Hållberg, 2016-06-15
Hi Gustav,

2010/5/16 Gustav Hållberg [off-list ref]:
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'm not against such option (as long as it is somehow mentioned that's
dangerous) though I don't fully understand how one would use it,
especially when the patch is buried under other patches. With a series
of patches, any easily accessible tree (sha1) belongs to one of the
patches.

My current approach for splitting patches is to "goto" the patch I
need to split, run "git reset HEAD^", add the files I have to the
index and then do a "refresh --index".

Another approach is to pop the patch I want split, create individual
patches and run "pick --fold" for each new smaller patch.

-- 
Catalin
Thread (3 messages) 3 messages, 3 authors, last reply 2016-06-15
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help