From: Philippe Blain <levraiphilippeblain@gmail.com>
To: "Martin Ågren" <martin.agren@gmail.com>,
"Philippe Blain via GitGitGadget" <gitgitgadget@gmail.com>
Cc: Git Mailing List <git@vger.kernel.org>,
Gustaf Hendeby <hendeby@isy.liu.se>,
Felipe Contreras <felipe.contreras@gmail.com>
Subject: Re: [PATCH] gitmodules.txt: fix 'GIT_WORK_TREE' variable name
Date: Sat, 2 Jan 2021 19:33:08 -0500 [thread overview]
Message-ID: <2411086f-b6d6-98c3-bbb4-53ea8956c765@gmail.com> (raw)
In-Reply-To: <CAN0heSqC3K6pJOr2ztz56+ZpKaMomA28rc4W5x8n0cC3K-rVgQ@mail.gmail.com>
Hi Martin,
Le 2021-01-02 à 16:34, Martin Ågren a écrit :
> On Sat, 2 Jan 2021 at 20:39, Philippe Blain via GitGitGadget
> <gitgitgadget@gmail.com> wrote:
>>
>> From: Philippe Blain <levraiphilippeblain@gmail.com>
>>
>> 'gitmodules.txt' is a guide about the '.gitmodules' file that describes
>> submodules properties, and that file must exist at the root of the
>> repository. This was clarified in e5b5c1d2cf (Document clarification:
>> gitmodules, gitattributes, 2008-08-31).
>>
>> However, that commit mistakenly uses the non-existing environment
>> variable 'GIT_WORK_DIR' to refer to the root of the repository.
>
> Good catch! I wonder what we should conclude from this having gone
> unreported for so long.
>
>> Fix that by using the correct variable, 'GIT_WORK_TREE'. Take the
>> opportunity to modernize and improve the formatting of that guide.
>
> It's a small correctness fix and some prettifying while at it. While I
> read the diff and realized that it was more than just one or two
> asciidoc tweaks in the immediate vicinity, I started wondering if this
> should be presented the other way round: "Let's update the formatting
> and fix s/DIR/TREE/ while at it." Or to split it up. But I don't think
> it's worth thinking too much about -- what you have looks good to me.
>
>> @@ -32,14 +32,14 @@ submodule.<name>.path::
>
> Just above this point, you have another s/\.gitmodules/`&`/ waiting to
> be fixed.
Thanks, I added that.
>
>> submodule.<name>.url::
>> Defines a URL from which the submodule repository can be cloned.
>> This may be either an absolute URL ready to be passed to
>
>> dirty;; All changes to the submodule's work tree will be ignored, only
>> - committed differences between the HEAD of the submodule and its
>> + committed differences between the 'HEAD' of the submodule and its
>> recorded state in the superproject are taken into account.
>
> `git grep -B10 HEAD CodingGuidelines` suggests this should be `HEAD`,
> not 'HEAD'. Maybe you followed style -- there's an instance of 'HEAD'
> earlier. I think both should be `HEAD`.
Yes, `HEAD` has indeed more hits than 'HEAD'.
>
>> -If this option is also present in the submodules entry in .git/config
>> +If this option is also present in the submodules entry in `.git/config`
>> of the superproject, the setting there will override the one found in
>> -.gitmodules.
>> +`.gitmodules`.
>
> Should "submodules entry" be "submodule's entry"? I've never worked with
> submodules, but that reading somehow seems more natural. (There are two
> hits for "submodules entry" in this document -- both might be worth
> looking at.)
I agree, I also added that.
Thanks,
Philippe.
next prev parent reply other threads:[~2021-01-03 0:37 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-02 19:37 [PATCH] gitmodules.txt: fix 'GIT_WORK_TREE' variable name Philippe Blain via GitGitGadget
2021-01-02 21:34 ` Martin Ågren
2021-01-02 22:09 ` Felipe Contreras
2021-01-03 8:34 ` Martin Ågren
2021-01-03 0:33 ` Philippe Blain [this message]
2021-01-03 17:42 ` [PATCH v2] " Philippe Blain via GitGitGadget
2021-01-03 20:15 ` Martin Ågren
2021-01-06 6:05 ` Junio C Hamano
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=2411086f-b6d6-98c3-bbb4-53ea8956c765@gmail.com \
--to=levraiphilippeblain@gmail.com \
--cc=felipe.contreras@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitgitgadget@gmail.com \
--cc=hendeby@isy.liu.se \
--cc=martin.agren@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).