From dfd4cc5c6b27969922c15a812b29a9a45d0a5711 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Mon, 9 Nov 2020 20:31:30 -0500 Subject: orgmode-backports.org: Rework information about commands When this text was originally written, the commands in org-maint.el didn't exist. Now that they do, just point to them. --- orgmode-backports.org | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/orgmode-backports.org b/orgmode-backports.org index a10a762..a38f51c 100644 --- a/orgmode-backports.org +++ b/orgmode-backports.org @@ -14,33 +14,38 @@ format author author date +The ~org-maint-insert-emacs-commit-info~ command in org-maint.el can +be used to insert the original commit message plus the above block of +information. + Note that, as [[https://orgmode.org/list/87d19h8sr5.fsf@kyleam.com][discussed on the list]], "backport" isn't really the best term for this, but it probably makes sense to continue using it in the commit messages at this point. * Commands -** Format patch +org-maint.el defines the following commands -: git format-patch -oorg-patches ^.. -- lisp/org +- ~org-maint-check-for-new~ -** Apply in Org repo with + Check for new commits from Emacs to port to the Org repo. -: git apply -p3 --directory=lisp/ + This should be called with point at the top of a subheading of + "Backport list" (e.g., the [[*master branch][master branch]] heading). -~git am~ can be used with the same arguments. +- ~org-maint-apply-emacs-commit~ -** Format for commit information + Apply an Emacs commit to the Org repo. -: git show -s --format="%H%n%s%n%an%n%cd" +- ~org-maint-insert-emacs-commit-info~ ** Applying failed patch -When 'git am' fails, the patch can be partially applied with +When ~git am~ fails, the patch can be partially applied with : git apply --directory=lisp/ --reject -p3 .git/rebase-apply/0001 -and then after resolving run +After resolving the conflict, run : git am --continue -- cgit v1.2.3