<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/libgit2.git/tests/commit, branch ethomson/odb_alloc_error</title>
<subtitle>github.com: libgit2/libgit2.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/'/>
<entry>
<title>signature: distinguish +0000 and -0000 UTC offsets</title>
<updated>2017-11-12T12:01:10+00:00</updated>
<author>
<name>Henry Kleynhans</name>
<email>hkleynhans@bloomberg.net</email>
</author>
<published>2017-11-12T10:56:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=f063dafb1da60625da76a1ea6975a121969cb630'/>
<id>f063dafb1da60625da76a1ea6975a121969cb630</id>
<content type='text'>
Git considers '-0000' a valid offset for signature lines.  They need to
be treated as _not_ equal to a '+0000' signature offset.  Parsing a
signature line stores the offset in a signed integer which does not
distinguish between `+0` and `-0`.

This patch adds an additional flag `sign` to the `git_time` in the
`signature` object which is populated with the sign of the offset.  In
addition to exposing this information to the user, this information is
also used to compare signatures.

/cc @pks-t @ethomson
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Git considers '-0000' a valid offset for signature lines.  They need to
be treated as _not_ equal to a '+0000' signature offset.  Parsing a
signature line stores the offset in a signed integer which does not
distinguish between `+0` and `-0`.

This patch adds an additional flag `sign` to the `git_time` in the
`signature` object which is populated with the sign of the offset.  In
addition to exposing this information to the user, this information is
also used to compare signatures.

/cc @pks-t @ethomson
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix initial commit test</title>
<updated>2016-05-04T18:15:56+00:00</updated>
<author>
<name>John Haley</name>
<email>johnh@axosoft.com</email>
</author>
<published>2016-05-04T18:14:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=5785ae9b5e315a2aca64ee4bac1b31bdab84c657'/>
<id>5785ae9b5e315a2aca64ee4bac1b31bdab84c657</id>
<content type='text'>
`test_commit_commit__create_initial_commit_parent_not_current` was not correctly 
testing that `HEAD` was not changed. Now we grab the oid that it was pointing to
before the call to `git_commit_create` and the oid that it's pointing to afterwards
and compare those.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
`test_commit_commit__create_initial_commit_parent_not_current` was not correctly 
testing that `HEAD` was not changed. Now we grab the oid that it was pointing to
before the call to `git_commit_create` and the oid that it's pointing to afterwards
and compare those.</pre>
</div>
</content>
</entry>
<entry>
<title>Add tests for creating an initial commit</title>
<updated>2016-05-03T20:32:32+00:00</updated>
<author>
<name>John Haley</name>
<email>johnh@axosoft.com</email>
</author>
<published>2016-05-03T20:32:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=4f22ccb9793d765d09032898e913690d088d6518'/>
<id>4f22ccb9793d765d09032898e913690d088d6518</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Introduce `git_signature_from_buffer`</title>
<updated>2016-04-28T16:47:14+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@github.com</email>
</author>
<published>2016-04-28T16:47:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=d383c39b3bc9a2bd5e68882db9a12e64ccd262a4'/>
<id>d383c39b3bc9a2bd5e68882db9a12e64ccd262a4</id>
<content type='text'>
Allow users to construct a signature from the type of signature
lines that actually appear in commits.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Allow users to construct a signature from the type of signature
lines that actually appear in commits.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #3673 from libgit2/cmn/commit-with-signature</title>
<updated>2016-03-17T13:57:56+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@github.com</email>
</author>
<published>2016-03-17T13:57:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=ba3493228cd16136620757b03a4df01f8caf5057'/>
<id>ba3493228cd16136620757b03a4df01f8caf5057</id>
<content type='text'>
commit: add function to attach a signature to a commit</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit: add function to attach a signature to a commit</pre>
</div>
</content>
</entry>
<entry>
<title>commit: fix extraction of single-line signatures</title>
<updated>2016-03-17T09:48:06+00:00</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>carlosmn@github.com</email>
</author>
<published>2016-03-17T09:45:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=bf804d407e8d1fcff42e1113aa286270ae8925c0'/>
<id>bf804d407e8d1fcff42e1113aa286270ae8925c0</id>
<content type='text'>
The function to extract signatures suffers from a similar bug to the
header field finding one by having an unecessary line feed check as a
break condition of its loop.

Fix that and add a test for this single-line signature situation.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The function to extract signatures suffers from a similar bug to the
header field finding one by having an unecessary line feed check as a
break condition of its loop.

Fix that and add a test for this single-line signature situation.
</pre>
</div>
</content>
</entry>
<entry>
<title>commit: add function to attach a signature to a commit</title>
<updated>2016-03-15T11:55:03+00:00</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>cmn@dwim.me</email>
</author>
<published>2016-03-10T09:53:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=02d61a3b66a6e5f5bc0154d780daaf5f7b71ccd9'/>
<id>02d61a3b66a6e5f5bc0154d780daaf5f7b71ccd9</id>
<content type='text'>
In combination with the function which creates a commit into a buffer,
this allows us to more easily create signed commits.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In combination with the function which creates a commit into a buffer,
this allows us to more easily create signed commits.
</pre>
</div>
</content>
</entry>
<entry>
<title>commit: split creating the commit and writing it out</title>
<updated>2016-03-08T12:11:49+00:00</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>cmn@dwim.me</email>
</author>
<published>2016-03-03T21:56:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=47cb42da5ad2e0af7946faf053c7ea4fd92ec6da'/>
<id>47cb42da5ad2e0af7946faf053c7ea4fd92ec6da</id>
<content type='text'>
Sometimes you want to create a commit but not write it out to the
objectdb immediately. For these cases, provide a new function to
retrieve the buffer instead of having to go through the db.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Sometimes you want to create a commit but not write it out to the
objectdb immediately. For these cases, provide a new function to
retrieve the buffer instead of having to go through the db.
</pre>
</div>
</content>
</entry>
<entry>
<title>turn on strict object validation by default</title>
<updated>2016-02-28T23:59:43+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@github.com</email>
</author>
<published>2016-02-28T20:51:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=f2dddf52c041ff2f9185bdb320ddccad1523a2bf'/>
<id>f2dddf52c041ff2f9185bdb320ddccad1523a2bf</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>git_commit: validate tree and parent ids</title>
<updated>2016-02-28T17:38:39+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@github.com</email>
</author>
<published>2016-02-23T18:34:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=ef63bab306a2a85d15e62bfb73f49ae11f2b5df6'/>
<id>ef63bab306a2a85d15e62bfb73f49ae11f2b5df6</id>
<content type='text'>
When `GIT_OPT_ENABLE_STRICT_OBJECT_CREATION` is turned on, validate
the tree and parent ids given to commit creation functions.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When `GIT_OPT_ENABLE_STRICT_OBJECT_CREATION` is turned on, validate
the tree and parent ids given to commit creation functions.
</pre>
</div>
</content>
</entry>
</feed>
