* [PATCH] git.txt: update description of the configuration mechanism
@ 2013-02-14 15:36 Matthieu Moy
2013-02-14 16:15 ` Michael J Gruber
2013-02-14 16:52 ` Junio C Hamano
0 siblings, 2 replies; 8+ messages in thread
From: Matthieu Moy @ 2013-02-14 15:36 UTC (permalink / raw)
To: git, gitster; +Cc: Matthieu Moy
The old Git version where it appeared is not useful only to historians,
not to normal users. Also, the text was mentioning only the per-repo
config file, so add a mention of ~/.gitconfig. Describing in details the
system-wide, XDG and all would be counter-productive here, so reword the
description of the link to git-config to make it clear that it is not
only a list of configuration options.
Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
---
Documentation/git.txt | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/Documentation/git.txt b/Documentation/git.txt
index 0b681d9..e332947 100644
--- a/Documentation/git.txt
+++ b/Documentation/git.txt
@@ -535,10 +535,11 @@ include::cmds-purehelpers.txt[]
Configuration Mechanism
-----------------------
-Starting from 0.99.9 (actually mid 0.99.8.GIT), `.git/config` file
-is used to hold per-repository configuration options. It is a
-simple text file modeled after `.ini` format familiar to some
-people. Here is an example:
+Git uses a simple text file format modeled after `.ini` format
+familiar to some people to store its configuration. The `.git/config`
+file is used to hold per-repository configuration options, and
+per-user configuration can be stored in a `~/.gitconfig` file.
+Here is an example:
------------
#
@@ -559,7 +560,7 @@ people. Here is an example:
Various commands read from the configuration file and adjust
their operation accordingly. See linkgit:git-config[1] for a
-list.
+list and more details about the configuration mechanism.
Identifier Terminology
--
1.8.1.3.572.g35e1b60
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH] git.txt: update description of the configuration mechanism
2013-02-14 15:36 [PATCH] git.txt: update description of the configuration mechanism Matthieu Moy
@ 2013-02-14 16:15 ` Michael J Gruber
2013-02-14 16:23 ` Matthieu Moy
2013-02-14 16:52 ` Junio C Hamano
1 sibling, 1 reply; 8+ messages in thread
From: Michael J Gruber @ 2013-02-14 16:15 UTC (permalink / raw)
To: Matthieu Moy; +Cc: git, gitster
Matthieu Moy venit, vidit, dixit 14.02.2013 16:36:
> The old Git version where it appeared is not useful only to historians,
> not to normal users. Also, the text was mentioning only the per-repo
I do not think you meant to not remove so many nots ;)
Besides, if history is uninteresting, then so is sociology: "familiar to
some people" can go, too.
> config file, so add a mention of ~/.gitconfig. Describing in details the
> system-wide, XDG and all would be counter-productive here, so reword the
Hmpf, I think this gives a way too prominent role to "~/.gitconfig". The
config files most people will have to deal with are:
- the repo config file
- the one set by "config --global"
And really, it would often be best if the latter was the XDG thing.
So, I'm all for improving git.txt, but somewhat differently ;)
> description of the link to git-config to make it clear that it is not
> only a list of configuration options.
>
> Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
> ---
> Documentation/git.txt | 11 ++++++-----
> 1 file changed, 6 insertions(+), 5 deletions(-)
>
> diff --git a/Documentation/git.txt b/Documentation/git.txt
> index 0b681d9..e332947 100644
> --- a/Documentation/git.txt
> +++ b/Documentation/git.txt
> @@ -535,10 +535,11 @@ include::cmds-purehelpers.txt[]
> Configuration Mechanism
> -----------------------
>
> -Starting from 0.99.9 (actually mid 0.99.8.GIT), `.git/config` file
> -is used to hold per-repository configuration options. It is a
> -simple text file modeled after `.ini` format familiar to some
> -people. Here is an example:
> +Git uses a simple text file format modeled after `.ini` format
> +familiar to some people to store its configuration. The `.git/config`
> +file is used to hold per-repository configuration options, and
> +per-user configuration can be stored in a `~/.gitconfig` file.
> +Here is an example:
>
> ------------
> #
> @@ -559,7 +560,7 @@ people. Here is an example:
>
> Various commands read from the configuration file and adjust
> their operation accordingly. See linkgit:git-config[1] for a
> -list.
> +list and more details about the configuration mechanism.
>
>
> Identifier Terminology
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] git.txt: update description of the configuration mechanism
2013-02-14 16:15 ` Michael J Gruber
@ 2013-02-14 16:23 ` Matthieu Moy
2013-02-14 17:10 ` Junio C Hamano
0 siblings, 1 reply; 8+ messages in thread
From: Matthieu Moy @ 2013-02-14 16:23 UTC (permalink / raw)
To: Michael J Gruber; +Cc: git, gitster
Michael J Gruber <git@drmicha.warpmail.net> writes:
> Matthieu Moy venit, vidit, dixit 14.02.2013 16:36:
>> The old Git version where it appeared is not useful only to historians,
>> not to normal users. Also, the text was mentioning only the per-repo
>
> I do not think you meant to not remove so many nots ;)
The first was meant to be "now", indeed.
> Besides, if history is uninteresting, then so is sociology: "familiar to
> some people" can go, too.
It can, but I'm fine with keeping it too. It may help some users to
realize "ah, OK, the same ini file I'm used to". And it doesn't really
harm.
>> config file, so add a mention of ~/.gitconfig. Describing in details the
>> system-wide, XDG and all would be counter-productive here, so reword the
>
> Hmpf, I think this gives a way too prominent role to "~/.gitconfig". The
> config files most people will have to deal with are:
>
> - the repo config file
> - the one set by "config --global"
>
> And really, it would often be best if the latter was the XDG thing.
That's a different question. For now, ~/.gitconfig is the default
destination of "config --global" and we should wait for XDG-aware Gits
to be widely deployed before reconsidering that.
If the XDG config file ever become the default, then sure, it will have
to be promoted instead of ~/.gitconfig in git.txt (and I'll be all for
it when it's time, even though I can foresee a few flamewars ;-) ), but
I don't think we should do that now.
--
Matthieu Moy
http://www-verimag.imag.fr/~moy/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] git.txt: update description of the configuration mechanism
2013-02-14 16:23 ` Matthieu Moy
@ 2013-02-14 17:10 ` Junio C Hamano
2013-02-14 17:36 ` Matthieu Moy
0 siblings, 1 reply; 8+ messages in thread
From: Junio C Hamano @ 2013-02-14 17:10 UTC (permalink / raw)
To: Matthieu Moy; +Cc: Michael J Gruber, git
Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> writes:
> If the XDG config file ever become the default, then sure, it will have
> to be promoted instead of ~/.gitconfig in git.txt (and I'll be all for
> it when it's time, even though I can foresee a few flamewars ;-) ), but
> I don't think we should do that now.
We are giving an overview to list what things are possible and what
words the reader should be familiar with in this part of the manual.
The fact that configuration can be done per user and per repository
is a relevant thing to know at the conceptual level.
But the exact location of per-user and per-repository configuration
files does not matter in this context and is best left to the
git-config documentation.
Documentation/git.txt | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/Documentation/git.txt b/Documentation/git.txt
index 0b681d9..2d975e3 100644
--- a/Documentation/git.txt
+++ b/Documentation/git.txt
@@ -535,10 +535,9 @@ include::cmds-purehelpers.txt[]
Configuration Mechanism
-----------------------
-Starting from 0.99.9 (actually mid 0.99.8.GIT), `.git/config` file
-is used to hold per-repository configuration options. It is a
-simple text file modeled after `.ini` format familiar to some
-people. Here is an example:
+Git uses a simple text format to store customizations that are per
+repository and are per user. Such a configuration file may look
+like this:
------------
#
@@ -553,13 +552,13 @@ people. Here is an example:
; user identity
[user]
name = "Junio C Hamano"
- email = "junkio@twinsun.com"
+ email = "gitster@pobox.com"
------------
Various commands read from the configuration file and adjust
their operation accordingly. See linkgit:git-config[1] for a
-list.
+list and more details about the configuration mechanism.
Identifier Terminology
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH] git.txt: update description of the configuration mechanism
2013-02-14 17:10 ` Junio C Hamano
@ 2013-02-14 17:36 ` Matthieu Moy
2013-02-14 18:03 ` Junio C Hamano
0 siblings, 1 reply; 8+ messages in thread
From: Matthieu Moy @ 2013-02-14 17:36 UTC (permalink / raw)
To: Junio C Hamano; +Cc: Michael J Gruber, git
Junio C Hamano <gitster@pobox.com> writes:
> But the exact location of per-user and per-repository configuration
> files does not matter in this context and is best left to the
> git-config documentation.
I'm OK with your version.
--
Matthieu Moy
http://www-verimag.imag.fr/~moy/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] git.txt: update description of the configuration mechanism
2013-02-14 17:36 ` Matthieu Moy
@ 2013-02-14 18:03 ` Junio C Hamano
2013-02-15 8:18 ` Michael J Gruber
0 siblings, 1 reply; 8+ messages in thread
From: Junio C Hamano @ 2013-02-14 18:03 UTC (permalink / raw)
To: Matthieu Moy; +Cc: Michael J Gruber, git
Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> writes:
> Junio C Hamano <gitster@pobox.com> writes:
>
>> But the exact location of per-user and per-repository configuration
>> files does not matter in this context and is best left to the
>> git-config documentation.
>
> I'm OK with your version.
I already queued your original with one s/not/now/; perhaps I will
redo it then.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] git.txt: update description of the configuration mechanism
2013-02-14 18:03 ` Junio C Hamano
@ 2013-02-15 8:18 ` Michael J Gruber
0 siblings, 0 replies; 8+ messages in thread
From: Michael J Gruber @ 2013-02-15 8:18 UTC (permalink / raw)
To: Junio C Hamano; +Cc: Matthieu Moy, git
Junio C Hamano venit, vidit, dixit 14.02.2013 19:03:
> Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> writes:
>
>> Junio C Hamano <gitster@pobox.com> writes:
>>
>>> But the exact location of per-user and per-repository configuration
>>> files does not matter in this context and is best left to the
>>> git-config documentation.
>>
>> I'm OK with your version.
>
> I already queued your original with one s/not/now/; perhaps I will
> redo it then.
Yes, I think the new version improves upon Matthieu's which was a good
start to begin with :)
Michael
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] git.txt: update description of the configuration mechanism
2013-02-14 15:36 [PATCH] git.txt: update description of the configuration mechanism Matthieu Moy
2013-02-14 16:15 ` Michael J Gruber
@ 2013-02-14 16:52 ` Junio C Hamano
1 sibling, 0 replies; 8+ messages in thread
From: Junio C Hamano @ 2013-02-14 16:52 UTC (permalink / raw)
To: Matthieu Moy; +Cc: git
Matthieu Moy <Matthieu.Moy@imag.fr> writes:
> The old Git version where it appeared is not useful only to historians,
> not to normal users.
That statement cannot be generally true, unless the "old" is really
old and no longer relevant but 0.99.9 is sufficiently old so the
value of the part of the message you removed that warns users with
ancient versions that they may not be able to use the feature
without upgrading has diminished.
> +Git uses a simple text file format modeled after `.ini` format
> +familiar to some people to store its configuration. The `.git/config`
> +file is used to hold per-repository configuration options, and
> +per-user configuration can be stored in a `~/.gitconfig` file.
> +Here is an example:
>
> ------------
> #
> @@ -559,7 +560,7 @@ people. Here is an example:
>
> Various commands read from the configuration file and adjust
> their operation accordingly. See linkgit:git-config[1] for a
> -list.
> +list and more details about the configuration mechanism.
Both look sensible.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2013-02-15 8:18 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-14 15:36 [PATCH] git.txt: update description of the configuration mechanism Matthieu Moy
2013-02-14 16:15 ` Michael J Gruber
2013-02-14 16:23 ` Matthieu Moy
2013-02-14 17:10 ` Junio C Hamano
2013-02-14 17:36 ` Matthieu Moy
2013-02-14 18:03 ` Junio C Hamano
2013-02-15 8:18 ` Michael J Gruber
2013-02-14 16:52 ` Junio C Hamano
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).