<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/refs/debug.c, branch gitk-resize-error</title>
<subtitle>Fork of git SCM with my patches.</subtitle>
<id>http://git.kilabit.info/git/atom?h=gitk-resize-error</id>
<link rel='self' href='http://git.kilabit.info/git/atom?h=gitk-resize-error'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/'/>
<updated>2021-12-22T21:51:38Z</updated>
<entry>
<title>refs: centralize initialization of the base ref_store.</title>
<updated>2021-12-22T21:51:38Z</updated>
<author>
<name>Han-Wen Nienhuys</name>
<email>hanwen@google.com</email>
</author>
<published>2021-12-22T18:11:54Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=f9f7fd3b238cc56224c30235a0d248d027b7ecfa'/>
<id>urn:sha1:f9f7fd3b238cc56224c30235a0d248d027b7ecfa</id>
<content type='text'>
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: print error message in debug output</title>
<updated>2021-12-22T21:51:37Z</updated>
<author>
<name>Han-Wen Nienhuys</name>
<email>hanwen@google.com</email>
</author>
<published>2021-12-22T18:11:53Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=a6db572af6bc792590716856d80e8b9c02a55bec'/>
<id>urn:sha1:a6db572af6bc792590716856d80e8b9c02a55bec</id>
<content type='text'>
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>Merge branch 'hn/reflog-tests'</title>
<updated>2021-12-15T17:39:49Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2021-12-15T17:39:48Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=250ca49b4f3ee0781a98c47f4515ae597ca3dbab'/>
<id>urn:sha1:250ca49b4f3ee0781a98c47f4515ae597ca3dbab</id>
<content type='text'>
Prepare tests on ref API to help testing reftable backends.

* hn/reflog-tests:
  refs/debug: trim trailing LF from reflog message
  test-ref-store: tweaks to for-each-reflog-ent format
  t1405: check for_each_reflog_ent_reverse() more thoroughly
  test-ref-store: don't add newline to reflog message
  show-branch: show reflog message
</content>
</entry>
<entry>
<title>refs/debug: trim trailing LF from reflog message</title>
<updated>2021-12-02T19:14:08Z</updated>
<author>
<name>Han-Wen Nienhuys</name>
<email>hanwen@google.com</email>
</author>
<published>2021-12-02T17:36:33Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=65279256f3d3576ff16332d7f0ee124f593cb476'/>
<id>urn:sha1:65279256f3d3576ff16332d7f0ee124f593cb476</id>
<content type='text'>
On iteration, the reflog message is always terminated by a newline. Trim it to
avoid clobbering the console with is this extra newline.

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: 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='http://git.kilabit.info/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>Merge branch 'hn/refs-errno-cleanup'</title>
<updated>2021-10-04T04:49:18Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2021-10-04T04:49:18Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=92382d14cd4146ad05e891a529ed3ce5822d11f7'/>
<id>urn:sha1:92382d14cd4146ad05e891a529ed3ce5822d11f7</id>
<content type='text'>
Futz with the way 'errno' is relied on in the refs API to carry the
failure modes up the call chain.

* hn/refs-errno-cleanup:
  refs: make errno output explicit for read_raw_ref_fn
  refs/files-backend: stop setting errno from lock_ref_oid_basic
  refs: remove EINVAL errno output from specification of read_raw_ref_fn
  refs file backend: move raceproof_create_file() here
</content>
</entry>
<entry>
<title>Merge branch 'ab/refs-files-cleanup'</title>
<updated>2021-10-04T04:49:18Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2021-10-04T04:49:18Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=842d45d293a25b3e1818658710af4111b771f244'/>
<id>urn:sha1:842d45d293a25b3e1818658710af4111b771f244</id>
<content type='text'>
Continued work on top of the hn/refs-errno-cleanup topic.

* ab/refs-files-cleanup:
  refs/files: remove unused "errno != ENOTDIR" condition
  refs/files: remove unused "errno == EISDIR" code
  refs/files: remove unused "oid" in lock_ref_oid_basic()
  refs API: remove OID argument to reflog_expire()
  reflog expire: don't lock reflogs using previously seen OID
  refs/files: add a comment about refs_reflog_exists() call
  refs: make repo_dwim_log() accept a NULL oid
  refs/debug: re-indent argument list for "prepare"
  refs/files: remove unused "skip" in lock_raw_ref() too
  refs/files: remove unused "extras/skip" in lock_ref_oid_basic()
  refs: drop unused "flags" parameter to lock_ref_oid_basic()
  refs/files: remove unused REF_DELETING in lock_ref_oid_basic()
  refs/packet: add missing BUG() invocations to reflog callbacks
</content>
</entry>
<entry>
<title>refs: make errno output explicit for read_raw_ref_fn</title>
<updated>2021-08-25T20:30:26Z</updated>
<author>
<name>Han-Wen Nienhuys</name>
<email>hanwen@google.com</email>
</author>
<published>2021-08-23T11:52:40Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=5b12e16bb134969747eaa983ab8d83d57f41e960'/>
<id>urn:sha1:5b12e16bb134969747eaa983ab8d83d57f41e960</id>
<content type='text'>
This makes it explicit how alternative ref backends should report errors in
read_raw_ref_fn.

read_raw_ref_fn needs to supply a credible errno for a number of cases. These
are primarily:

1) The files backend calls read_raw_ref from lock_raw_ref, and uses the
resulting error codes to create/remove directories as needed.

2) ENOENT should be translated in a zero OID, optionally with REF_ISBROKEN set,
returning the last successfully resolved symref. This is necessary so
read_raw_ref("HEAD") on an empty repo returns refs/heads/main (or the default branch
du-jour), and we know on which branch to create the first commit.

Make this information flow explicit by adding a failure_errno to the signature
of read_raw_ref. All errnos from the files backend are still propagated
unchanged, even though inspection suggests only ENOTDIR, EISDIR and ENOENT are
relevant.

Signed-off-by: Han-Wen Nienhuys &lt;hanwen@google.com&gt;
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: remove OID argument to reflog_expire()</title>
<updated>2021-08-25T20:27:37Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2021-08-23T11:36:11Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=cc40b5ce137d0189aa52ab4c3d5ad3957342da5a'/>
<id>urn:sha1:cc40b5ce137d0189aa52ab4c3d5ad3957342da5a</id>
<content type='text'>
Since the the preceding commit the "oid" parameter to reflog_expire()
is always NULL, but it was not cleaned up to reduce the size of the
diff. Let's do that subsequent API and documentation cleanup now.

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/debug: re-indent argument list for "prepare"</title>
<updated>2021-08-25T20:27:37Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2021-08-23T11:36:07Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=81bc12258958ad293598840ad28df3817c9f4dfb'/>
<id>urn:sha1:81bc12258958ad293598840ad28df3817c9f4dfb</id>
<content type='text'>
Re-indent this argument list that's been mis-indented since it was
added in 34c319970d1 (refs/debug: trace into reflog expiry too,
2021-04-23). This makes a subsequent change smaller.

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>
