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

Re: [PATCH 2/2] ls-tree: migrate to parse-options

From
Thiago Farina <tfransosi@gmail.com>
Date
Nov 18, 2009, 23:10 UTC
Message-ID
<a4c8a6d00911181510y66338536wb4b51b0df4788e76@mail.gmail.com>
In-Reply-To
<7veinvcw7w.fsf@alter.siamese.dyndns.org>
On Wed, Nov 18, 2009 at 8:19 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 18 quoted lines
> Stephen Boyd <bebarino@gmail.com> writes:
>
>> Junio C Hamano wrote:
>>>
>>> @@ -24,7 +24,7 @@ static int chomp_prefix;
>>>  static const char *ls_tree_prefix;
>>>   static const  char * const ls_tree_usage[] = {
>>> -    "git ls-tree [-d] [-r] [-t] [-l | --long] [-z] [--name-only] [--name-status] [--full-name] [--full-tree] [--abbrev[=<n>]] <tree-ish> [path...]",
>>> +    "git ls-tree <options> <tree-ish> [path...]",
>>>      NULL
>>>  };
>>>
>>
>> Is it [<options>] or [<options>...] or <options> or even
>> <options>... though?
>
> Output from "git grep -e '<option' -- '*.c'" indicates that it
> should be "[<options>]"; thanks for spotting.

$ git grep -e '<option' -- '*.c' | wc -l 4

$ git grep -e '\[options' -- '*.c' | wc -l 42

$ git grep -e '\[<options' -- '*.c' | wc -l 2

Shouldn't be just "[options]"?
Previous: Junio C Hamano
Message 10 of 10 in “Migrate ls-tree to parse-opts”
  1. 0/2 Migrate ls-tree to parse-optsStephen Boyd, Nov 14, 2009
  2. 1/2 t3101: test more ls-tree optionsStephen Boyd, Nov 14, 2009
  3. Junio C HamanoNov 17, 2009
  4. Stephen BoydNov 17, 2009
  5. 2/2 ls-tree: migrate to parse-optionsStephen Boyd, Nov 14, 2009
  6. Junio C HamanoNov 17, 2009
  7. Stephen BoydNov 17, 2009
  8. Stephen BoydNov 17, 2009
  9. Junio C HamanoNov 18, 2009
  10. Thiago FarinaNov 18, 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.