Re: [PATCH v2] git-commit.txt: Correct option alternatives

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jeff King
Date: Saturday, June 7, 2008 - 9:23 pm

On Sat, Jun 07, 2008 at 08:36:54PM -0500, Jon Loeliger wrote:


$ sed -ne '/sticked/,/^$/p' Documentation/gitcli.txt
 * when a command line option takes an argument, use the 'sticked' form.  In
   other words, write `"git foo -oArg"` instead of `"git foo -o Arg"` for short
   options, and `"git foo --long-opt=Arg"` instead of `"git foo --long-opt Arg"`
   for long options.  An option that takes optional option-argument must be
   written in the 'sticked' form.

'sticked' form must be used:
----------------------------
$ git describe --abbrev HEAD     # correct
$ git describe --abbrev=10 HEAD  # correct
$ git describe --abbrev 10 HEAD  # NOT WHAT YOU MEANT
----------------------------

-Peff
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/2] git-commit.txt: Correct option alternatives, Stephan Beyer, (Fri Jun 6, 5:24 pm)
Re: [PATCH 1/2] git-commit.txt: Correct option alternatives, Christian Couder, (Fri Jun 6, 8:34 pm)
[PATCH v2] git-commit.txt: Correct option alternatives, Stephan Beyer, (Sat Jun 7, 4:06 am)
Re: [PATCH v2] git-commit.txt: Correct option alternatives, Jeff King, (Sat Jun 7, 9:23 pm)