* [PATCH] config doc: quote paths, fixing tilde-interpretation
@ 2013-07-26 10:42 Ramkumar Ramachandra
2013-07-26 15:45 ` Junio C Hamano
0 siblings, 1 reply; 2+ messages in thread
From: Ramkumar Ramachandra @ 2013-07-26 10:42 UTC (permalink / raw)
To: Git List; +Cc: Junio C Hamano
The --global section of git-config(1) currently reads like:
For writing options: write to global /.gitconfig file rather than the
^
start tilde
repository .git/config, write to $XDG_CONFIG_HOME/git/config file if
this file exists and the/.gitconfig file doesn’t.
^
end tilde
Instead of tilde (~) being interpreted literally, asciidoc subscripts
the text between the two tildes. To fix this problem, use backticks (`)
to quote all the paths in the file uniformly, just like config.txt does.
Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
---
Candidate for maint?
Documentation/git-config.txt | 26 ++++++++++++++------------
1 file changed, 14 insertions(+), 12 deletions(-)
diff --git a/Documentation/git-config.txt b/Documentation/git-config.txt
index 34b0894..2dbe486 100644
--- a/Documentation/git-config.txt
+++ b/Documentation/git-config.txt
@@ -96,29 +96,31 @@ OPTIONS
names are not.
--global::
- For writing options: write to global ~/.gitconfig file rather than
- the repository .git/config, write to $XDG_CONFIG_HOME/git/config file
- if this file exists and the ~/.gitconfig file doesn't.
+ For writing options: write to global `~/.gitconfig` file
+ rather than the repository `.git/config`, write to
+ `$XDG_CONFIG_HOME/git/config` file if this file exists and the
+ `~/.gitconfig` file doesn't.
+
-For reading options: read only from global ~/.gitconfig and from
-$XDG_CONFIG_HOME/git/config rather than from all available files.
+For reading options: read only from global `~/.gitconfig` and from
+`$XDG_CONFIG_HOME/git/config` rather than from all available files.
+
See also <<FILES>>.
--system::
- For writing options: write to system-wide $(prefix)/etc/gitconfig
- rather than the repository .git/config.
+ For writing options: write to system-wide
+ `$(prefix)/etc/gitconfig` rather than the repository
+ `.git/config`.
+
-For reading options: read only from system-wide $(prefix)/etc/gitconfig
+For reading options: read only from system-wide `$(prefix)/etc/gitconfig`
rather than from all available files.
+
See also <<FILES>>.
--local::
- For writing options: write to the repository .git/config file.
+ For writing options: write to the repository `.git/config` file.
This is the default behavior.
+
-For reading options: read only from the repository .git/config rather than
+For reading options: read only from the repository `.git/config` rather than
from all available files.
+
See also <<FILES>>.
@@ -218,9 +220,9 @@ $(prefix)/etc/gitconfig::
$XDG_CONFIG_HOME/git/config::
Second user-specific configuration file. If $XDG_CONFIG_HOME is not set
- or empty, $HOME/.config/git/config will be used. Any single-valued
+ or empty, `$HOME/.config/git/config` will be used. Any single-valued
variable set in this file will be overwritten by whatever is in
- ~/.gitconfig. It is a good idea not to create this file if
+ `~/.gitconfig`. It is a good idea not to create this file if
you sometimes use older versions of Git, as support for this
file was added fairly recently.
--
1.8.3.3.820.ge3d4493.dirty
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] config doc: quote paths, fixing tilde-interpretation
2013-07-26 10:42 [PATCH] config doc: quote paths, fixing tilde-interpretation Ramkumar Ramachandra
@ 2013-07-26 15:45 ` Junio C Hamano
0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2013-07-26 15:45 UTC (permalink / raw)
To: Ramkumar Ramachandra; +Cc: Git List
Ramkumar Ramachandra <artagnon@gmail.com> writes:
> The --global section of git-config(1) currently reads like:
>
> For writing options: write to global /.gitconfig file rather than the
> ^
> start tilde
>
> repository .git/config, write to $XDG_CONFIG_HOME/git/config file if
> this file exists and the/.gitconfig file doesn’t.
> ^
> end tilde
>
> Instead of tilde (~) being interpreted literally, asciidoc subscripts
> the text between the two tildes. To fix this problem, use backticks (`)
> to quote all the paths in the file uniformly, just like config.txt does.
>
> Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
> ---
> Candidate for maint?
Surely; thanks for sharp eyes.
> Documentation/git-config.txt | 26 ++++++++++++++------------
> 1 file changed, 14 insertions(+), 12 deletions(-)
>
> diff --git a/Documentation/git-config.txt b/Documentation/git-config.txt
> index 34b0894..2dbe486 100644
> --- a/Documentation/git-config.txt
> +++ b/Documentation/git-config.txt
> @@ -96,29 +96,31 @@ OPTIONS
> names are not.
>
> --global::
> - For writing options: write to global ~/.gitconfig file rather than
> - the repository .git/config, write to $XDG_CONFIG_HOME/git/config file
> - if this file exists and the ~/.gitconfig file doesn't.
> + For writing options: write to global `~/.gitconfig` file
> + rather than the repository `.git/config`, write to
> + `$XDG_CONFIG_HOME/git/config` file if this file exists and the
> + `~/.gitconfig` file doesn't.
> +
> -For reading options: read only from global ~/.gitconfig and from
> -$XDG_CONFIG_HOME/git/config rather than from all available files.
> +For reading options: read only from global `~/.gitconfig` and from
> +`$XDG_CONFIG_HOME/git/config` rather than from all available files.
> +
> See also <<FILES>>.
>
> --system::
> - For writing options: write to system-wide $(prefix)/etc/gitconfig
> - rather than the repository .git/config.
> + For writing options: write to system-wide
> + `$(prefix)/etc/gitconfig` rather than the repository
> + `.git/config`.
> +
> -For reading options: read only from system-wide $(prefix)/etc/gitconfig
> +For reading options: read only from system-wide `$(prefix)/etc/gitconfig`
> rather than from all available files.
> +
> See also <<FILES>>.
>
> --local::
> - For writing options: write to the repository .git/config file.
> + For writing options: write to the repository `.git/config` file.
> This is the default behavior.
> +
> -For reading options: read only from the repository .git/config rather than
> +For reading options: read only from the repository `.git/config` rather than
> from all available files.
> +
> See also <<FILES>>.
> @@ -218,9 +220,9 @@ $(prefix)/etc/gitconfig::
>
> $XDG_CONFIG_HOME/git/config::
> Second user-specific configuration file. If $XDG_CONFIG_HOME is not set
> - or empty, $HOME/.config/git/config will be used. Any single-valued
> + or empty, `$HOME/.config/git/config` will be used. Any single-valued
> variable set in this file will be overwritten by whatever is in
> - ~/.gitconfig. It is a good idea not to create this file if
> + `~/.gitconfig`. It is a good idea not to create this file if
> you sometimes use older versions of Git, as support for this
> file was added fairly recently.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-07-26 15:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-26 10:42 [PATCH] config doc: quote paths, fixing tilde-interpretation Ramkumar Ramachandra
2013-07-26 15:45 ` 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).