From: Junio C Hamano <gitster@pobox.com>
To: Chris Angelico <rosuav@gmail.com>
Cc: Jeff King <peff@peff.net>, Kevin <ikke@ikke.info>,
git <git@vger.kernel.org>
Subject: Re: Configuring a third-party git hook
Date: Fri, 21 Mar 2014 10:31:59 -0700 [thread overview]
Message-ID: <xmqqha6rv4og.fsf@gitster.dls.corp.google.com> (raw)
In-Reply-To: <CAPTjJmqRFbKxe8MODtBDDC0SUYGoaFmQj2724YmKnMmdbrgOUA@mail.gmail.com> (Chris Angelico's message of "Fri, 21 Mar 2014 15:07:08 +1100")
Chris Angelico <rosuav@gmail.com> writes:
> On Fri, Mar 21, 2014 at 2:43 PM, Jeff King <peff@peff.net> wrote:
>> Thanks, the new text looks good to me. Please follow SubmittingPatches
>> (notably, you need to sign-off your work, and please send patches inline
>> rather than as attachments).
>
> Ah, didn't see that file.
It appears that we might need to be more explicit in that file,
though.
>
> From 6e1fc126ece37c6201d0c16b76c6c87781f7b02b Mon Sep 17 00:00:00 2001
Never paste the above line to your e-mail message. It is only used
to separate individual messages/patches in the format-patch output.
> From: Chris Angelico <rosuav@gmail.com>
> Date: Fri, 21 Mar 2014 10:45:08 +1100
> Subject: [PATCH] Explain that third-party tools may create 'git config'
> variables
You _may_ paste these in-body pseudo-header lines at the beginning of your
e-mail but (1) then these must be the first lines of your message,
not after doing random discussions at the beginning of the message
(you may separate that with scissors marker "-- >8 --", though),
and (2) do so only they are used to correct what appears in the real
header lines in your e-mail message.
* "From: " is useful only when you are forwarding a patch written
by somebody else; otherwise your authorship can be taken from the
e-mail "From: " header.
* "Date: " is the same way; "Date :" header in your e-mail is
closer to the time wider world saw the change for the first time
than when you made the commit, so it is usually not desired to
see in-body pseudo-header.
* "Subject: " is used a lot more often than the above two,
especially when you send a patch to an on-going discussion thread
as a "how about doing it this way?" patch and do not want to
change the e-mail Subject: (which may break the discussion
thread).
Also I'd title the commit with the area it touches, i.e. starting it
with "Explain blah" is suboptimal.
Will queue with a minor tweak, with retitling the change and
rephrasing the "ideally" part, which invites people to say "well it
may be so in the ideal world but the rule does not apply to me".
Thanks.
-- >8 --
From: Chris Angelico <rosuav@gmail.com>
Date: Fri, 21 Mar 2014 15:07:08 +1100
Subject: [PATCH] config.txt: third-party tools may and do use their own variables
Signed-off-by: Chris Angelico <rosuav@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
---
Documentation/config.txt | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/Documentation/config.txt b/Documentation/config.txt
index ab26963..a1ea605 100644
--- a/Documentation/config.txt
+++ b/Documentation/config.txt
@@ -131,8 +131,13 @@ Variables
Note that this list is non-comprehensive and not necessarily complete.
For command-specific variables, you will find a more detailed description
-in the appropriate manual page. You will find a description of non-core
-porcelain configuration variables in the respective porcelain documentation.
+in the appropriate manual page.
+
+Other git-related tools may and do use their own variables. When
+inventing new variables for use in your own tool, make sure their
+names do not conflict with what are used by Git itself and other
+popular tools, and describe them in your documentation.
+
advice.*::
These variables control various optional help messages designed to
--
1.9.1-443-g8f4a3d9
next prev parent reply other threads:[~2014-03-21 17:32 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-19 11:16 Configuring a third-party git hook Chris Angelico
2014-03-20 12:53 ` Kevin
2014-03-20 16:51 ` Chris Angelico
2014-03-20 23:38 ` Jeff King
2014-03-20 23:46 ` Chris Angelico
2014-03-21 3:43 ` Jeff King
2014-03-21 4:07 ` Chris Angelico
2014-03-21 17:31 ` Junio C Hamano [this message]
2014-03-21 17:48 ` Chris Angelico
2014-03-21 18:15 ` Jeff King
2014-03-21 18:53 ` Junio C Hamano
2014-03-21 18:54 ` Junio C Hamano
2014-03-20 16:53 ` Junio C Hamano
2014-03-20 17:10 ` Chris Angelico
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=xmqqha6rv4og.fsf@gitster.dls.corp.google.com \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=ikke@ikke.info \
--cc=peff@peff.net \
--cc=rosuav@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).