Re: [PATCHv2 6/9] hash-object: Replace stdin parsing OPT_BOOLEAN by OPT_COUNTUP
- From
Eric Sunshine <sunshine@sunshineco.com>
- Date
- Jul 31, 2013, 17:12 UTC
- Message-ID
- <CAPig+cSHmZcov5NRxkvRhdqB0XB72LW+K04f4ayfMq2VZrb8CA@mail.gmail.com>
- In-Reply-To
- <1375288117-1576-7-git-send-email-stefanbeller@googlemail.com>
On Wed, Jul 31, 2013 at 12:28 PM, Stefan Beller <stefanbeller@googlemail.com> wrote:
Show 12 quoted lines
> This task emerged from b04ba2bb (parse-options: deprecate OPT_BOOLEAN, > 2011-09-27). hash-object is a plumbing layer command, so better > not change the input/output behavior for now. > > Unfortunately we have these lines relying on the count up mechanism of > OPT_BOOLEAN: > > if (hashstdin > 1) > errstr = "Multiple --stdin arguments are not supported"; > > Maybe later, when the plumbing is refined (git 2.0?) we can drop that > errormessage and replace the OPT_COUNTUP by OPT_BOOL.
s/errormessage/error message/
> Signed-off-by: Stefan Beller <stefanbeller@googlemail.com>