<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/refs.h, branch v2.35.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.35.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.35.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2021-12-23T00:24:14Z</updated>
<entry>
<title>reflog + refs-backend: move "verbose" out of the backend</title>
<updated>2021-12-23T00:24:14Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2021-12-22T04:06:48Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=fcd2c3d9d854712e7fbb8e7be5a809029aab0a84'/>
<id>urn:sha1:fcd2c3d9d854712e7fbb8e7be5a809029aab0a84</id>
<content type='text'>
Move the handling of the "verbose" flag entirely out of
"refs/files-backend.c" and into "builtin/reflog.c". This allows the
backend to stop knowing about the EXPIRE_REFLOGS_VERBOSE flag.

The expire_reflog_ent() function shouldn't need to deal with the
implementation detail of whether or not we're emitting verbose output,
by doing this the --verbose output becomes backend-agnostic, so
reftable will get the same output.

I think the output is rather bad currently, and should e.g. be
implemented with some better future mode of progress.[ch], but that's
a topic for another improvement.

Signed-off-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'hn/allow-bogus-oid-in-ref-tests'</title>
<updated>2021-12-15T17:39:54Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2021-12-15T17:39:54Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b174a3c01423897154d26c96baab366229f16976'/>
<id>urn:sha1:b174a3c01423897154d26c96baab366229f16976</id>
<content type='text'>
The test helper for refs subsystem learned to write bogus and/or
nonexistent object name to refs to simulate error situations we
want to test Git in.

* hn/allow-bogus-oid-in-ref-tests:
  t1430: create valid symrefs using test-helper
  t1430: remove refs using test-tool
  refs: introduce REF_SKIP_REFNAME_VERIFICATION flag
  refs: introduce REF_SKIP_OID_VERIFICATION flag
  refs: update comment.
  test-ref-store: plug memory leak in cmd_delete_refs
  test-ref-store: parse symbolic flag constants
  test-ref-store: remove force-create argument for create-reflog
</content>
</entry>
<entry>
<title>Merge branch 'jc/reflog-iterator-callback-doc'</title>
<updated>2021-12-15T17:39:52Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2021-12-15T17:39:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4e5fd9dbcd10257a4f6b8229c69990a4cd098032'/>
<id>urn:sha1:4e5fd9dbcd10257a4f6b8229c69990a4cd098032</id>
<content type='text'>
Document the parameters given to the reflog entry iterator callback
functions.

* jc/reflog-iterator-callback-doc:
  refs: document callback for reflog-ent iterators
</content>
</entry>
<entry>
<title>Merge branch 'hn/create-reflog-simplify'</title>
<updated>2021-12-10T22:35:13Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2021-12-10T22:35:13Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b8148376a2dbb02ade419c2e3fdc478c1f0981dd'/>
<id>urn:sha1:b8148376a2dbb02ade419c2e3fdc478c1f0981dd</id>
<content type='text'>
A small simplification of API.

* hn/create-reflog-simplify:
  refs: drop force_create argument of create_reflog API
</content>
</entry>
<entry>
<title>refs: introduce REF_SKIP_REFNAME_VERIFICATION flag</title>
<updated>2021-12-07T21:15:19Z</updated>
<author>
<name>Han-Wen Nienhuys</name>
<email>hanwen@google.com</email>
</author>
<published>2021-12-07T13:38:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3c966c7b4e97a5399662f85ab73af08a6419a303'/>
<id>urn:sha1:3c966c7b4e97a5399662f85ab73af08a6419a303</id>
<content type='text'>
Use this flag with the test-helper in t1430, to avoid direct writes to the ref
database.

Signed-off-by: Han-Wen Nienhuys &lt;hanwen@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>refs: introduce REF_SKIP_OID_VERIFICATION flag</title>
<updated>2021-12-07T21:15:19Z</updated>
<author>
<name>Han-Wen Nienhuys</name>
<email>hanwen@google.com</email>
</author>
<published>2021-12-07T13:38:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e9706a188f8598ea4d8afac1f70360abb77d4d8d'/>
<id>urn:sha1:e9706a188f8598ea4d8afac1f70360abb77d4d8d</id>
<content type='text'>
This lets the ref-store test helper write non-existent or unparsable objects
into the ref storage.

Use this to make t1006 and t3800 independent of the files storage backend.

Signed-off-by: Han-Wen Nienhuys &lt;hanwen@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>refs: document callback for reflog-ent iterators</title>
<updated>2021-11-28T19:29:33Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2021-11-28T19:25:35Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e6e94f34b28e52e31436c79d94511ed78050042f'/>
<id>urn:sha1:e6e94f34b28e52e31436c79d94511ed78050042f</id>
<content type='text'>
refs_for_each_reflog_ent() and refs_for_each_reflog_ent_reverse()
functions take a callback function that gets called with the details
of each reflog entry.  Its parameters were not documented beyond
their names.  Elaborate a bit on each of them.

Helped-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>refs: drop force_create argument of create_reflog API</title>
<updated>2021-11-22T19:01:25Z</updated>
<author>
<name>Han-Wen Nienhuys</name>
<email>hanwen@google.com</email>
</author>
<published>2021-11-22T14:19:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=7b089120d9e0065978da461f8ccf42000e6760a4'/>
<id>urn:sha1:7b089120d9e0065978da461f8ccf42000e6760a4</id>
<content type='text'>
There is only one caller, builtin/checkout.c, and it hardcodes
force_create=1.

This argument was introduced in abd0cd3a301 (refs: new public ref function:
safe_create_reflog, 2015-07-21), which promised to immediately use it in a
follow-on commit, but that never happened.

Signed-off-by: Han-Wen Nienhuys &lt;hanwen@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>refs API: post-migration API renaming [2/2]</title>
<updated>2021-10-16T18:17:04Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2021-10-16T09:39:27Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f1da24ca5eeecf8931ffc08b4c8251c689c94a47'/>
<id>urn:sha1:f1da24ca5eeecf8931ffc08b4c8251c689c94a47</id>
<content type='text'>
Rename the transitory refs_werrres_ref_unsafe() function to
refs_resolve_ref_unsafe(), now that all callers of the old function
have learned to pass in a "failure_errno" parameter.

The coccinelle semantic patch added in the preceding commit works, but
I couldn't figure out how to get spatch(1) to re-flow these argument
lists (and sometimes make lines way too long), so this rename was done
with:

    perl -pi -e 's/refs_werrres_ref_unsafe/refs_resolve_ref_unsafe/g' \
    $(git grep -l refs_werrres_ref_unsafe -- '*.c')

But after that "make contrib/coccinelle/refs.cocci.patch" comes up
empty, so the result would have been the same. Let's remove that
transitory semantic patch file, we won't need to retain it for any
other in-flight changes, refs_werrres_ref_unsafe() only existed within
this patch series.

Signed-off-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>refs API: post-migration API renaming [1/2]</title>
<updated>2021-10-16T18:17:04Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2021-10-16T09:39:26Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=25a33b33424cd6c8e2c7db0f0c4b1ba01415ce38'/>
<id>urn:sha1:25a33b33424cd6c8e2c7db0f0c4b1ba01415ce38</id>
<content type='text'>
In preceding commits all callers of refs_resolve_ref_unsafe() were
migrated to the transitory refs_werrres_ref_unsafe() function.

As a first step in getting rid of it let's remove the old function
from the public API (it went unused in a preceding commit).

We then provide both a coccinelle rule to do the rename, and a macro
to avoid breaking the existing callers.

Signed-off-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
