From: Jeff King <peff@peff.net>
To: Eric Sunshine <sunshine@sunshineco.com>
Cc: santiago@nyu.edu, Git List <git@vger.kernel.org>,
Junio C Hamano <gitster@pobox.com>
Subject: Re: [PATCH] tag.c: move PGP verification code from plumbing
Date: Fri, 25 Mar 2016 01:31:34 -0400 [thread overview]
Message-ID: <20160325053134.GA27614@sigill.intra.peff.net> (raw)
In-Reply-To: <CAPig+cQe5bwHXq4_qegBCM8Kqoqiz7K2ZtVk0FGMSEUPWQHyYA@mail.gmail.com>
On Fri, Mar 25, 2016 at 01:23:57AM -0400, Eric Sunshine wrote:
> On Thu, Mar 24, 2016 at 8:33 PM, <santiago@nyu.edu> wrote:
> > The verify tag function is just a thin wrapper around the verify-tag
> > command. We can avoid one fork call by doing the verification inside
> > the tag builtin instead.
>
> Hopefully, the below review comments are meaningful, however, aside
> from having just read Peff's review of the previous version of this
> patch, I haven't been following this discussion, so it's possible some
> comments may be off the mark. Caveat emptor.
Thanks for reviewing. I agree with all of the comments you made, but
I'd add a little more to the last one:
> > +
> > + /* sometimes the program was terminated because this signal
> > + * was received in the process of writing the gpg input.
> > + * We ignore it for this call and restore it afterwards */
>
> I realize that the bulk of this comment block was merely relocated
> from builtin/verify-tag.c, however, now would be a good time to fix
> its style violation and format it like this:
>
> /*
> * This is a multi-line
> * comment.
> */
>
> Also, the last line of the comment, which you added when relocating
> it, merely repeats what the code itself already says clearly, thus is
> not particularly useful and should be dropped.
I actually think we can drop this comment entirely. Pushing and popping
SIGPIPE when piping to a sub-program like this is not that exotic in our
code base. And if the SIGPIPE handling here is done in its own patch,
then if somebody wants to see more discussion or reasoning, they can go
to its commit message (which can then go into more detail about why we
might see SIGPIPE, and not just a vague "sometimes...").
-Peff
next prev parent reply other threads:[~2016-03-25 5:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-25 0:33 [PATCH] tag.c: move PGP verification code from plumbing santiago
2016-03-25 5:23 ` Eric Sunshine
2016-03-25 5:31 ` Jeff King [this message]
2016-03-25 14:45 ` Santiago Torres
2016-03-26 6:33 ` Eric Sunshine
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160325053134.GA27614@sigill.intra.peff.net \
--to=peff@peff.net \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=santiago@nyu.edu \
--cc=sunshine@sunshineco.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.
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 NNTP newsgroup(s).