Re: [PATCH] parse-options: remove OPT_BOOLEAN
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Dec 8, 2013, 22:23 UTC
- Message-ID
- <20131208222352.GA9108@google.com>
- In-Reply-To
- <1386392573-27367-1-git-send-email-pclouds@gmail.com>
Hi,
Nguyễn Thái Ngọc Duy wrote:
> After a86a8b9 (sb/parseopt-boolean-removal), the deprecated > OPT_BOOLEAN is not used anywhere except by OPT__* macros.
Yeah, I noticed the same thing too recently.
[...]
> All OPT__DRY_RUN call > sites have been checked and they look safe for OPT_BOOL.
This is the only functional change from the patch. A repeated --dry-run that behaves differently from --dry-run would be very weird, and a quick check of OPT__DRY_RUN uses in pu confirms that with current callers the patch is a no-op (except in the weird case that someone overflows an "int" with a very long -nnnnnnn... commandline).
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Thanks.