From: Efraim Flashner <efraim@flashner.co.il>
To: "Clément Lassieur" <clement@lassieur.org>
Cc: Sharlatan Hellseher <sharlatanus@gmail.com>, guix-devel@gnu.org
Subject: Re: Commit Access: Sharlatan Hellseher
Date: Mon, 15 Jan 2024 10:45:53 +0200 [thread overview]
Message-ID: <ZaTwwUgcrsDpwybI@3900XT> (raw)
In-Reply-To: <87a5pabjz4.fsf@lassieur.org>
[-- Attachment #1: Type: text/plain, Size: 2766 bytes --]
On Fri, Jan 12, 2024 at 05:21:51PM +0100, Clément Lassieur wrote:
> On Thu, Jan 11 2024, Sharlatan Hellseher wrote:
>
> > Hi Guix!
> >
> > I am happy to have been granted commit access and I am ready to help
> > review pending issues and prepare queued packages for GNU packages in
> > astronomy. I would like to concentrate on the packages covered by the
> > Go, Lisp, Python, and Science teams.
> >
> > I would like to thank the Guix team for allowing me to become a
> > committer member. I am looking forward to continuing our collaboration.
> >
> > If anyone has a good patch review workflow using Emacs, Gnus, and Magit,
> > I would appreciate it ;-)
>
> Hey, welcome.
>
> I use this Emacs code to apply patches, with emacs-debbugs and Gnus.
>
> --8<---------------cut here---------------start------------->8---
> (defun my-apply-patch-or-abort ()
> (interactive)
> (my-apply-patch-internal "git am || git am --abort"))
>
> (defun my-apply-patch ()
> (interactive)
> (my-apply-patch-internal "git am --reject"))
>
> (defun my-apply-patch-or-abort-attachment (n)
> (interactive "P")
> (my-apply-patch-attachment-internal "git am || git am --abort" n))
>
> (defun my-apply-patch-attachment (n)
> (interactive "P")
> (my-apply-patch-attachment-internal "git am --reject" n))
>
> (defun my-apply-patch-attachment-internal (cmd n)
> "C-u <attachment number> M-x my-apply-..."
> (let ((git-dir "~/src/guix"))
> (save-window-excursion
> (gnus-article-part-wrapper
> n
> (lambda (handle)
> (let ((default-directory git-dir))
> (mm-pipe-part handle cmd)))))))
>
> (defun my-apply-patch-internal (cmd)
> "Works with a selection of articles."
> (let ((git-dir "~/src/guix")
> (articles (gnus-summary-work-articles nil)))
> (save-window-excursion
> (while articles
> (gnus-summary-goto-subject (pop articles))
> (with-current-buffer gnus-summary-buffer
> (let ((default-directory git-dir))
> (gnus-summary-save-in-pipe cmd))
> (gnus-article-hide-headers))))))
> --8<---------------cut here---------------end--------------->8---
>
> Just my 2 cents, I imagine every person here has their own workflow.
I'm going to suggest 'git am -3' that someone else here suggested to me.
When a patch fails to apply cleanly git will try harder and leave the
failed-to-apply bits inside the code, making it easier to clean-up the
patch than to manually apply it.
--
Efraim Flashner <efraim@flashner.co.il> רנשלפ םירפא
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2024-01-15 8:46 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-11 19:56 Commit Access: Sharlatan Hellseher Sharlatan Hellseher
2024-01-12 16:21 ` Clément Lassieur
2024-01-15 8:45 ` Efraim Flashner [this message]
2024-01-17 14:37 ` Maxim Cournoyer
2024-01-18 2:33 ` Kyle Meyer
2024-01-18 3:33 ` Maxim Cournoyer
2024-01-16 11:07 ` Rostislav Svoboda
2024-01-16 1:38 ` John Kehayias
2024-01-17 15:32 ` Simon Tournier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZaTwwUgcrsDpwybI@3900XT \
--to=efraim@flashner.co.il \
--cc=clement@lassieur.org \
--cc=guix-devel@gnu.org \
--cc=sharlatanus@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).