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
Štěpán Němec <stepnem@gmail.com>
Date
Oct 24, 2010, 15:15 UTC
Message-ID
<87tykbpqpu.fsf@gmail.com>
In-Reply-To
<1287840825-6491-1-git-send-email-ydirson@altern.org>
Yann Dirson <ydirson@altern.org> writes:
Show 19 quoted lines
> Signed-off-by: Yann Dirson <ydirson@altern.org>
> ---
>  builtin/diff.c |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/builtin/diff.c b/builtin/diff.c
> index a43d326..8736225 100644
> --- a/builtin/diff.c
> +++ b/builtin/diff.c
> @@ -22,7 +22,8 @@ struct blobinfo {
>  };
>  
>  static const char builtin_diff_usage[] =
> -"git diff <options> <rev>{0,2} -- <path>*";
> +"git diff [<common diff options>] <commit>{0,2} -- <path>*"
> +COMMON_DIFF_OPTIONS_HELP;
>  
>  static void stuff_change(struct diff_options *opt,
>  			 unsigned old_mode, unsigned new_mode,

When at it, could you please also use [<path>...] instead of <path>*? That's what the man pages and other usage strings use.

Štěpán
Previous: Yann Dirson
Message 6 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.