* [PATCH] Documentation: make formatting more consistent
@ 2015-11-11 15:47 Андрей Рыбак
2015-11-11 21:41 ` Jeff King
0 siblings, 1 reply; 3+ messages in thread
From: Андрей Рыбак @ 2015-11-11 15:47 UTC (permalink / raw)
To: git; +Cc: Nguyen Thai Ngoc Duy, Jeff King
Documentation/git.txt: enclose all Environment Variables in single quotes.
Signed-off-by: Andrey Rybak <rybak.a.v@gmail.com>
---
Documentation/git.txt is not consistent in the way it stylizes mentions
of Environment Variables. Most of them are enclosed in single quotes,
some are enclosed in backticks, some are not enclosed.
Documentation/git.txt | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/Documentation/git.txt b/Documentation/git.txt
index c2e2a94..900272b 100644
--- a/Documentation/git.txt
+++ b/Documentation/git.txt
@@ -1056,7 +1056,7 @@ of clones and fetches.
cloning of shallow repositories.
See 'GIT_TRACE' for available trace output options.
-GIT_LITERAL_PATHSPECS::
+'GIT_LITERAL_PATHSPECS'::
Setting this variable to `1` will cause Git to treat all
pathspecs literally, rather than as glob patterns. For example,
running `GIT_LITERAL_PATHSPECS=1 git log -- '*.c'` will search
@@ -1065,15 +1065,15 @@ GIT_LITERAL_PATHSPECS::
literal paths to Git (e.g., paths previously given to you by
`git ls-tree`, `--raw` diff output, etc).
-GIT_GLOB_PATHSPECS::
+'GIT_GLOB_PATHSPECS'::
Setting this variable to `1` will cause Git to treat all
pathspecs as glob patterns (aka "glob" magic).
-GIT_NOGLOB_PATHSPECS::
+'GIT_NOGLOB_PATHSPECS'::
Setting this variable to `1` will cause Git to treat all
pathspecs as literal (aka "literal" magic).
-GIT_ICASE_PATHSPECS::
+'GIT_ICASE_PATHSPECS'::
Setting this variable to `1` will cause Git to treat all
pathspecs as case-insensitive.
@@ -1087,7 +1087,7 @@ GIT_ICASE_PATHSPECS::
variable when it is invoked as the top level command by the
end user, to be recorded in the body of the reflog.
-`GIT_REF_PARANOIA`::
+'GIT_REF_PARANOIA'::
If set to `1`, include broken or badly named refs when iterating
over lists of refs. In a normal, non-corrupted repository, this
does nothing. However, enabling it may help git to detect and
@@ -1098,7 +1098,7 @@ GIT_ICASE_PATHSPECS::
an operation has touched every ref (e.g., because you are
cloning a repository to make a backup).
-`GIT_ALLOW_PROTOCOL`::
+'GIT_ALLOW_PROTOCOL'::
If set, provide a colon-separated list of protocols which are
allowed to be used with fetch/push/clone. This is useful to
restrict recursive submodule initialization from an untrusted
--
2.5.3.windows.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Documentation: make formatting more consistent
2015-11-11 15:47 [PATCH] Documentation: make formatting more consistent Андрей Рыбак
@ 2015-11-11 21:41 ` Jeff King
2015-11-13 5:45 ` Jeff King
0 siblings, 1 reply; 3+ messages in thread
From: Jeff King @ 2015-11-11 21:41 UTC (permalink / raw)
To: Андрей Рыбак
Cc: git, Nguyen Thai Ngoc Duy
On Wed, Nov 11, 2015 at 06:47:25PM +0300, Андрей Рыбак wrote:
> Documentation/git.txt: enclose all Environment Variables in single quotes.
This tells "what", but we can already see that from the diff. The more
interesting part is "why". Later you say:
> Signed-off-by: Andrey Rybak <rybak.a.v@gmail.com>
> ---
> Documentation/git.txt is not consistent in the way it stylizes mentions
> of Environment Variables. Most of them are enclosed in single quotes,
> some are enclosed in backticks, some are not enclosed.
which I think is the more interesting bit, and should go into the commit
message (but parts after the "---" generally do not). I've grabbed it
manually in this case.
I know we've discussed this particular spot before, and I think there
may have been some disagreement about which style was the best. But
since clearly no patch came out of the last discussion, and since
an inconsistent set of styles is probably worse than consistent use of
any of the choices, this makes sense to me as an incremental step.
If we want to move to all-backticks (for example) later on, we can
easily do so (or we can leave this as the final state).
> diff --git a/Documentation/git.txt b/Documentation/git.txt
> index c2e2a94..900272b 100644
> --- a/Documentation/git.txt
> +++ b/Documentation/git.txt
> @@ -1056,7 +1056,7 @@ of clones and fetches.
> cloning of shallow repositories.
> See 'GIT_TRACE' for available trace output options.
Your patch seems whitespace-damaged (the leading tabs were converted to
spaces). It was pretty easy to fix up in this case, so I did so (i.e.,
no need to re-send), but please check your mailer settings.
Thanks.
-Peff
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Documentation: make formatting more consistent
2015-11-11 21:41 ` Jeff King
@ 2015-11-13 5:45 ` Jeff King
0 siblings, 0 replies; 3+ messages in thread
From: Jeff King @ 2015-11-13 5:45 UTC (permalink / raw)
To: Андрей Рыбак
Cc: git, Nguyen Thai Ngoc Duy
On Wed, Nov 11, 2015 at 04:41:06PM -0500, Jeff King wrote:
> I know we've discussed this particular spot before, and I think there
> may have been some disagreement about which style was the best. But
> since clearly no patch came out of the last discussion, and since
> an inconsistent set of styles is probably worse than consistent use of
> any of the choices, this makes sense to me as an incremental step.
>
> If we want to move to all-backticks (for example) later on, we can
> easily do so (or we can leave this as the final state).
Andrey helpfully dug up that thread off-list:
http://thread.gmane.org/gmane.comp.version-control.git/267990/
If we want to move to backticks, we probably want to also turn on
MAN_BOLD_LITERAL by default, or it's a step backwards for some folks.
As I was the person who suggested backticks back in that thread, and I
do not want to spend the time myself on figuring out if MAN_BOLD_LITERAL
is safe to use everywhere, I somewhat retract my suggestion.
I've queued this patch as-is for now, but I'd be happy to hear other
opinions, or if people want to dig into the MAN_BOLD_LITERAL thing.
-Peff
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-11-13 5:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-11 15:47 [PATCH] Documentation: make formatting more consistent Андрей Рыбак
2015-11-11 21:41 ` Jeff King
2015-11-13 5:45 ` Jeff King
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).