From: Junio C Hamano <gitster@pobox.com>
To: "Stephen Sinclair" <radarsat1@gmail.com>
Cc: "Junio C Hamano" <gitster@pobox.com>, git@vger.kernel.org
Subject: Re: [PATCH] Add committer and author names to top of COMMIT_EDITMSG.
Date: Fri, 11 Jan 2008 20:57:18 -0800 [thread overview]
Message-ID: <7vve5zy72p.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <9b3e2dc20801111825i644da598i7556ef700b870445@mail.gmail.com> (Stephen Sinclair's message of "Fri, 11 Jan 2008 21:25:16 -0500")
"Stephen Sinclair" <radarsat1@gmail.com> writes:
>> In a properly configured repository, telling you who git thinks
>> you are is _ALWAYS_ useless (that's the definition of "properly
>> configured"). Just admit it.
>
> Well, I'll admit that I don't really understand you here.
> Maybe I'm still too much of a git newbie on this. (Fair enough.)
> Right now the only way to make sure I'm committing as myself with my
> proper email address is to:
>
> -- remember to "git-config --list", and check that my email is listed.
> -- "git-commit; git-log", and remember to check the last entry before
> doing a "git-push".
>
> Am I missing something?
They are both valid means to make sure you did not misconfigure.
You omitted the part that matters from the part you quoted
above, but this discussion was about "showing AUTHOR if it is
different from me", which was _one of_ the two conditions I
suggested in my counterproposal, and I was saying that it is
useless to expect that you would be able to find a
misconfiguration when AUTHOR is shown for this first reason.
This part is _not_ about catching your misconfiguration.
The other part is about the misconfiguration catching.
> Especially considering the default name is taken from the hostname
> anyway -- you're taking the local hostname and then checking with a
> rule to see if it might be localhost.
Yes, and earlier you said one of the undesirable ones was
"yourname@foo.local" (and others were "yourname@foo.(none)").
IOW, "localhost" is one of the things you want to catch as
unconfigured bogosity that you want to catch, isn't it?
And that is _the other_ condition in my counterproposal to show
AUTHOR.
To rephrase, you would show AUTHOR when one of the conditions
holds true, either:
(1) "not me" (so that we can remind that other's commit is
being amended); _OR_
(2) "funny me" (so that we can catch misconfiguration.
The latter would not have to trigger once you configure your
~/.gitconfig (or .git/config) properly.
next prev parent reply other threads:[~2008-01-12 4:57 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-11 20:10 [PATCH] Add committer and author names to top of COMMIT_EDITMSG Stephen Sinclair
2008-01-11 21:26 ` Johannes Schindelin
2008-01-11 23:36 ` Junio C Hamano
2008-01-12 0:09 ` Stephen Sinclair
2008-01-12 0:22 ` Junio C Hamano
2008-01-12 1:33 ` Stephen Sinclair
2008-01-12 1:53 ` Junio C Hamano
2008-01-12 2:25 ` Stephen Sinclair
2008-01-12 4:57 ` Junio C Hamano [this message]
2008-01-12 7:26 ` Stephen Sinclair
2008-01-12 8:02 ` Junio C Hamano
2008-01-12 4:52 ` Jeff King
2008-01-12 5:06 ` Junio C Hamano
2008-01-12 5:30 ` Junio C Hamano
2008-01-12 5:32 ` Jeff King
2008-01-12 5:56 ` Junio C Hamano
2008-01-12 5:58 ` Jeff King
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=7vve5zy72p.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=radarsat1@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.
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).