<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/builtin/commit-tree.c, 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>2014-12-29T17:32:45Z</updated>
<entry>
<title>commit-tree: simplify parsing of option -S using skip_prefix()</title>
<updated>2014-12-29T17:32:45Z</updated>
<author>
<name>René Scharfe</name>
<email>l.s.r@web.de</email>
</author>
<published>2014-12-24T00:18:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8547e0f17697affd24d7a185245f0442af246f40'/>
<id>urn:sha1:8547e0f17697affd24d7a185245f0442af246f40</id>
<content type='text'>
Signed-off-by: Rene Scharfe &lt;l.s.r@web.de&gt;
Reviewed-by: Jonathan Nieder &lt;jrnieder@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>commit_tree: take a pointer/len pair rather than a const strbuf</title>
<updated>2014-06-12T17:29:41Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2014-06-10T21:36:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3ffefb54c0515308ceafb6ba071567d9fd379498'/>
<id>urn:sha1:3ffefb54c0515308ceafb6ba071567d9fd379498</id>
<content type='text'>
While strbufs are pretty common throughout our code, it is
more flexible for functions to take a pointer/len pair than
a strbuf. It's easy to turn a strbuf into such a pair (by
dereferencing its members), but less easy to go the other
way (you can strbuf_attach, but that has implications about
memory ownership).

This patch teaches commit_tree (and its associated callers
and sub-functions) to take such a pair for the commit
message rather than a strbuf.  This makes passing the buffer
around slightly more verbose, but means we can get rid of
some dangerous strbuf_attach calls in the next patch.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>commit-tree: add and document --no-gpg-sign</title>
<updated>2014-02-24T22:51:35Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2013-12-13T23:40:35Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=55ca3f99ae4895605a348322dd2fc50f2065f508'/>
<id>urn:sha1:55ca3f99ae4895605a348322dd2fc50f2065f508</id>
<content type='text'>
Document how to override commit.gpgsign configuration that is set to
true per "git commit" invocation (parse-options machinery lets us
say "--no-gpg-sign" to do so).

"git commit-tree" does not use parse-options, so manually add the
corresponding option for now.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>commit-tree: add the commit.gpgsign option to sign all commits</title>
<updated>2014-02-24T22:50:56Z</updated>
<author>
<name>Nicolas Vigier</name>
<email>boklm@mars-attacks.org</email>
</author>
<published>2013-11-04T23:14:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d95bfb12b87a0be9666f806683e198df9738d0e7'/>
<id>urn:sha1:d95bfb12b87a0be9666f806683e198df9738d0e7</id>
<content type='text'>
If you want to GPG sign all your commits, you have to add the -S option
all the time. The commit.gpgsign config option allows to sign all
commits automatically.

Signed-off-by: Nicolas Vigier &lt;boklm@mars-attacks.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>commit-tree: document -S option consistently</title>
<updated>2013-03-25T22:01:22Z</updated>
<author>
<name>Brad King</name>
<email>brad.king@kitware.com</email>
</author>
<published>2013-03-25T21:00:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=df45cb3ea31eee8ad1c763d1b8a35da87366017f'/>
<id>urn:sha1:df45cb3ea31eee8ad1c763d1b8a35da87366017f</id>
<content type='text'>
Commit ba3c69a9 (commit: teach --gpg-sign option, 2011-10-05) added the
-S option but documented it in the command usage without indicating that
the value is optional and forgot to mention it in the manpage.  Later
commit 098bbdc3 (Add -S, --gpg-sign option to manpage of "git commit",
2012-10-21) documented the option in the porcelain manpage.

Use wording from the porcelain manpage to document the option in the
plumbing manpage.  Also update the commit-tree usage summary to indicate
that the -S value is optional to be consistent with the manpage and with
the implementation.

Signed-off-by: Brad King &lt;brad.king@kitware.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'kk/maint-commit-tree'</title>
<updated>2012-07-24T03:55:54Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2012-07-24T03:55:53Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a7fe78a8953a1c4d8abcb36f28133078a778b8d2'/>
<id>urn:sha1:a7fe78a8953a1c4d8abcb36f28133078a778b8d2</id>
<content type='text'>
* kk/maint-commit-tree:
  Revert "git-commit-tree(1): update synopsis"
  commit-tree: resurrect command line parsing updates
</content>
</entry>
<entry>
<title>Merge branch 'kk/maint-1.7.9-commit-tree' into kk/maint-commit-tree</title>
<updated>2012-07-17T20:10:49Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2012-07-17T20:10:49Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=53bcf22afa3a7d02de39679e85b6d1be08331f8c'/>
<id>urn:sha1:53bcf22afa3a7d02de39679e85b6d1be08331f8c</id>
<content type='text'>
* kk/maint-1.7.9-commit-tree:
  commit-tree: resurrect command line parsing updates
</content>
</entry>
<entry>
<title>commit-tree: resurrect command line parsing updates</title>
<updated>2012-07-17T20:05:13Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2012-07-17T20:05:13Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9aab1b511892b7af86c037b49ff80ec5b4b2c191'/>
<id>urn:sha1:9aab1b511892b7af86c037b49ff80ec5b4b2c191</id>
<content type='text'>
79a9312 (commit-tree: update the command line parsing, 2011-11-09)
updated the command line parser to understand the usual "flags first
and then non-flag arguments" order, in addition to the original and
a bit unusual "tree comes first and then zero or more -p &lt;parent&gt;".

Unfortunately, ba3c69a (commit: teach --gpg-sign option, 2011-10-05)
broke it by mistake.  Resurrect it, and protect the feature with a
test from future breakages.

Noticed by Keshav Kini
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>commit-tree: the command wants a tree and commits</title>
<updated>2012-07-09T23:42:22Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2012-07-03T17:03:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=75f5ac04a2984fcf1e4d167047bfb63c5f385d44'/>
<id>urn:sha1:75f5ac04a2984fcf1e4d167047bfb63c5f385d44</id>
<content type='text'>
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jc/show-sig'</title>
<updated>2012-01-06T20:44:07Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2012-01-06T20:44:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=5de89d3abfca98b0dfd0280d28576940c913d60d'/>
<id>urn:sha1:5de89d3abfca98b0dfd0280d28576940c913d60d</id>
<content type='text'>
* jc/show-sig:
  log --show-signature: reword the common two-head merge case
  log-tree: show mergetag in log --show-signature output
  log-tree.c: small refactor in show_signature()
  commit --amend -S: strip existing gpgsig headers
  verify_signed_buffer: fix stale comment
  gpg-interface: allow use of a custom GPG binary
  pretty: %G[?GS] placeholders
  test "commit -S" and "log --show-signature"
  log: --show-signature
  commit: teach --gpg-sign option

Conflicts:
	builtin/commit-tree.c
	builtin/commit.c
	builtin/merge.c
	notes-cache.c
	pretty.c
</content>
</entry>
</feed>
