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

Re: [PATCH v3] builtin/merge_recursive.c: Add an usage string and make use of it.

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 30, 2010, 06:04 UTC
Message-ID
<7vk4n8hc05.fsf@alter.siamese.dyndns.org>
In-Reply-To
<b58adc6cdfd6a5753fac1dde3371b3745b1f58b1.1283138840.git.tfransosi@gmail.com>
Thiago Farina <tfransosi@gmail.com> writes:
Show 9 quoted lines
> Since cmd_merge_recursive is used to handle four different commands we need
> the %s in the usage string, so the following example:
>
> $ git merge-subtree -h
>
> Will output:
> usage: git merge-subtree <base>... -- <head> <remote> ...
>
> Signed-off-by: Thiago Farina <tfransosi@gmail.com>
Hmm, why isn't this a single liner
> -		usagef("%s <base>... -- <head> <remote> ...", argv[0]);
> +		usagef("git %s <base>... -- <head> <remote> ...", argv[0]);
Previous: Thiago FarinaNext: Jonathan Nieder
Message 6 of 10 in “builtin/merge_recursive.c: Add a usage string and make use of it.”
  1. builtin/merge_recursive.c: Add a usage string and make use of it.Thiago Farina, Aug 29, 2010
  2. Jonathan NiederAug 29, 2010
  3. builtin/merge_recursive.c: Add an usage string and make use of it.Thiago Farina, Aug 29, 2010
  4. Jonathan NiederAug 30, 2010
  5. builtin/merge_recursive.c: Add an usage string and make use of it.Thiago Farina, Aug 30, 2010
  6. Junio C HamanoAug 30, 2010
  7. Jonathan NiederAug 31, 2010
  8. Thiago FarinaSep 1, 2010
  9. Thiago FarinaAug 30, 2010
  10. Thiago FarinaAug 29, 2010

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.