<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/libgit2.git/tests/object, branch cmn/commit-create-safe</title>
<subtitle>github.com: libgit2/libgit2.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/'/>
<entry>
<title>commit: safer commit creation with reference update</title>
<updated>2014-04-29T22:41:37+00:00</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>cmn@dwim.me</email>
</author>
<published>2014-04-09T12:08:22+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=217c029b54e8f1574ae6bc71c4b25533ecff3b6a'/>
<id>217c029b54e8f1574ae6bc71c4b25533ecff3b6a</id>
<content type='text'>
The current version of the commit creation and amend function are unsafe
to use when passing the update_ref parameter, as they do not check that
the reference at the moment of update points to what the user expects.

Make sure that we're moving history forward when we ask the library to
update the reference for us by checking that the first parent of the new
commit is the current value of the reference. We also make sure that the
ref we're updating hasn't moved between the read and the write.

Similarly, when amending a commit, make sure that the current tip of the
branch is the commit we're amending.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The current version of the commit creation and amend function are unsafe
to use when passing the update_ref parameter, as they do not check that
the reference at the moment of update points to what the user expects.

Make sure that we're moving history forward when we ask the library to
update the reference for us by checking that the first parent of the new
commit is the current value of the reference. We also make sure that the
ref we're updating hasn't moved between the read and the write.

Similarly, when amending a commit, make sure that the current tip of the
branch is the commit we're amending.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add failing test for git_object_short_id</title>
<updated>2014-03-10T18:35:14+00:00</updated>
<author>
<name>Jiri Pospisil</name>
<email>mekishizufu@gmail.com</email>
</author>
<published>2014-03-07T23:49:18+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=eb46fb2ba965f4e25946090dd172fcc3b20d93ee'/>
<id>eb46fb2ba965f4e25946090dd172fcc3b20d93ee</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add git_object_short_id API to get short id string</title>
<updated>2014-03-05T00:23:28+00:00</updated>
<author>
<name>Russell Belfer</name>
<email>rb@github.com</email>
</author>
<published>2014-03-05T00:23:28+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=13f7ecd7b9c5244441eeaae798c8657d1818ea7f'/>
<id>13f7ecd7b9c5244441eeaae798c8657d1818ea7f</id>
<content type='text'>
This finds a short id string that will unambiguously select the
given object, starting with the core.abbrev length (usually 7)
and growing until it is no longer ambiguous.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This finds a short id string that will unambiguously select the
given object, starting with the core.abbrev length (usually 7)
and growing until it is no longer ambiguous.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add git_commit_amend API</title>
<updated>2014-02-08T00:17:59+00:00</updated>
<author>
<name>Russell Belfer</name>
<email>rb@github.com</email>
</author>
<published>2014-01-17T18:45:11+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=80c29fe93e968fd73e861546e1a4cf33b514e3f6'/>
<id>80c29fe93e968fd73e861546e1a4cf33b514e3f6</id>
<content type='text'>
This adds an API to amend an existing commit, basically a shorthand
for creating a new commit filling in missing parameters from the
values of an existing commit.  As part of this, I also added a new
"sys" API to create a commit using a callback to get the parents.
This allowed me to rewrite all the other commit creation APIs so
that temporary allocations are no longer needed.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This adds an API to amend an existing commit, basically a shorthand
for creating a new commit filling in missing parameters from the
values of an existing commit.  As part of this, I also added a new
"sys" API to create a commit using a callback to get the parents.
This allowed me to rewrite all the other commit creation APIs so
that temporary allocations are no longer needed.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #2027 from libgit2/rb/only-windows-is-windows</title>
<updated>2014-02-05T21:07:46+00:00</updated>
<author>
<name>Ben Straub</name>
<email>bs@github.com</email>
</author>
<published>2014-02-05T21:07:46+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=629ba7f1059bdc149718570a8b2ac043c044d781'/>
<id>629ba7f1059bdc149718570a8b2ac043c044d781</id>
<content type='text'>
Some tests of paths that can't actually be written to disk</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Some tests of paths that can't actually be written to disk</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #2075 from libgit2/cmn/leftover-oid</title>
<updated>2014-01-27T17:39:36+00:00</updated>
<author>
<name>Vicent Marti</name>
<email>vicent@github.com</email>
</author>
<published>2014-01-27T17:39:36+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=93954245e081ff803028431c5da2c8a073512643'/>
<id>93954245e081ff803028431c5da2c8a073512643</id>
<content type='text'>
Leftover OID -&gt; ID changes</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Leftover OID -&gt; ID changes</pre>
</div>
</content>
</entry>
<entry>
<title>messsage: use git_buf in prettify()</title>
<updated>2014-01-27T03:44:06+00:00</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>cmn@dwim.me</email>
</author>
<published>2014-01-26T15:32:49+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=e1d7f0035e8683423271f1f63b57fd9c663e4fb0'/>
<id>e1d7f0035e8683423271f1f63b57fd9c663e4fb0</id>
<content type='text'>
A lot of the tests were checking for overflow, which we don't have
anymore, so we can remove them.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
A lot of the tests were checking for overflow, which we don't have
anymore, so we can remove them.
</pre>
</div>
</content>
</entry>
<entry>
<title>index: rename an entry's id to 'id'</title>
<updated>2014-01-25T07:15:44+00:00</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>cmn@dwim.me</email>
</author>
<published>2014-01-24T10:36:41+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=d541170c77b7ac738e2ffcdd04c838fb7cbbfb87'/>
<id>d541170c77b7ac738e2ffcdd04c838fb7cbbfb87</id>
<content type='text'>
This was not converted when we converted the rest, so do it now.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This was not converted when we converted the rest, so do it now.
</pre>
</div>
</content>
</entry>
<entry>
<title>Further tree building tests with hard paths</title>
<updated>2014-01-03T22:26:02+00:00</updated>
<author>
<name>Russell Belfer</name>
<email>rb@github.com</email>
</author>
<published>2014-01-03T22:26:02+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=79ccb921781dc61c4ed06e5c8c19c2ea1ba0a33a'/>
<id>79ccb921781dc61c4ed06e5c8c19c2ea1ba0a33a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Tree accessor tests with hard path names</title>
<updated>2014-01-03T20:14:22+00:00</updated>
<author>
<name>Russell Belfer</name>
<email>rb@github.com</email>
</author>
<published>2014-01-03T20:14:22+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=97bbf61e901ac9e0080394a9321dfc632b77fe99'/>
<id>97bbf61e901ac9e0080394a9321dfc632b77fe99</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
