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

Re: [PATCH] Remove '< >' from [<options>] since it's not necessary.

From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
Sep 21, 2009, 06:50 UTC
Message-ID
<vpq7hvssse2.fsf@bauges.imag.fr>
In-Reply-To
<auto-000020523806@sci.utah.edu>
tom fogal <tfogal@alumni.unh.edu> writes:
Show 8 quoted lines
> Thiago Farina <tfransosi@gmail.com> writes:
>> -	"git log [<options>] [<since>..<until>] [[--] <path>...]\n"
>> +	"git log [options] [<since>..<until>] [[--] <path>...]\n"
>>  	"   or: git show [options] <object>...";
>
> To me, "<blah>" implies to me that the author meant, "something which
> is sort-of `blah'-ish but is not actually the string literal, `blah'",
> whereas `blah' means, "the string literal, `blah'."

Strictly speaking, you're right, but in the particular case of [options], it's rather well established that it means "one or several options", and not the litteral "option". In any case, we should be consistant:

Documentation$ grep -n '\[<options>\]' *.txt git-log.txt:11:'git log' [<options>] [<since>..<until>] [[\--] <path>...] git-stash.txt:11:'git stash' list [<options>] git-stash.txt:67:list [<options>]:: Documentation$ grep -n '\[options\]' *.txt git-annotate.txt:10:'git annotate' [options] file [revision] gitcli.txt:84:usage: git-describe [options] <committish>* git-cvsserver.txt:25:'git cvsserver' [options] [pserver|server] [<directory> ...] git-fast-export.txt:11:'git fast-export [options]' | 'git fast-import' git-fast-import.txt:11:frontend | 'git fast-import' [options] git-rebase.txt:11:'git rebase' [-i | --interactive] [options] [--onto <newbase>] git-rebase.txt:13:'git rebase' [-i | --interactive] [options] --onto <newbase> git-rev-parse.txt:405:some-command [options] <args>... git-send-email.txt:11:'git send-email' [options] <file|directory|rev-list options>... git-show.txt:11:'git show' [options] <object>... git-svn.txt:10:'git svn' <command> [options] [arguments]

=> either get rid of the 3 occurences of [<options>], not just one, or get rid of all the [options]. My vote goes for the first.

-- Matthieu Moy http://www-verimag.imag.fr/~moy/

Previous: tom fogal
Message 4 of 4 in “Remove '< >' from [<options>] since it's not necessary.”
  1. Remove '< >' from [<options>] since it's not necessary.Thiago Farina, Sep 20, 2009
  2. tom fogalSep 20, 2009
  3. tom fogalSep 20, 2009
  4. Matthieu MoySep 21, 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.