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

Re: [PATCH] Documentation/gitcli.txt: dashed forms not allowed anymore

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 1, 2009, 21:00 UTC
Message-ID
<7vabaaivwo.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<20090101144045.GC21154@genesis.frugalware.org>
Miklos Vajna <vmiklos@frugalware.org> writes:
Show 8 quoted lines
> On Thu, Jan 01, 2009 at 12:39:39PM +0800, jidanni@jidanni.org wrote:
>> - * it's preferred to use the non dashed form of git commands, which means that
>> -   you should prefer `"git foo"` to `"git-foo"`.
>> + * it's required to use the non dashed form of git commands, which means that
>> +   you must use `"git foo"` and not `"git-foo"`. The latter no longer works.
>
> I would append: "unless you add the output of `git --exec-path` to your
> PATH."
I actually wouldn't.

There needs to be a description about use of PATH=$(git --exec-path):$PATH if you choose to use the dashed forms in your script. Don't we already have that elsewhere more basic in the documentation set?

The quoted part of the documentation talks about the syntax and convention used while scripting, and what it wants to say with the sentence is that the dashless form is preferred, even with PATH=$(git --exec-path):$PATH (iow, it was preferred before 1.6.0, and it still is preferred with the $PATH adjustments after 1.6.0).

I think it muddies the point of the list if you talk about the necessity of $PATH adjustment, which is a irrelevant detail.

Previous: Miklos Vajna
Message 3 of 3 in “Documentation/gitcli.txt: dashed forms not allowed anymore”
  1. Documentation/gitcli.txt: dashed forms not allowed anymorejidanni@jidanni.org, Jan 1, 2009
  2. Miklos VajnaJan 1, 2009
  3. Junio C HamanoJan 1, 2009

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.