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

Re: [PATCH] Sync "git diff -h" with the manual, show options summary.

From
YDYann Dirson <ydirson@free.fr>
Date
Oct 23, 2010, 18:44 UTC
Message-ID
<20101023184425.GP4983@home.lan>
In-Reply-To
<vpqvd4sn5ud.fsf@bauges.imag.fr>
On Sat, Oct 23, 2010 at 08:04:26PM +0200, Matthieu Moy wrote:
Show 10 quoted lines
> Thiago Farina <tfransosi@gmail.com> writes:
> 
> > On Sat, Oct 23, 2010 at 11:33 AM, Yann Dirson <ydirson@altern.org> wrote:
> >>  static const char builtin_diff_usage[] =
> >> -"git diff <options> <rev>{0,2} -- <path>*";
> >> +"git diff [<common diff options>] <commit>{0,2} -- <path>*"
> >
> > Why change from <options> to <common diff options> ?
> 
> Because this is what the man page says I guess.

Yes, as well as the usage strings for diff-tree, diff-files, and diff-index. "diff" was just the only one to be different here, and if we want to keep "<options>" for conciseness here, we also probably want to change it everywhere (or maybe "<diff options>" for the diff-* commands ?) - after all, this is just a short usage string, not the reference page.

Previous: Matthieu MoyNext: Štěpán Němec
Message 5 of 6 in “Sync "git diff -h" with the manual, show options summary.”
  1. Sync "git diff -h" with the manual, show options summary.Yann Dirson, Oct 23, 2010
  2. Yann DirsonOct 23, 2010
  3. Thiago FarinaOct 23, 2010
  4. Matthieu MoyOct 23, 2010
  5. Yann DirsonOct 23, 2010
  6. Štěpán NěmecOct 24, 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.