<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/test-parse-options.c, 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>2008-08-14T01:11:44Z</updated>
<entry>
<title>test-parse-options: use appropriate cast in length_callback</title>
<updated>2008-08-14T01:11:44Z</updated>
<author>
<name>Brandon Casey</name>
<email>casey@nrlssc.navy.mil</email>
</author>
<published>2008-08-14T00:48:57Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8caa3acf3a5f660b6b4c01fe23c05094140795d6'/>
<id>urn:sha1:8caa3acf3a5f660b6b4c01fe23c05094140795d6</id>
<content type='text'>
OPT_CALLBACK() is passed &amp;integer which is now an "int" rather than
"unsigned long". Update the length_callback function.

Signed-off-by: Brandon Casey &lt;casey@nrlssc.navy.mil&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Fix test-parse-options "integer" test</title>
<updated>2008-07-30T19:53:45Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2008-07-30T19:53:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c4aca9ccda51badb672ab70099863072d1567267'/>
<id>urn:sha1:c4aca9ccda51badb672ab70099863072d1567267</id>
<content type='text'>
OPT_INTEGER() works on an integer, not on an unsigned long.  On a big
endian architecture with long larger than int, integer test gives bogus
results because of this bug.

Reported by H.Merijn Brand in HP-UX 64-bit environment.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Extend parse-options test suite</title>
<updated>2008-06-23T01:15:18Z</updated>
<author>
<name>Stephan Beyer</name>
<email>s-beyer@gmx.net</email>
</author>
<published>2008-06-22T15:04:26Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=010a2dacc1acf3305e399ef1eb2e620110b95d5e'/>
<id>urn:sha1:010a2dacc1acf3305e399ef1eb2e620110b95d5e</id>
<content type='text'>
This patch serves two purposes:
 1. test-parse-option.c should be a more complete
    example for the parse-options API, and
 2. there have been no tests for OPT_CALLBACK,
    OPT_DATE, OPT_BIT, OPT_SET_INT and OPT_SET_PTR
    before.

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>parse-options: new option type to treat an option-like parameter as an argument.</title>
<updated>2008-03-02T22:07:47Z</updated>
<author>
<name>Pierre Habouzit</name>
<email>madcoder@debian.org</email>
</author>
<published>2008-03-02T10:35:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=580d5bffdea56dfae1e745dbda94f326bb161274'/>
<id>urn:sha1:580d5bffdea56dfae1e745dbda94f326bb161274</id>
<content type='text'>
This is meant to be used to keep --not and --all during revision parsing.

Signed-off-by: Pierre Habouzit &lt;madcoder@debian.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>parse-options: catch likely typo in presense of aggregated options.</title>
<updated>2008-01-26T18:53:31Z</updated>
<author>
<name>Pierre Habouzit</name>
<email>madcoder@debian.org</email>
</author>
<published>2008-01-26T11:26:57Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3a9f0f41db87e197708f84aeb2487bc983f99c9c'/>
<id>urn:sha1:3a9f0f41db87e197708f84aeb2487bc983f99c9c</id>
<content type='text'>
If options are aggregated, and that the whole token is an exact
prefix of a long option that is longer than 2 letters, reject
it.  This is to prevent a common typo:

	$ git commit -amend

to get interpreted as "commit all with message 'end'".

The typo check isn't performed if there is no aggregation,
because the stuck form is the recommended one.  If we have `-o`
being a valid short option that takes an argument, and --option
a long one, then we _MUST_ accept -option as "'o' option with
argument 'ption'", which is our official recommended form.

Signed-off-by: Pierre Habouzit &lt;madcoder@debian.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>parse-options: abbreviation engine fix.</title>
<updated>2007-11-06T06:46:45Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>Johannes.Schindelin@gmx.de</email>
</author>
<published>2007-11-05T13:15:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=243e0614e0f8783599b20106b50eee56d0a17332'/>
<id>urn:sha1:243e0614e0f8783599b20106b50eee56d0a17332</id>
<content type='text'>
When an option could be an ambiguous abbreviation of two options, the code
used to error out.  Even if an exact match would have occured later.

Test and original patch by Pierre Habouzit.

Signed-off-by: Johannes Schindelin &lt;Johannes.Schindelin@gmx.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Add tests for parse-options.c</title>
<updated>2007-10-30T04:03:30Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>Johannes.Schindelin@gmx.de</email>
</author>
<published>2007-10-13T16:34:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=beb474379315654566e78eea8a0e39c66ebcbb8a'/>
<id>urn:sha1:beb474379315654566e78eea8a0e39c66ebcbb8a</id>
<content type='text'>
Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Shawn O. Pearce &lt;spearce@spearce.org&gt;
</content>
</entry>
</feed>
