# [PATCH] Documentation/git: add missing info about --git-dir command-line option

4 messages from 2012-12-12 to 2012-12-14. Participants: Manlio Perillo, Junio C Hamano.
Thread: https://gitlist.dev/t/32323

## Manlio Perillo, 2012-12-12 17:04

Subject: [PATCH] Documentation/git: add missing info about --git-dir command-line option
Message-ID: <50C8B92F.8020408@gmail.com>
URL: https://gitlist.dev/e/50C8B92F.8020408%40gmail.com

```
The Documentation/git.txt file, in the GIT_DIR environment variable
section, did not mentioned that this value can also be set using the
--git-dir command line option.
---
 Documentation/git.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/git.txt b/Documentation/git.txt
index e643683..60db292 100644
--- a/Documentation/git.txt
+++ b/Documentation/git.txt
@@ -650,6 +650,7 @@ git so take care if using Cogito etc.
 	If the 'GIT_DIR' environment variable is set then it
 	specifies a path to use instead of the default `.git`
 	for the base of the repository.
+	The '--git-dir' command-line option also sets this value.
  'GIT_WORK_TREE'::
 	Set the path to the working tree.  The value will not be
-- 
1.8.0.1.347.gf94c325.dirty

```

## Junio C Hamano, 2012-12-12 19:35

Subject: Re: [PATCH] Documentation/git: add missing info about --git-dir command-line option
Message-ID: <7vmwxj3vxx.fsf@alter.siamese.dyndns.org>
URL: https://gitlist.dev/e/7vmwxj3vxx.fsf%40alter.siamese.dyndns.org
In-Reply-To: <50C8B92F.8020408@gmail.com>

```
Manlio Perillo <manlio.perillo@gmail.com> writes:

> The Documentation/git.txt file, in the GIT_DIR environment variable
> section, did not mentioned that this value can also be set using the
> --git-dir command line option.
> ---

s/mentioned/mention/; Also it may help to say

	Unlike other environment variables (e.g. GIT_WORK_TREE,
	GIT_NAMESPACE),

somewhere in the description.

Please sign-off your patch (see Documentation/SubmittingPatches).

Thanks.

>  Documentation/git.txt | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/Documentation/git.txt b/Documentation/git.txt
> index e643683..60db292 100644
> --- a/Documentation/git.txt
> +++ b/Documentation/git.txt
> @@ -650,6 +650,7 @@ git so take care if using Cogito etc.
>  	If the 'GIT_DIR' environment variable is set then it
>  	specifies a path to use instead of the default `.git`
>  	for the base of the repository.
> +	The '--git-dir' command-line option also sets this value.
>   'GIT_WORK_TREE'::
>  	Set the path to the working tree.  The value will not be

```

## Manlio Perillo, 2012-12-13 18:00

Subject: Re: [PATCH] Documentation/git: add missing info about --git-dir command-line option
Message-ID: <50CA17D6.2050700@gmail.com>
URL: https://gitlist.dev/e/50CA17D6.2050700%40gmail.com
In-Reply-To: <7vmwxj3vxx.fsf@alter.siamese.dyndns.org>

```
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Il 12/12/2012 20:35, Junio C Hamano ha scritto:
> Manlio Perillo <manlio.perillo@gmail.com> writes:
> 
>> The Documentation/git.txt file, in the GIT_DIR environment variable
>> section, did not mentioned that this value can also be set using the
>> --git-dir command line option.
>> ---
> 
> s/mentioned/mention/; Also it may help to say
> 
> 	Unlike other environment variables (e.g. GIT_WORK_TREE,
> 	GIT_NAMESPACE),
> 
> somewhere in the description.
> 
> Please sign-off your patch (see Documentation/SubmittingPatches).
> 
> Thanks.
> 

Thanks to you.

I have sent the updated patch, let me know if is ok.



Manlio Perillo
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlDKF9YACgkQscQJ24LbaUQyHwCcDiaJjFZ5vwHzxjHyhEBCyFdd
GnIAn34MjoWmQOcLKJEl/EpE0ImeQBLG
=yrux
-----END PGP SIGNATURE-----

```

## Manlio Perillo, 2012-12-14 17:26

Subject: Re: [PATCH] Documentation/git: add missing info about --git-dir command-line option
Message-ID: <50CB6143.4040505@gmail.com>
URL: https://gitlist.dev/e/50CB6143.4040505%40gmail.com
In-Reply-To: <7vmwxj3vxx.fsf@alter.siamese.dyndns.org>

```
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Il 12/12/2012 20:35, Junio C Hamano ha scritto:
> Manlio Perillo <manlio.perillo@gmail.com> writes:
> 
>> The Documentation/git.txt file, in the GIT_DIR environment variable
>> section, did not mentioned that this value can also be set using the
>> --git-dir command line option.
>> ---
> 
> s/mentioned/mention/; Also it may help to say
> 
> 	Unlike other environment variables (e.g. GIT_WORK_TREE,
> 	GIT_NAMESPACE),
> 

I'm sorry, I just copied this text "as is" (I'm lazy) in the commit
message failing to notice the use of the tab character.

When I checked the patch email message, my editor rendered the tab
character as a single space...


That's the reason why I have all my editors configured to never ever use
tabs.


Manlio Perillo
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlDLYUMACgkQscQJ24LbaUTUPACcDhufXkawZZPBV0p/af1GFu1D
/BcAnjPARpeTi4EdyM/3wV0eI9U9Fu51
=rSfl
-----END PGP SIGNATURE-----

```
