From: Junio C Hamano <gitster@pobox.com>
To: Thomas Rast <trast@inf.ethz.ch>
Cc: "Nguyễn Thái Ngọc Duy" <pclouds@gmail.com>, git@vger.kernel.org
Subject: Re: [PATCH] Rename advice.object_name_warning to objectNameWarning
Date: Wed, 31 Jul 2013 15:19:43 -0700 [thread overview]
Message-ID: <7vmwp2tls0.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <bc52a7d4a5f1010e6813ddf503a0b84976dc55e4.1375301985.git.trast@inf.ethz.ch> (Thomas Rast's message of "Wed, 31 Jul 2013 22:23:31 +0200")
Thomas Rast <trast@inf.ethz.ch> writes:
> We spell config variables in camelCase instead of with_underscores.
>
> Signed-off-by: Thomas Rast <trast@inf.ethz.ch>
> ---
>
> I figure since we don't have the variable in any release yet *and* the
> worst possible outcome is that someone sees the advice message again,
> the consistency is worth the change.
Thanks, I agree.
>
> advice.c | 2 +-
> sha1_name.c | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/advice.c b/advice.c
> index 2a52098..3eca9f5 100644
> --- a/advice.c
> +++ b/advice.c
> @@ -35,7 +35,7 @@
> { "implicitidentity", &advice_implicit_identity },
> { "detachedhead", &advice_detached_head },
> { "setupstreamfailure", &advice_set_upstream_failure },
> - { "object_name_warning", &advice_object_name_warning },
> + { "objectnamewarning", &advice_object_name_warning },
> { "rmhints", &advice_rm_hints },
>
> /* make this an alias for backward compatibility */
> diff --git a/sha1_name.c b/sha1_name.c
> index 1d210e3..852dd95 100644
> --- a/sha1_name.c
> +++ b/sha1_name.c
> @@ -445,7 +445,7 @@ static int get_sha1_basic(const char *str, int len, unsigned char *sha1)
> "\n"
> "where \"$br\" is somehow empty and a 40-hex ref is created. Please\n"
> "examine these refs and maybe delete them. Turn this message off by\n"
> - "running \"git config advice.object_name_warning false\"");
> + "running \"git config advice.objectNameWarning false\"");
> unsigned char tmp_sha1[20];
> char *real_ref = NULL;
> int refs_found = 0;
prev parent reply other threads:[~2013-07-31 22:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-31 20:23 [PATCH] Rename advice.object_name_warning to objectNameWarning Thomas Rast
2013-07-31 22:19 ` Junio C Hamano [this message]
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=7vmwp2tls0.fsf@alter.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=pclouds@gmail.com \
--cc=trast@inf.ethz.ch \
/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).