Open gauteh opened 7 years ago
With the latest improvements to Yank raw and to #181 it is now smoother to apply patchsets.
By 'marking' several messages in thread-view and using the multi-key + Y
(yank raw) you get a mailbox synposis of the marked messages copied to the primary clipboard: https://github.com/astroidmail/astroid/commit/5fd2c763fbabdc9f9c6ea56d6c7d88d0425db128 explains a possible workflow:
Yank raw on multiple-patches produces a mailbox-like (without >From
filtering) synthesis of the patches, suitable for git am
. So to apply
a patch set sent with git-send-email or similar do:
git am
or git am -3
You can also apply individual patches by using 'Y' on a message outside multi-key mode (not part).
Inline patches can mostly be copied with 'y' (which yanks decoded text)
and then be applied using git apply
.
This will go into a wiki page on using astroid for appyling patches.
@gregkh: You might be interested.
@gauteh oh nice! I'll have to try this out soon, thanks for the ping.
Greg Kroah-Hartman writes on februar 25, 2017 10:50:
@gauteh oh nice! I'll have to try this out soon, thanks for the ping.
Good, let me know if you have any suggestions! I imagine you have a fairly qualified opinion by now.
Clipboard target is now configurable through the '"' keybinding (vim-style), the default target has been changed to CLIPBOARD since that is the only one accessible by keyboard in GTK.
I want to improve the way patches can be applied. Currently you can yank the content (raw or decoded), or the message-id. I think with some improvements various workflows could be supported. The improvements I am thinking about are:
git am
on them. You could have the script do different things depending on what tags the message has, and even add a tag to the message afterwards for your own records.Current, relevant, possibilities include:
Eventually, there should be some suggested workflows for how to do this efficiently in the wiki. Does anyone have any experience or particular workflow they would like to see possible?