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

Re: [PATCH] git-rebase.sh: Update USAGE string (No. 1)

From
Jakub Narebski <jnareb@gmail.com>
Date
Feb 3, 2008, 23:52 UTC
Message-ID
<m3lk6161jo.fsf@localhost.localdomain>
In-Reply-To
<ir15399p.fsf@blue.sea.net>
Jari Aalto <jari.aalto@cante.net> writes:
> Subject: Re: [PATCH] git-rebase.sh: Update USAGE string (No. 1)

What's with the "(No. 1)" here? If you want to add some comment that should *not* be part of commit message, put it in brackets beside PATCH, for example "[PATCH/RFC]", "[PATCH (resend)]", "[PATCH (amend)]", "[PATCH v2]" etc.

> Present the options in -s|--long (short, long) order.
> Mention merge and new whitespace option.
> 
> ed-off-by: Jari Aalto <jari.aalto AT cante.net>
I guess that it is copy'n'paste error, and it should be
Signed-off-by: Jari Aalto <jari.aalto@cante.net>
>  
> -USAGE='[--interactive | -i] [-v] [--onto <newbase>] <upstream> [<branch>]'
> +USAGE='[-i|--interactive] [-v|--verbose]
> +[--whitespace={nowarn|warn|error|error-all|strip}]

I would say "[--whitespace=<option>]" or "[--whitespace=<action>]" instead of introducing yet not agreed upon notation (this has the advantage of shortening synopisis, which should be short IMHO).

Besides here the mutually exclusive options are naturelly delimited,
so you can say just (I think):
   [--whitespace=nowarn|warn|error|error-all|strip]
> +[-m|--merge] [--onto <newbase>] <upstream> [<branch>]'
> +
-- 
Jakub Narebski
Poland
ShadeHawk on #git
Previous: Johannes SchindelinNext: Jari Aalto
Message 5 of 20 in “git-rebase.sh: Update USAGE string”
  1. git-rebase.sh: Update USAGE stringJari Aalto, Feb 3, 2008
  2. Jakub NarebskiFeb 3, 2008
  3. git-rebase.sh: Update USAGE string (No. 1)Jari Aalto, Feb 3, 2008
  4. Johannes SchindelinFeb 3, 2008
  5. Jakub NarebskiFeb 3, 2008
  6. Jari AaltoFeb 4, 2008
  7. Johannes SchindelinFeb 4, 2008
  8. Junio C HamanoFeb 4, 2008
  9. Jakub NarebskiFeb 4, 2008
  10. Mike HommeyFeb 4, 2008
  11. Jakub NarebskiFeb 4, 2008
  12. Junio C HamanoFeb 4, 2008
  13. git-rebase.sh: Update USAGE stringJari Aalto, Feb 4, 2008
  14. しらいしななこFeb 4, 2008
  15. rebase -i and --whitespace, was Re: [PATCH] git-rebase.sh: Update USAGE string (No. 1)Johannes Schindelin, Feb 4, 2008
  16. Jakub NarebskiFeb 4, 2008
  17. Johannes SchindelinFeb 4, 2008
  18. Junio C HamanoFeb 5, 2008
  19. Johannes SchindelinFeb 6, 2008
  20. git-rebase.sh: Update USAGE stringJari Aalto, Feb 4, 2008

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.