<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/builtin.h, branch v2.2.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.2.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.2.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2014-10-13T20:55:27Z</updated>
<entry>
<title>trailer: add interpret-trailers command</title>
<updated>2014-10-13T20:55:27Z</updated>
<author>
<name>Christian Couder</name>
<email>chriscool@tuxfamily.org</email>
</author>
<published>2014-10-13T18:16:29Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6634f05454662b62e1f34766d3684b99fb53ad66'/>
<id>urn:sha1:6634f05454662b62e1f34766d3684b99fb53ad66</id>
<content type='text'>
This patch adds the "git interpret-trailers" command.
This command uses the previously added process_trailers()
function in trailer.c.

Signed-off-by: Christian Couder &lt;chriscool@tuxfamily.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>verify-commit: scriptable commit signature verification</title>
<updated>2014-06-23T22:50:31Z</updated>
<author>
<name>Michael J Gruber</name>
<email>git@drmicha.warpmail.net</email>
</author>
<published>2014-06-23T07:05:49Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d07b00b7f31d0cb6675b4bdba269ce7f087ddd24'/>
<id>urn:sha1:d07b00b7f31d0cb6675b4bdba269ce7f087ddd24</id>
<content type='text'>
Commit signatures can be verified using "git show -s --show-signature"
or the "%G?" pretty format and parsing the output, which is well suited
for user inspection, but not for scripting.

Provide a command "verify-commit" which is analogous to "verify-tag": It
returns 0 for good signatures and non-zero otherwise, has the gpg output
on stderr and (optionally) the commit object on stdout, sans the
signature, just like "verify-tag" does.

Signed-off-by: Michael J Gruber &lt;git@drmicha.warpmail.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>builtin/help.c: speed up is_git_command() by checking for builtin commands first</title>
<updated>2014-01-06T19:26:31Z</updated>
<author>
<name>Sebastian Schuberth</name>
<email>sschuberth@gmail.com</email>
</author>
<published>2014-01-02T16:17:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c6127fa3e25551e969d775b0332d37dc84db1969'/>
<id>urn:sha1:c6127fa3e25551e969d775b0332d37dc84db1969</id>
<content type='text'>
Since 2dce956 is_git_command() is a bit slow as it does file I/O in
the call to list_commands_in_dir(). Avoid the file I/O by adding an
early check for the builtin commands.

Signed-off-by: Sebastian Schuberth &lt;sschuberth@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>repo-config: remove deprecated alias for "git config"</title>
<updated>2013-11-12T22:10:17Z</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2013-11-10T15:47:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=eb8e7e1d9a946f439e0e35f2ada9efb434ea8b60'/>
<id>urn:sha1:eb8e7e1d9a946f439e0e35f2ada9efb434ea8b60</id>
<content type='text'>
The release notes for Git 1.5.4 say that "git repo-config" will be
removed in the next feature release.  Since Git 2.0 is nearly here,
remove it.

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>repack: rewrite the shell script in C</title>
<updated>2013-09-17T20:34:50Z</updated>
<author>
<name>Stefan Beller</name>
<email>stefanbeller@googlemail.com</email>
</author>
<published>2013-09-15T15:33:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a1bbc6c0176f1fa2d4aa571cc0183a1f0ff9b285'/>
<id>urn:sha1:a1bbc6c0176f1fa2d4aa571cc0183a1f0ff9b285</id>
<content type='text'>
The motivation of this patch is to get closer to a goal of being
able to have a core subset of git functionality built in to git.
That would mean

 * people on Windows could get a copy of at least the core parts
   of Git without having to install a Unix-style shell

 * people using git in on servers with chrooted environments
   do not need to worry about standard tools lacking for shell
   scripts.

This patch is meant to be mostly a literal translation of the
git-repack script; the intent is that later patches would start using
more library facilities, but this patch is meant to be as close to a
no-op as possible so it doesn't do that kind of thing.

Signed-off-by: Stefan Beller &lt;stefanbeller@googlemail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>builtin: add git-check-mailmap command</title>
<updated>2013-07-13T17:19:37Z</updated>
<author>
<name>Eric Sunshine</name>
<email>sunshine@sunshineco.com</email>
</author>
<published>2013-07-13T00:53:10Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=226ad3482ac506af0eadd04e732dda556fda80e4'/>
<id>urn:sha1:226ad3482ac506af0eadd04e732dda556fda80e4</id>
<content type='text'>
Introduce command check-mailmap, similar to check-attr and check-ignore,
which allows direct testing of .mailmap configuration.

As plumbing accessible to scripts and other porcelain, check-mailmap
publishes the stable, well-tested .mailmap functionality employed by
built-in Git commands.  Consequently, script authors need not
re-implement .mailmap functionality manually, thus avoiding potential
quirks and behavioral differences.

Signed-off-by: Eric Sunshine &lt;sunshine@sunshineco.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jh/libify-note-handling'</title>
<updated>2013-06-24T20:48:30Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2013-06-24T20:48:30Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=22d94a72b3c4fa7989c4827e84ebc364a200cd76'/>
<id>urn:sha1:22d94a72b3c4fa7989c4827e84ebc364a200cd76</id>
<content type='text'>
Make it possible to call into copy-notes API from the sequencer code.

* jh/libify-note-handling:
  Move create_notes_commit() from notes-merge.c into notes-utils.c
  Move copy_note_for_rewrite + friends from builtin/notes.c to notes-utils.c
  finish_copy_notes_for_rewrite(): Let caller provide commit message
</content>
</entry>
<entry>
<title>Move copy_note_for_rewrite + friends from builtin/notes.c to notes-utils.c</title>
<updated>2013-06-12T17:34:59Z</updated>
<author>
<name>Johan Herland</name>
<email>johan@herland.net</email>
</author>
<published>2013-06-12T00:13:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=49c2470400bbb695b953abeb4e6737be747317af'/>
<id>urn:sha1:49c2470400bbb695b953abeb4e6737be747317af</id>
<content type='text'>
This is a pure code movement of the machinery for copying notes to
rewritten objects. This code was located in builtin/notes.c for
historical reasons. In order to make it available to builtin/commit.c
it was declared in builtin.h. This was more of an accident of history
than a concious design, and we now want to make this machinery more
widely available.

Hence, this patch moves the code into the new notes-utils.[hc] files
which are included into libgit.a. Except for adjusting #includes
accordingly, this patch merely moves the relevant functions verbatim
into the new files.

Cc: Thomas Rast &lt;trast@inf.ethz.ch&gt;
Signed-off-by: Johan Herland &lt;johan@herland.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>finish_copy_notes_for_rewrite(): Let caller provide commit message</title>
<updated>2013-06-12T17:27:41Z</updated>
<author>
<name>Johan Herland</name>
<email>johan@herland.net</email>
</author>
<published>2013-06-12T00:12:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=80a14665b199a0ccacceb095e3a8bfc4f1e8645e'/>
<id>urn:sha1:80a14665b199a0ccacceb095e3a8bfc4f1e8645e</id>
<content type='text'>
When copying notes for a rewritten object, the resulting notes commit
would have the following hardcoded commit message:

  Notes added by 'git notes copy'

This is obviously bogus when the notes rewriting is performed by
'git commit --amend'.

Therefore, let the caller specify an appropriate notes commit message
instead of hardcoding it. The above message is used for 'git notes copy',
but when calling finish_copy_notes_for_rewrite() from builtin/commit.c,
we use the following message instead:

  Notes added by 'git commit --amend'

Cc: Thomas Rast &lt;trast@inf.ethz.ch&gt;
Signed-off-by: Johan Herland &lt;johan@herland.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>prune-packed: avoid implying "1" is DRY_RUN in prune_packed_objects()</title>
<updated>2013-05-28T16:20:54Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2013-05-27T11:18:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=af0b4a3b5973ebdf8fcdedcccbc2e8ddb93c8534'/>
<id>urn:sha1:af0b4a3b5973ebdf8fcdedcccbc2e8ddb93c8534</id>
<content type='text'>
Commit b60daf0 (Make git-prune-packed a bit more chatty. - 2007-01-12)
changes the meaning of prune_packed_objects()'s argument, from "dry
run or not dry run" to a bitmap.

It however forgot to update prune_packed_objects() caller in
builtin/prune.c to use new DRY_RUN macro. It's fine (for a long time!)
but there is a risk that someday someone may change the value of
DRY_RUN to something else and builtin/prune.c suddenly breaks. Avoid
that possibility.

While at there, change "opts == VERBOSE" to "opts &amp; VERBOSE" as there
is no obvious reason why we only be chatty when DRY_RUN is not set.

Signed-off-by: Nguyễn Thái Ngọc Duy &lt;pclouds@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
