1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-11-17 14:34:49 +01:00
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
api-allocation-growing.txt
api-builtin.txt api-builtin.txt: update and fix typo 2008-06-22 18:14:17 -07:00
api-decorate.txt
api-diff.txt Correct name of diff_flush() in API documentation 2008-02-28 13:35:09 -08:00
api-directory-listing.txt
api-gitattributes.txt
api-grep.txt
api-hash.txt
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
api-index-skel.txt
api-index.sh
api-lockfile.txt close_lock_file(): new function in the lockfile API 2008-01-16 15:35:03 -08:00
api-object-access.txt
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
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
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
api-xdiff-interface.txt
pack-format.txt Add description of OFS_DELTA to the pack format description 2008-04-06 17:22:46 -07:00
pack-heuristics.txt
pack-protocol.txt
racy-git.txt Fix typos in documentation 2008-12-09 21:39:23 -08:00
send-pack-pipeline.txt
shallow.txt
trivial-merge.txt