<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/parse-options.h, 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-04-23T02:02:12Z</updated>
<entry>
<title>Fix typos / spelling in comments</title>
<updated>2009-04-23T02:02:12Z</updated>
<author>
<name>Mike Ralphson</name>
<email>mike@abacus.co.uk</email>
</author>
<published>2009-04-17T18:13:30Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3ea3c215c02dc4a4e7d0881c25b2223540960797'/>
<id>urn:sha1:3ea3c215c02dc4a4e7d0881c25b2223540960797</id>
<content type='text'>
Signed-off-by: Mike Ralphson &lt;mike@abacus.co.uk&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>parseopt: add PARSE_OPT_NO_INTERNAL_HELP</title>
<updated>2009-03-08T20:36:27Z</updated>
<author>
<name>René Scharfe</name>
<email>rene.scharfe@lsrfire.ath.cx</email>
</author>
<published>2009-03-08T18:15:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b92891f9783ae197bb84b90d8404ad08c3875fa1'/>
<id>urn:sha1:b92891f9783ae197bb84b90d8404ad08c3875fa1</id>
<content type='text'>
Add a parseopt flag, PARSE_OPT_NO_INTERNAL_HELP, that turns off internal
handling of -h, --help and --help-all.  This allows the implementation
of custom help option handlers or incremental parsers.

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: add PARSE_OPT_KEEP_UNKNOWN</title>
<updated>2009-03-08T20:36:09Z</updated>
<author>
<name>René Scharfe</name>
<email>rene.scharfe@lsrfire.ath.cx</email>
</author>
<published>2009-03-08T18:12:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b5ce3a54302cb6e29a02cd8fe4ea55eacea0a86e'/>
<id>urn:sha1:b5ce3a54302cb6e29a02cd8fe4ea55eacea0a86e</id>
<content type='text'>
Add a parseopt flag, PARSE_OPT_KEEP_UNKNOWN, that can be used to keep
unknown options in argv, similar to the existing KEEP flags.

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>Make opt_parse_with_commit() non-static</title>
<updated>2009-01-28T19:32:27Z</updated>
<author>
<name>Jake Goulding</name>
<email>goulding@vivisimo.com</email>
</author>
<published>2009-01-26T14:13:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=269defdf30a4beb48f230e36f20d00ee40348ab6'/>
<id>urn:sha1:269defdf30a4beb48f230e36f20d00ee40348ab6</id>
<content type='text'>
Moving opt_parse_with_commit() from branch to a common location, in
preparation for using it in tag. Rename it to match naming convention
of other option parsing functions.

Signed-off-by: Jake Goulding &lt;goulding@vivisimo.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Teach/Fix pull/fetch -q/-v options</title>
<updated>2008-11-15T01:18:32Z</updated>
<author>
<name>Tuncer Ayaz</name>
<email>tuncer.ayaz@gmail.com</email>
</author>
<published>2008-11-15T00:14:24Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=7f87aff22c0232a5ce327ea3d2923776936c97f4'/>
<id>urn:sha1:7f87aff22c0232a5ce327ea3d2923776936c97f4</id>
<content type='text'>
Implement git-pull --quiet and git-pull --verbose by
adding the options to git-pull and fixing verbosity
handling in git-fetch.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Sync with 1.5.6.5</title>
<updated>2008-08-06T20:50:48Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2008-08-06T20:50:42Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f44bc33c7283c19a86797ffdaafd22a19bbdfbd6'/>
<id>urn:sha1:f44bc33c7283c19a86797ffdaafd22a19bbdfbd6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Files given on the command line are relative to $cwd</title>
<updated>2008-08-06T20:38:18Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2008-08-06T18:43:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=dbd0f5c7692cce0c5fea535a06622b3a93df9598'/>
<id>urn:sha1:dbd0f5c7692cce0c5fea535a06622b3a93df9598</id>
<content type='text'>
When running "git commit -F file" and "git tag -F file" from a
subdirectory, we should take it as relative to the directory we started
from, not relative to the top-level directory.

This adds a helper function "parse_options_fix_filename()" to make it more
convenient to fix this class of issues.  Ideally, parse_options() should
support a new type of option, "OPT_FILENAME", to do this uniformly, but
this patch is meant to go to 'maint' to fix it minimally.

One thing to note is that value for "commit template file" that comes from
the command line is taken as relative to $cwd just like other parameters,
but when it comes from the configuration varilable 'commit.template', it
is taken as relative to the working tree root as before.  I think this
difference actually is sensible (not that I particularly think
commit.template itself is sensible).

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>parse-options: add PARSE_OPT_LASTARG_DEFAULT flag</title>
<updated>2008-07-09T08:33:24Z</updated>
<author>
<name>Pierre Habouzit</name>
<email>madcoder@debian.org</email>
</author>
<published>2008-07-08T10:34:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1cc6985ca7dd3aaab0617ec0fd00d4eb0b424465'/>
<id>urn:sha1:1cc6985ca7dd3aaab0617ec0fd00d4eb0b424465</id>
<content type='text'>
If you set this for a given option, and the optoin appears without an
argument on the command line, then the `defval' is used as its argument.

Note that this flag is meaningless in presence of OPTARG or NOARG flags.
(in the current implementation it will be ignored, but don't rely on it).

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-opt: add PARSE_OPT_KEEP_ARGV0 parser option.</title>
<updated>2008-06-30T21:51:13Z</updated>
<author>
<name>Pierre Habouzit</name>
<email>madcoder@debian.org</email>
</author>
<published>2008-06-23T22:31:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a32a4eaa36527ab1c9a999357f9edd5e04591a4a'/>
<id>urn:sha1:a32a4eaa36527ab1c9a999357f9edd5e04591a4a</id>
<content type='text'>
This way, argv[0] isn't clobbered when parse-options filters argv[].

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-opt: fake short strings for callers to believe in.</title>
<updated>2008-06-30T21:51:13Z</updated>
<author>
<name>Pierre Habouzit</name>
<email>madcoder@debian.org</email>
</author>
<published>2008-06-23T20:55:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=26141b5b60eea36f1d771312f6cae9e56dbbf760'/>
<id>urn:sha1:26141b5b60eea36f1d771312f6cae9e56dbbf760</id>
<content type='text'>
If we begin to parse -abc and that the parser knew about -a and -b, it
will fake a -c switch for the caller to deal with.

Of course in the case of -acb (supposing -c is not taking an argument) the
caller will have to be especially clever to do the same thing. We could
think about exposing an API to do so if it's really needed, but oh well...

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