<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/refs, branch v2.33.6</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.33.6</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.33.6'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2021-09-10T00:40:28Z</updated>
<entry>
<title>refs/files-backend: remove unused open mode parameter</title>
<updated>2021-09-10T00:40:28Z</updated>
<author>
<name>René Scharfe</name>
<email>l.s.r@web.de</email>
</author>
<published>2021-09-09T21:45:51Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=35cf94eaf6c8bdbed86549c2349aa3c3b40b7b09'/>
<id>urn:sha1:35cf94eaf6c8bdbed86549c2349aa3c3b40b7b09</id>
<content type='text'>
We only need to provide a mode if we are willing to let open(2) create
the file, which is not the case here, so drop the unnecessary parameter.

Signed-off-by: René Scharfe &lt;l.s.r@web.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'hn/refs-debug-empty-prefix'</title>
<updated>2021-07-28T20:18:04Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2021-07-28T20:18:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=aaf113ed95f58d83a81ccdaf32e41a5d8f1d98cf'/>
<id>urn:sha1:aaf113ed95f58d83a81ccdaf32e41a5d8f1d98cf</id>
<content type='text'>
Debugging aid.

* hn/refs-debug-empty-prefix:
  refs/debug: quote prefix
</content>
</entry>
<entry>
<title>refs/debug: quote prefix</title>
<updated>2021-07-19T21:32:34Z</updated>
<author>
<name>Han-Wen Nienhuys</name>
<email>hanwen@google.com</email>
</author>
<published>2021-07-19T17:53:22Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c510928a25c4f7432f785b5f212d8f053495ae74'/>
<id>urn:sha1:c510928a25c4f7432f785b5f212d8f053495ae74</id>
<content type='text'>
This makes the empty prefix ("") stand out better.

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 'ab/struct-init'</title>
<updated>2021-07-17T00:42:53Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2021-07-17T00:42:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=bd4232fac3319890429ec303e2f7c3d287c8eaa3'/>
<id>urn:sha1:bd4232fac3319890429ec303e2f7c3d287c8eaa3</id>
<content type='text'>
Code cleanup around struct_type_init() functions.

* ab/struct-init:
  string-list.h users: change to use *_{nodup,dup}()
  string-list.[ch]: add a string_list_init_{nodup,dup}()
  dir.[ch]: replace dir_init() with DIR_INIT
  *.c *_init(): define in terms of corresponding *_INIT macro
  *.h: move some *_INIT to designated initializers
</content>
</entry>
<entry>
<title>Merge branch 'hn/refs-iterator-peel-returns-boolean'</title>
<updated>2021-07-17T00:42:49Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2021-07-17T00:42:49Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f0ade787acb2c94f2cbf4b4b169818166315210f'/>
<id>urn:sha1:f0ade787acb2c94f2cbf4b4b169818166315210f</id>
<content type='text'>
Tiny API tweak.

* hn/refs-iterator-peel-returns-boolean:
  refs: make explicit that ref_iterator_peel returns boolean
</content>
</entry>
<entry>
<title>string-list.h users: change to use *_{nodup,dup}()</title>
<updated>2021-07-01T19:32:22Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2021-07-01T10:51:29Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=bc40dfb10a06612813a3f9b733d65af0732208b2'/>
<id>urn:sha1:bc40dfb10a06612813a3f9b733d65af0732208b2</id>
<content type='text'>
Change all in-tree users of the string_list_init(LIST, BOOL) API to
use string_list_init_{nodup,dup}(LIST) instead.

As noted in the preceding commit let's leave the now-unused
string_list_init() wrapper in-place for any in-flight users, it can be
removed at some later date.

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: make explicit that ref_iterator_peel returns boolean</title>
<updated>2021-05-19T22:54:12Z</updated>
<author>
<name>Han-Wen Nienhuys</name>
<email>hanwen@google.com</email>
</author>
<published>2021-05-19T15:31:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=617480d75bdca266d4549e4047452c633ddb7a52'/>
<id>urn:sha1:617480d75bdca266d4549e4047452c633ddb7a52</id>
<content type='text'>
Use -1 as error return value throughout.

This removes spurious differences in the GIT_TRACE_REFS output, depending on the
ref storage backend active.

Before, the cached ref_iterator (but only that iterator!) would return
peel_object() output directly. No callers relied on the peel_status values
beyond success/failure. All calls to these functions go through
peel_iterated_oid(), which returns peel_object() as a fallback, but also
squashing the error values.

The iteration interface already passes REF_ISSYMREF and REF_ISBROKEN through the
flags argument, so the additional error values in enum peel_status provide no
value.

The ref iteration interface provides a separate peel() function because certain
formats (eg. packed-refs and reftable) can store the peeled object next to the
tag SHA1. Passing the peeled SHA1 as an optional argument to each_ref_fn maps
more naturally to the implementation of ref databases. Changing the code in this
way is left for a future refactoring.

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 'wc/packed-ref-removal-cleanup'</title>
<updated>2021-05-16T12:05:24Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2021-05-16T12:05:24Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=16f91451fae2f3b12cbbc372bd6a5104e8109076'/>
<id>urn:sha1:16f91451fae2f3b12cbbc372bd6a5104e8109076</id>
<content type='text'>
When "git update-ref -d" removes a ref that is packed, it left
empty directories under $GIT_DIR/refs/ for

* wc/packed-ref-removal-cleanup:
  refs: cleanup directories when deleting packed ref
</content>
</entry>
<entry>
<title>refs: cleanup directories when deleting packed ref</title>
<updated>2021-05-11T04:59:57Z</updated>
<author>
<name>Will Chandler</name>
<email>wfc@wfchandler.org</email>
</author>
<published>2021-05-08T05:00:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=5f03e5126d895283e6d42093dd4f15cbc30011dd'/>
<id>urn:sha1:5f03e5126d895283e6d42093dd4f15cbc30011dd</id>
<content type='text'>
When deleting a packed ref via 'update-ref -d', a lockfile is made in
the directory that would contain the loose copy of that ref, creating
any directories in the ref's path that do not exist. When the
transaction completes, the lockfile is deleted, but any empty parent
directories made when creating the lockfile are left in place.  These
empty directories are not removed by 'pack-refs' or other housekeeping
tasks and will accumulate over time.

When deleting a loose ref, we remove all empty parent directories at the
end of the transaction.

This commit applies the parent directory cleanup logic used when
deleting loose refs to packed refs as well.

Signed-off-by: Will Chandler &lt;wfc@wfchandler.org&gt;
Reviewed-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'bc/hash-transition-interop-part-1'</title>
<updated>2021-05-10T07:59:46Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2021-05-10T07:59:46Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=aaa3c8065d86e8f25850eb79e90da68d6adcf03f'/>
<id>urn:sha1:aaa3c8065d86e8f25850eb79e90da68d6adcf03f</id>
<content type='text'>
SHA-256 transition.

* bc/hash-transition-interop-part-1:
  hex: print objects using the hash algorithm member
  hex: default to the_hash_algo on zero algorithm value
  builtin/pack-objects: avoid using struct object_id for pack hash
  commit-graph: don't store file hashes as struct object_id
  builtin/show-index: set the algorithm for object IDs
  hash: provide per-algorithm null OIDs
  hash: set, copy, and use algo field in struct object_id
  builtin/pack-redundant: avoid casting buffers to struct object_id
  Use the final_oid_fn to finalize hashing of object IDs
  hash: add a function to finalize object IDs
  http-push: set algorithm when reading object ID
  Always use oidread to read into struct object_id
  hash: add an algo member to struct object_id
</content>
</entry>
</feed>
