<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/Documentation/technical/api-parse-options.txt, branch v1.6.3</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v1.6.3</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v1.6.3'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2009-03-09T22:32:50Z</updated>
<entry>
<title>parseopt: prevent KEEP_UNKNOWN and STOP_AT_NON_OPTION from being used together</title>
<updated>2009-03-09T22:32:50Z</updated>
<author>
<name>René Scharfe</name>
<email>rene.scharfe@lsrfire.ath.cx</email>
</author>
<published>2009-03-09T20:57:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0d260f9a09a2febeb86fdada7224d271a76d2e3c'/>
<id>urn:sha1:0d260f9a09a2febeb86fdada7224d271a76d2e3c</id>
<content type='text'>
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 &lt;rene.scharfe@lsrfire.ath.cx&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>parseopt: document KEEP_ARGV0, KEEP_UNKNOWN, NO_INTERNAL_HELP</title>
<updated>2009-03-09T22:24:16Z</updated>
<author>
<name>René Scharfe</name>
<email>rene.scharfe@lsrfire.ath.cx</email>
</author>
<published>2009-03-09T20:26:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9ad7e6ea24739c298d0a9660121de6df0502915a'/>
<id>urn:sha1:9ad7e6ea24739c298d0a9660121de6df0502915a</id>
<content type='text'>
Signed-off-by: Rene Scharfe &lt;rene.scharfe@lsrfire.ath.cx&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>api-parse-options.txt: Introduce documentation for parse options API</title>
<updated>2008-06-23T01:14:58Z</updated>
<author>
<name>Stephan Beyer</name>
<email>s-beyer@gmx.net</email>
</author>
<published>2008-06-22T15:04:25Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=224712e521c6d4f740045affa4d1ee1454db10d4'/>
<id>urn:sha1:224712e521c6d4f740045affa4d1ee1454db10d4</id>
<content type='text'>
Add some documentation of basics, macros and callback
implementation of the parse-options API.

Signed-off-by: Stephan Beyer &lt;s-beyer@gmx.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Start preparing the API documents.</title>
<updated>2007-12-15T06:29:38Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2007-11-25T07:48:04Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=530e741c726a612d78de21957d531dd2215483b4'/>
<id>urn:sha1:530e741c726a612d78de21957d531dd2215483b4</id>
<content type='text'>
Most of them are still stubs, but the procedure to build the HTML
documentation, maintaining the index and installing the end product are
there.

I placed names of people who are likely to know the most about the topic
in the stub files, so that volunteers will know whom to ask questions as
needed.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
