Applying thread patches with Emacs Notmuch

I have made this shell script called git-inled in my path.

Then I had this snippet copied from somewhere and changed it from always wanting to create new branches to instead use the inled script:

Thanks to the script I added, if the branch already exists, it switches to it, and if it does not exist, it makes sure the new one is branched off of main.

Before, it’d always create new branches and it’d always create them off of where I already was (which got confusing if I was on a dev branch).

Most of the time I actually do want to accept the patches directly on main. That’s one of the advantages of this workflow after all. And that’s what this script also allows me to do, I just enter main as the branchname to apply to. Then I can use git tools on top of that if I want to fix it up further beyond what was addressed in the review process.

Branching & Patching

NIH with a ribbon bookmark

Learn to use email with git! Step four: Dealing with feedback

Proxied content from gemini://idiomdrottning.org/patches-with-notmuch (external content)

Gemini request details:

Original URL
gemini://idiomdrottning.org/patches-with-notmuch
Status code
Success
Meta
text/gemini; lang=en
Proxied by
kineto

Be advised that no attempt was made to verify the remote SSL certificate.