<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/libgit2.git/tests/refs/races.c, branch ethomson/test_https</title>
<subtitle>github.com: libgit2/libgit2.git
</subtitle>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/libgit2.git/'/>
<entry>
<title>tests: clean up refs::races zero oid test</title>
<updated>2021-05-18T10:52:51+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@edwardthomson.com</email>
</author>
<published>2021-05-18T10:52:51+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/libgit2.git/commit/?id=1b1e541dd18d9b8548cf8de13a5fc0cc9bd49394'/>
<id>1b1e541dd18d9b8548cf8de13a5fc0cc9bd49394</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>refs: test git_reference_create_matching failure for zero oid</title>
<updated>2021-05-16T10:09:44+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@edwardthomson.com</email>
</author>
<published>2021-05-16T10:09:44+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/libgit2.git/commit/?id=cf323cb9d94022e0301b5bb3bebdf2f6a5b4e338'/>
<id>cf323cb9d94022e0301b5bb3bebdf2f6a5b4e338</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>git_reference_create_matching: Treat all-zero OID as "must be absent"</title>
<updated>2021-04-20T13:24:25+00:00</updated>
<author>
<name>David Turner</name>
<email>novalis@novalis.org</email>
</author>
<published>2021-04-15T01:52:36+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/libgit2.git/commit/?id=95b7a6398fe499fb37e49a528292c9ab2e1e8fc9'/>
<id>95b7a6398fe499fb37e49a528292c9ab2e1e8fc9</id>
<content type='text'>
This is pretty useful in avoiding races: I want to create a ref only if
it doesn't already exist.  I can't check first because of TOCTOU -- by
the time I finish the check, someone else might have already created
the ref.  And I can't take a lock because then I can't do the create,
since the create expects to take the lock.

The semantics are inspired by git update-ref, which allows an all-zero old
value to mean that the ref must not exist.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is pretty useful in avoiding races: I want to create a ref only if
it doesn't already exist.  I can't check first because of TOCTOU -- by
the time I finish the check, someone else might have already created
the ref.  And I can't take a lock because then I can't do the create,
since the create expects to take the lock.

The semantics are inspired by git update-ref, which allows an all-zero old
value to mean that the ref must not exist.
</pre>
</div>
</content>
</entry>
<entry>
<title>refs: refuse to delete HEAD</title>
<updated>2020-01-15T21:55:58+00:00</updated>
<author>
<name>Josh Bleecher Snyder</name>
<email>josharian@gmail.com</email>
</author>
<published>2020-01-15T21:31:21+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/libgit2.git/commit/?id=852c83ee44d6d53137f12443c9f82f70bbabbadc'/>
<id>852c83ee44d6d53137f12443c9f82f70bbabbadc</id>
<content type='text'>
This requires adding a new symbolic ref to the testrepo fixture.
Some of the existing tests attempt to delete HEAD, expecting a different failure. Introduce and use a non-HEAD symbolic ref instead.
Adjust a few other tests as needed.

Fixes #5357</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This requires adding a new symbolic ref to the testrepo fixture.
Some of the existing tests attempt to delete HEAD, expecting a different failure. Introduce and use a non-HEAD symbolic ref instead.
Adjust a few other tests as needed.

Fixes #5357</pre>
</div>
</content>
</entry>
<entry>
<title>Remove the signature from ref-modifying functions</title>
<updated>2015-03-03T13:40:50+00:00</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>cmn@dwim.me</email>
</author>
<published>2015-01-07T12:23:05+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/libgit2.git/commit/?id=659cf2029f322ea876d663d85783b48945227e8f'/>
<id>659cf2029f322ea876d663d85783b48945227e8f</id>
<content type='text'>
The signature for the reflog is not something which changes
dynamically. Almost all uses will be NULL, since we want for the
repository's default identity to be used, making it noise.

In order to allow for changing the identity, we instead provide
git_repository_set_ident() and git_repository_ident() which allow a user
to override the choice of signature.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The signature for the reflog is not something which changes
dynamically. Almost all uses will be NULL, since we want for the
repository's default identity to be used, making it noise.

In order to allow for changing the identity, we instead provide
git_repository_set_ident() and git_repository_ident() which allow a user
to override the choice of signature.
</pre>
</div>
</content>
</entry>
<entry>
<title>refs: move current_id before the reflog parameters</title>
<updated>2014-02-10T13:52:28+00:00</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>cmn@dwim.me</email>
</author>
<published>2014-02-10T13:52:28+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/libgit2.git/commit/?id=15284a2c5a9185171bfd3acf18b6ab38a032c7af'/>
<id>15284a2c5a9185171bfd3acf18b6ab38a032c7af</id>
<content type='text'>
Keep the reflog parameters as the last two, as they're the optional
parameters.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Keep the reflog parameters as the last two, as they're the optional
parameters.
</pre>
</div>
</content>
</entry>
<entry>
<title>refs: catch cases where the ref type has changed</title>
<updated>2014-02-05T11:07:57+00:00</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>cmn@dwim.me</email>
</author>
<published>2014-02-05T10:47:33+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/libgit2.git/commit/?id=b7ae71ecf263047c427be099a3e1536cca17dc5d'/>
<id>b7ae71ecf263047c427be099a3e1536cca17dc5d</id>
<content type='text'>
If the type of the on-disk reference has changed, the old value
comparison should fail.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If the type of the on-disk reference has changed, the old value
comparison should fail.
</pre>
</div>
</content>
</entry>
<entry>
<title>refs: check the ref's old value when deleting</title>
<updated>2014-02-05T11:07:57+00:00</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>cmn@dwim.me</email>
</author>
<published>2014-02-05T10:21:14+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/libgit2.git/commit/?id=f44fd59ed7b3533bf9cbaa07969a8a57475a77aa'/>
<id>f44fd59ed7b3533bf9cbaa07969a8a57475a77aa</id>
<content type='text'>
Recognize when the reference has changed since we loaded it.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Recognize when the reference has changed since we loaded it.
</pre>
</div>
</content>
</entry>
<entry>
<title>refs: bring conditional symbolic updates to the frontend</title>
<updated>2014-02-05T11:07:57+00:00</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>cmn@dwim.me</email>
</author>
<published>2014-02-05T09:19:17+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/libgit2.git/commit/?id=878fb66f5765115eff34213cfc8dd04b8a56b2a5'/>
<id>878fb66f5765115eff34213cfc8dd04b8a56b2a5</id>
<content type='text'>
Bring the race detection goodness to symbolic references as well.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Bring the race detection goodness to symbolic references as well.
</pre>
</div>
</content>
</entry>
<entry>
<title>refs: add tests for conditional updates</title>
<updated>2014-02-05T11:07:56+00:00</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>cmn@dwim.me</email>
</author>
<published>2014-02-04T20:40:22+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/libgit2.git/commit/?id=d6236cf662ebd4ba8ef4902c81a19bbfd92847f9'/>
<id>d6236cf662ebd4ba8ef4902c81a19bbfd92847f9</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
