git/Documentation/technical
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
..
.gitignore Start preparing the API documents. 2007-12-14 22:29:38 -08:00
api-allocation-growing.txt Start preparing the API documents. 2007-12-14 22:29:38 -08:00
api-builtin.txt api-builtin.txt: update and fix typo 2008-06-22 18:14:17 -07:00
api-decorate.txt Start preparing the API documents. 2007-12-14 22:29:38 -08:00
api-diff.txt Correct name of diff_flush() in API documentation 2008-02-28 13:35:09 -08:00
api-directory-listing.txt Start preparing the API documents. 2007-12-14 22:29:38 -08:00
api-gitattributes.txt Start preparing the API documents. 2007-12-14 22:29:38 -08:00
api-grep.txt Start preparing the API documents. 2007-12-14 22:29:38 -08:00
api-hash.txt Start preparing the API documents. 2007-12-14 22:29:38 -08:00
api-history-graph.txt log --graph --left-right: show left/right information in place of '*' 2008-05-25 12:06:52 -07:00
api-in-core-index.txt Start preparing the API documents. 2007-12-14 22:29:38 -08:00
api-index-skel.txt Start preparing the API documents. 2007-12-14 22:29:38 -08:00
api-index.sh Start preparing the API documents. 2007-12-14 22:29:38 -08:00
api-lockfile.txt close_lock_file(): new function in the lockfile API 2008-01-16 15:35:03 -08:00
api-object-access.txt Start preparing the API documents. 2007-12-14 22:29:38 -08:00
api-parse-options.txt parseopt: prevent KEEP_UNKNOWN and STOP_AT_NON_OPTION from being used together 2009-03-09 15:32:50 -07:00
api-quote.txt Start preparing the API documents. 2007-12-14 22:29:38 -08:00
api-remote.txt API documentation for remote.h 2008-02-19 00:27:42 -08:00
api-revision-walking.txt Revision walking documentation: document most important functions 2008-05-31 14:32:56 -07:00
api-run-command.txt run_hook(): allow more than 9 hook arguments 2009-01-17 17:57:15 -08:00
api-setup.txt Start preparing the API documents. 2007-12-14 22:29:38 -08:00
api-strbuf.txt Documentation: Typo / spelling / formatting fixes 2009-03-03 21:43:19 -08:00
api-string-list.txt Fix two leftovers from path_list->string_list 2008-07-22 15:28:22 -07:00
api-tree-walking.txt Start preparing the API documents. 2007-12-14 22:29:38 -08:00
api-xdiff-interface.txt Start preparing the API documents. 2007-12-14 22:29:38 -08:00
pack-format.txt Add description of OFS_DELTA to the pack format description 2008-04-06 17:22:46 -07:00
pack-heuristics.txt Assorted typo fixes 2006-07-09 02:42:41 -07:00
pack-protocol.txt Documentation: fix missing links to git(7) 2005-12-12 23:55:09 -08:00
racy-git.txt Fix typos in documentation 2008-12-09 21:39:23 -08:00
send-pack-pipeline.txt Update send-pack pipeline documentation. 2007-01-01 14:35:16 -08:00
shallow.txt Provide some technical documentation for shallow clones 2007-03-19 22:19:29 -07:00
trivial-merge.txt [PATCH] Finish documenting trivial merge rules 2005-09-24 22:05:55 -07:00