<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/parse-options.h, branch v2.6.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.6.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.6.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2015-08-12T21:09:57Z</updated>
<entry>
<title>Merge branch 'sb/parse-options-codeformat'</title>
<updated>2015-08-12T21:09:57Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-08-12T21:09:57Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=535efaf6beb039b9f3b6f6c0f2b526eb8d02f99b'/>
<id>urn:sha1:535efaf6beb039b9f3b6f6c0f2b526eb8d02f99b</id>
<content type='text'>
* sb/parse-options-codeformat:
  parse-options: align curly braces for all options
</content>
</entry>
<entry>
<title>Merge branch 'pt/pull-builtin'</title>
<updated>2015-08-03T18:01:17Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-08-03T18:01:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=5f02274e4c4506b923b510a24da7991656f4db14'/>
<id>urn:sha1:5f02274e4c4506b923b510a24da7991656f4db14</id>
<content type='text'>
Reimplement 'git pull' in C.

* pt/pull-builtin:
  pull: remove redirection to git-pull.sh
  pull --rebase: error on no merge candidate cases
  pull --rebase: exit early when the working directory is dirty
  pull: configure --rebase via branch.&lt;name&gt;.rebase or pull.rebase
  pull: teach git pull about --rebase
  pull: set reflog message
  pull: implement pulling into an unborn branch
  pull: fast-forward working tree if head is updated
  pull: check if in unresolved merge state
  pull: support pull.ff config
  pull: error on no merge candidates
  pull: pass git-fetch's options to git-fetch
  pull: pass git-merge's options to git-merge
  pull: pass verbosity, --progress flags to fetch and merge
  pull: implement fetch + merge
  pull: implement skeletal builtin pull
  argv-array: implement argv_array_pushv()
  parse-options-cb: implement parse_opt_passthru_argv()
  parse-options-cb: implement parse_opt_passthru()
</content>
</entry>
<entry>
<title>parse-options: align curly braces for all options</title>
<updated>2015-07-29T20:31:51Z</updated>
<author>
<name>Stefan Beller</name>
<email>sbeller@google.com</email>
</author>
<published>2015-07-29T20:18:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=14691e382774d459d0103feb57c07a58f9221e4a'/>
<id>urn:sha1:14691e382774d459d0103feb57c07a58f9221e4a</id>
<content type='text'>
Signed-off-by: Stefan Beller &lt;sbeller@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>parse-options: move unsigned long option parsing out of pack-objects.c</title>
<updated>2015-06-22T22:07:21Z</updated>
<author>
<name>Charles Bailey</name>
<email>cbailey32@bloomberg.net</email>
</author>
<published>2015-06-21T18:25:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2a514ed8058e35841d3d7b05a898991b83e5eaf0'/>
<id>urn:sha1:2a514ed8058e35841d3d7b05a898991b83e5eaf0</id>
<content type='text'>
The unsigned long option parsing (including 'k'/'m'/'g' suffix
parsing) is more widely applicable.  Add support for OPT_MAGNITUDE
to parse-options.h and change pack-objects.c use this support.

The error behavior on parse errors follows that of OPT_INTEGER.  The
name of the option that failed to parse is reported with a brief
message describing the expect format for the option argument and
then the full usage message for the command invoked.

This differs from the previous behavior for OPT_ULONG used in
pack-objects for --max-pack-size and --window-memory which used to
display the value supplied in the error message and did not display
the full usage message.

Signed-off-by: Charles Bailey &lt;cbailey32@bloomberg.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>parse-options-cb: implement parse_opt_passthru_argv()</title>
<updated>2015-06-15T19:40:49Z</updated>
<author>
<name>Paul Tan</name>
<email>pyokagan@gmail.com</email>
</author>
<published>2015-06-14T08:41:49Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ffad85c599307441323de565c3fafde227e04a8f'/>
<id>urn:sha1:ffad85c599307441323de565c3fafde227e04a8f</id>
<content type='text'>
Certain git commands, such as git-pull, are simply wrappers around other
git commands like git-fetch, git-merge and git-rebase. As such, these
wrapper commands will typically need to "pass through" command-line
options of the commands they wrap.

Implement the parse_opt_passthru_argv() parse-options callback, which
will reconstruct all the provided command-line options into an
argv_array, such that it can be passed to another git command. This is
useful for passing command-line options that can be specified multiple
times.

Helped-by: Stefan Beller &lt;sbeller@google.com&gt;
Signed-off-by: Paul Tan &lt;pyokagan@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>parse-options-cb: implement parse_opt_passthru()</title>
<updated>2015-06-15T19:40:49Z</updated>
<author>
<name>Paul Tan</name>
<email>pyokagan@gmail.com</email>
</author>
<published>2015-06-14T08:41:48Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6b3ee18dc5c620d7cb4324e009339b5ca9ac488c'/>
<id>urn:sha1:6b3ee18dc5c620d7cb4324e009339b5ca9ac488c</id>
<content type='text'>
Certain git commands, such as git-pull, are simply wrappers around other
git commands like git-fetch, git-merge and git-rebase. As such, these
wrapper commands will typically need to "pass through" command-line
options of the commands they wrap.

Implement the parse_opt_passthru() parse-options callback, which will
reconstruct the command-line option into an char* string, such that it
can be passed to another git command.

Helped-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Helped-by: Junio C Hamano &lt;gitster@pobox.com&gt;
Helped-by: Stefan Beller &lt;sbeller@google.com&gt;
Signed-off-by: Paul Tan &lt;pyokagan@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'iu/fix-parse-options-h-comment'</title>
<updated>2015-04-14T17:33:46Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-04-14T17:33:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1d058dc6e5bdc6832906aa3237157787cbccda8a'/>
<id>urn:sha1:1d058dc6e5bdc6832906aa3237157787cbccda8a</id>
<content type='text'>
* iu/fix-parse-options-h-comment:
  parse-options.h: OPTION_{BIT,SET_INT} do not store pointer to defval
</content>
</entry>
<entry>
<title>parse-options.h: OPTION_{BIT,SET_INT} do not store pointer to defval</title>
<updated>2015-03-30T02:56:12Z</updated>
<author>
<name>Ivan Ukhov</name>
<email>ivan.ukhov@gmail.com</email>
</author>
<published>2015-03-29T08:32:55Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d3c0811467153d3bf1732fef94530e5b0e7cdddf'/>
<id>urn:sha1:d3c0811467153d3bf1732fef94530e5b0e7cdddf</id>
<content type='text'>
When 20d1c652 (parse-options: remove unused OPT_SET_PTR, 2014-03-30)
removed OPT_SET_PTR, the comment in the header that describes what
the option did to defval field was left behind by mistake.  Remove
it.

Signed-off-by: Ivan Ukhov &lt;ivan.ukhov@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jk/squelch-compiler-warning-from-funny-error-macro'</title>
<updated>2014-06-06T18:21:36Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-06-06T18:21:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=610a14f643b1dfe188e938492425cc88d96025a8'/>
<id>urn:sha1:610a14f643b1dfe188e938492425cc88d96025a8</id>
<content type='text'>
* jk/squelch-compiler-warning-from-funny-error-macro:
  let clang use the constant-return error() macro
  inline constant return from error() function
</content>
</entry>
<entry>
<title>let clang use the constant-return error() macro</title>
<updated>2014-05-06T22:30:40Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2014-05-06T15:17:50Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ff0a80af724e81dbad6a269847523e39c2e7e479'/>
<id>urn:sha1:ff0a80af724e81dbad6a269847523e39c2e7e479</id>
<content type='text'>
Commit e208f9c converted error() into a macro to make its
constant return value more apparent to calling code.  Commit
5ded807 prevents us using this macro with clang, since
clang's -Wunused-value is smart enough to realize that the
constant "-1" is useless in some contexts.

However, since the last commit puts the constant behind an
inline function call, this is enough to prevent the
-Wunused-value warning on both modern gcc and clang. So we
can now re-enable the macro when compiling with clang.

Tested with clang 3.3, 3.4, and 3.5.

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