<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/Documentation/technical, branch v2.37.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.37.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.37.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2022-08-05T22:51:37Z</updated>
<entry>
<title>Merge branch 'sg/index-format-doc-update' into maint</title>
<updated>2022-08-05T22:51:37Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2022-08-05T22:51:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=19177019ed86038a559e0e9d8dc1b2114f13e195'/>
<id>urn:sha1:19177019ed86038a559e0e9d8dc1b2114f13e195</id>
<content type='text'>
Docfix.
source: &lt;20220718085640.7395-1-szeder.dev@gmail.com&gt;

* sg/index-format-doc-update:
  index-format.txt: remove outdated list of supported extensions
</content>
</entry>
<entry>
<title>Merge branch 'ac/bitmap-format-doc' into maint</title>
<updated>2022-07-27T20:00:31Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2022-07-27T20:00:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8f6b482d245ad8eb0fe3dccada91ee89aa17bf39'/>
<id>urn:sha1:8f6b482d245ad8eb0fe3dccada91ee89aa17bf39</id>
<content type='text'>
Adjust technical/bitmap-format to be formatted by AsciiDoc, and
add some missing information to the documentation.
source: &lt;pull.1246.v4.git.1655355834.gitgitgadget@gmail.com&gt;

* ac/bitmap-format-doc:
  bitmap-format.txt: add information for trailing checksum
  bitmap-format.txt: fix some formatting issues
  bitmap-format.txt: feed the file to asciidoc to generate html
</content>
</entry>
<entry>
<title>index-format.txt: remove outdated list of supported extensions</title>
<updated>2022-07-18T16:24:43Z</updated>
<author>
<name>SZEDER Gábor</name>
<email>szeder.dev@gmail.com</email>
</author>
<published>2022-07-18T08:56:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a10f6e2bda995d4cbf1b2bd081bf74bc575013d9'/>
<id>urn:sha1:a10f6e2bda995d4cbf1b2bd081bf74bc575013d9</id>
<content type='text'>
The first section of 'Documentation/technical/index-format.txt'
mentions that "Git currently supports cache tree and resolve undo
extensions", but then goes on, and in the "Extensions" section
describes not only these two, but six other extensions [1].

Remove this sentence, as it's misleading about the status of all those
other extensions.

Alternatively we could keep that sentence and update the list of
extensions, but that might well lead to a recurring issue, because
apparently this list is never updated when a new index extension is
added.

[1] Split index, untracked cache, FS monitor cache, end of index
    entry, index entry offset table and sparse directory entries.

Signed-off-by: SZEDER Gábor &lt;szeder.dev@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>bitmap-format.txt: add information for trailing checksum</title>
<updated>2022-06-16T18:48:50Z</updated>
<author>
<name>Abhradeep Chakraborty</name>
<email>chakrabortyabhradeep79@gmail.com</email>
</author>
<published>2022-06-16T05:03:54Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ac7667bd44acd0e192e1783862ca5382ccbb2fcb'/>
<id>urn:sha1:ac7667bd44acd0e192e1783862ca5382ccbb2fcb</id>
<content type='text'>
Bitmap file has a trailing checksum at the end of the file. However
there is no information in the bitmap-format documentation about it.

Add a trailer section to include the trailing checksum info in the
`Documentation/technical/bitmap-format.txt` file.

Signed-off-by: Abhradeep Chakraborty &lt;chakrabortyabhradeep79@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>bitmap-format.txt: fix some formatting issues</title>
<updated>2022-06-16T18:48:50Z</updated>
<author>
<name>Abhradeep Chakraborty</name>
<email>chakrabortyabhradeep79@gmail.com</email>
</author>
<published>2022-06-16T05:03:53Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=caea900272e68e677f00a9c399f8e94954a3cd9f'/>
<id>urn:sha1:caea900272e68e677f00a9c399f8e94954a3cd9f</id>
<content type='text'>
The asciidoc generated html for `Documentation/technical/bitmap-
format.txt` is broken. This is mainly because `-` is used for nested
lists (which is not allowed in asciidoc) instead of `*`.

Fix these and also reformat it for better readability of the html page.

Signed-off-by: Abhradeep Chakraborty &lt;chakrabortyabhradeep79@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'ab/bug-if-bug'</title>
<updated>2022-06-10T22:04:15Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2022-06-10T22:04:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4da14b574f2e52eb05e4fef7ed169a8f9e3a8b67'/>
<id>urn:sha1:4da14b574f2e52eb05e4fef7ed169a8f9e3a8b67</id>
<content type='text'>
A new bug() and BUG_if_bug() API is introduced to make it easier to
uniformly log "detect multiple bugs and abort in the end" pattern.

* ab/bug-if-bug:
  cache-tree.c: use bug() and BUG_if_bug()
  receive-pack: use bug() and BUG_if_bug()
  parse-options.c: use optbug() instead of BUG() "opts" check
  parse-options.c: use new bug() API for optbug()
  usage.c: add a non-fatal bug() function to go with BUG()
  common-main.c: move non-trace2 exit() behavior out of trace2.c
</content>
</entry>
<entry>
<title>Merge branch 'tb/cruft-packs'</title>
<updated>2022-06-03T21:30:37Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2022-06-03T21:30:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a50036da1a39806a8ae1aba2e2f2fea6f7fb8e08'/>
<id>urn:sha1:a50036da1a39806a8ae1aba2e2f2fea6f7fb8e08</id>
<content type='text'>
A mechanism to pack unreachable objects into a "cruft pack",
instead of ejecting them into loose form to be reclaimed later, has
been introduced.

* tb/cruft-packs:
  sha1-file.c: don't freshen cruft packs
  builtin/gc.c: conditionally avoid pruning objects via loose
  builtin/repack.c: add cruft packs to MIDX during geometric repack
  builtin/repack.c: use named flags for existing_packs
  builtin/repack.c: allow configuring cruft pack generation
  builtin/repack.c: support generating a cruft pack
  builtin/pack-objects.c: --cruft with expiration
  reachable: report precise timestamps from objects in cruft packs
  reachable: add options to add_unseen_recent_objects_to_traversal
  builtin/pack-objects.c: --cruft without expiration
  builtin/pack-objects.c: return from create_object_entry()
  t/helper: add 'pack-mtimes' test-tool
  pack-mtimes: support writing pack .mtimes files
  chunk-format.h: extract oid_version()
  pack-write: pass 'struct packing_data' to 'stage_tmp_packfiles'
  pack-mtimes: support reading .mtimes files
  Documentation/technical: add cruft-packs.txt
</content>
</entry>
<entry>
<title>usage.c: add a non-fatal bug() function to go with BUG()</title>
<updated>2022-06-02T19:51:35Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2022-06-02T12:25:33Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0cc05b044fd690f37565262a5b09f60c203c5218'/>
<id>urn:sha1:0cc05b044fd690f37565262a5b09f60c203c5218</id>
<content type='text'>
Add a bug() function to use in cases where we'd like to indicate a
runtime BUG(), but would like to defer the BUG() call because we're
possibly accumulating more bug() callers to exhaustively indicate what
went wrong.

We already have this sort of facility in various parts of the
codebase, just in the form of ad-hoc re-inventions of the
functionality that this new API provides. E.g. this will be used to
replace optbug() in parse-options.c, and the 'error("BUG:[...]' we do
in a loop in builtin/receive-pack.c.

Unlike the code this replaces we'll log to trace2 with this new bug()
function (as with other usage.c functions, including BUG()), we'll
also be able to avoid calls to xstrfmt() in some cases, as the bug()
function itself accepts variadic sprintf()-like arguments.

Any caller to bug() can follow up such calls with BUG_if_bug(),
which will BUG() out (i.e. abort()) if there were any preceding calls
to bug(), callers can also decide not to call BUG_if_bug() and leave
the resulting BUG() invocation until exit() time. There are currently
no bug() API users that don't call BUG_if_bug() themselves after a
for-loop, but allowing for not calling BUG_if_bug() keeps the API
flexible. As the tests and documentation here show we'll catch missing
BUG_if_bug() invocations in our exit() wrapper.

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>builtin/repack.c: support generating a cruft pack</title>
<updated>2022-05-26T22:48:26Z</updated>
<author>
<name>Taylor Blau</name>
<email>me@ttaylorr.com</email>
</author>
<published>2022-05-20T23:18:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f9825d1cf752b8d04a3e9193ff6fdb54d09e28a3'/>
<id>urn:sha1:f9825d1cf752b8d04a3e9193ff6fdb54d09e28a3</id>
<content type='text'>
Expose a way to split the contents of a repository into a main and cruft
pack when doing an all-into-one repack with `git repack --cruft -d`, and
a complementary configuration variable.

Signed-off-by: Taylor Blau &lt;me@ttaylorr.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>pack-mtimes: support reading .mtimes files</title>
<updated>2022-05-26T22:48:26Z</updated>
<author>
<name>Taylor Blau</name>
<email>me@ttaylorr.com</email>
</author>
<published>2022-05-20T23:17:35Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=94cd775a6c52a99caeb1278c3d8044ee109e2d3e'/>
<id>urn:sha1:94cd775a6c52a99caeb1278c3d8044ee109e2d3e</id>
<content type='text'>
To store the individual mtimes of objects in a cruft pack, introduce a
new `.mtimes` format that can optionally accompany a single pack in the
repository.

The format is defined in Documentation/technical/pack-format.txt, and
stores a 4-byte network order timestamp for each object in name (index)
order.

This patch prepares for cruft packs by defining the `.mtimes` format,
and introducing a basic API that callers can use to read out individual
mtimes.

Signed-off-by: Taylor Blau &lt;me@ttaylorr.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
