git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 12, 2012, 19:35 UTC
Message-ID
<7vmwxj3vxx.fsf@alter.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.
Show 14 quoted lines
>  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
Previous: Manlio PerilloNext: Manlio Perillo
Message 2 of 4 in “Documentation/git: add missing info about --git-dir command-line option”
  1. Documentation/git: add missing info about --git-dir command-line optionManlio Perillo, Dec 12, 2012
  2. Junio C HamanoDec 12, 2012
  3. Manlio PerilloDec 13, 2012
  4. Manlio PerilloDec 14, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.