From: Junio C Hamano Date: Wed, 4 Sep 2013 19:37:52 +0000 (-0700) Subject: Merge branch 'jc/parseopt-command-modes' X-Git-Tag: v1.8.5-rc0~179 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=v1.8.4-82-g366b80b;p=thirdparty%2Fgit.git Merge branch 'jc/parseopt-command-modes' Many commands use --dashed-option as a operation mode selector (e.g. "git tag --delete") that the user can use at most one (e.g. "git tag --delete --verify" is a nonsense) and you cannot negate (e.g. "git tag --no-delete" is a nonsense). Make it easier for users of parse_options() to enforce these restrictions. * jc/parseopt-command-modes: tag: use OPT_CMDMODE parse-options: add OPT_CMDMODE() --- 366b80bf0a84b607115bd4ffcd8e5ebfc7338442