All of lore.kernel.org
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: Matthieu Moy <Matthieu.Moy@grenoble-inp.fr>
Cc: git@vger.kernel.org
Subject: Re: [PATCH v2] Detailed diagnosis when parsing an object name fails.
Date: Sun, 06 Dec 2009 16:30:16 -0800	[thread overview]
Message-ID: <7vtyw3bp7r.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: vpqhbs4dkjr.fsf@bauges.imag.fr

Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> writes:

>>> +extern int get_sha1_with_mode_1(const char *str, unsigned char *sha1, unsigned *mode, int fatal, const char *prefix);
>>
>> Do I understand correctly that "fatal" here is the same as "!gently"
>> elsewhere in the API?
>
> It seems it is. I renamed it.

This was a pure question, not a suggestion to change it (we do name a
function do_foo_gently() when there is do_foo() that does the same but
reports errors more noisily, though).  I found the name "fatal" a bit
confusing as I at first couldn't tell if the caller was telling the
function that it already detected a "fatal" error (and telling the
function to report the fatalness) and didn't realize that the caller is
instead saying "if you find an error, treat it as a fatal one" until I
read it again.

I am Ok with the new "gently" name with the negative semantics as well (I
see no need to change it back to "error_is_fatal").

Thanks.

  parent reply	other threads:[~2009-12-07  0:31 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-02 20:01 [PATCH v2] Detailed diagnosis when parsing an object name fails y
2009-12-03 20:37 ` Junio C Hamano
2009-12-06 18:28   ` Matthieu Moy
2009-12-06 18:45     ` Matthieu Moy
2009-12-07  0:30     ` Junio C Hamano [this message]
2009-12-07  7:27     ` Junio C Hamano
2009-12-07 10:07       ` Matthieu Moy
2009-12-07 10:10         ` [PATCH v3] " Matthieu Moy
2010-02-15 14:16           ` Sverre Rabbelier
  -- strict thread matches above, loose matches on Subject: below --
2009-12-02 20:01 [PATCH v2] " y

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=7vtyw3bp7r.fsf@alter.siamese.dyndns.org \
    --to=gitster@pobox.com \
    --cc=Matthieu.Moy@grenoble-inp.fr \
    --cc=git@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.