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: https://git.lorimer.id.au/gitweb.git/diff_plain/366b80bf0a84b607115bd4ffcd8e5ebfc7338442 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