Files
git-mirror/Documentation
René Scharfe 0d260f9a09 parseopt: prevent KEEP_UNKNOWN and STOP_AT_NON_OPTION from being used together
As suggested by Junio, disallow the flags PARSE_OPT_KEEP_UNKNOWN and
PARSE_OPT_STOP_AT_NON_OPTION to be turned on at the same time, as a
value of an unknown option could be mistakenly classified as a
non-option, stopping the parser early.  E.g.:

	git cmd --known --unknown value arg0 arg1

The parser should have stopped at "arg0", but it already stops at
"value".

This patch makes parse_options() die if the two flags are used in
combination.

Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2009-03-09 15:32:50 -07:00
..
2009-02-15 01:44:15 -08:00
2009-03-05 15:41:41 -08:00
2009-02-19 23:44:07 -08:00
2008-11-12 15:03:57 -08:00
2008-10-09 11:26:17 -07:00
2009-03-07 22:34:13 -08:00
2009-01-23 21:51:20 -08:00
2008-11-11 12:55:42 -08:00
2008-12-29 01:21:45 -08:00
2009-01-28 11:33:51 -08:00
2009-03-03 23:37:19 -08:00
2009-01-17 23:04:40 -08:00
2009-01-07 00:09:10 -08:00
2008-12-16 22:06:47 -08:00
2008-12-16 22:08:28 -08:00
2008-12-16 22:13:36 -08:00
2008-10-21 13:37:42 -07:00
2008-12-07 15:11:54 -08:00
2008-12-19 19:27:35 -08:00
2009-02-07 00:51:47 -08:00
2009-02-11 18:44:03 -08:00
2008-12-24 19:41:08 -08:00
2009-03-03 23:37:19 -08:00