Re: [PATCH] doc: fix a typo inside `--bare` section

2 messages, 2 authors, 2020-06-07 · open the first message on its own page

Re: [PATCH] doc: fix a typo inside `--bare` section

From: Junio C Hamano <hidden>
Date: 2020-06-07 17:01:47

"Angel via GitGitGadget" [off-list ref] writes:
From: Mark Williams <redacted>

Add a word `variable` and a `$` sign before variable's
name in `--bare` argument section. Without this word someone
might be confused.

Signed-off-by: Mark Williams <redacted>
---
    doc: fix a typo inside --bare section
    
    doc: fix a typo inside --bare section
    
    Add a word variable and a $ sign before variable's name in --bare 
    argument section. Without this word someone might be confused.
A quick and dirty

  $ git grep 'GIT_[A-Z]*[^A-Za-z0-9] .*environment' Documentation/

tells us that adding "environment variable" is probably the right
thing to do, but we should not add the variable dereference '$' in
front (and fix some that do spell $GIT_PAGER etc. to lose '$').

In shell, $V is a notation to always name the value in the variable,
and it is clearer to refer to the variable itself without the '$'
sign.  '$V' means "the value that currently is in the variable V".

	V=newvalue
	W="old value of $V"

This is unlike C where using a variable as lvalue on the left hand
side of assignment does not need different spelling as the variable
is used as rvalue, e.g.

	variable = newvalue;
	another_variable = 2 * variable;
-Create a bare repository. If `GIT_DIR` environment is not set, it is set to the
-current working directory.
+Create a bare repository. If the `$GIT_DIR` environment variable is not set, it
+is set to the current working directory.
 
 --object-format=<format>::
 

base-commit: 20514004ddf1a3528de8933bc32f284e175e1012

Re: [PATCH] doc: fix a typo inside `--bare` section

From: F8ER <hidden>
Date: 2020-06-07 18:54:53

Dear Junio C Hamano,

Thanks!

On 6/7/2020 7:01 PM, Junio C Hamano wrote:
tells us that adding "environment variable" is probably the right
thing to do,
What should I do next? I mean, how to achieve this? This is the first 
time me doing that.
but we should not add the variable dereference '$' in
front (and fix some that do spell $GIT_PAGER etc. to lose '$').
Should I remove it from commit, if so, how to?


Best regards,

Mark
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help