Subject: What's cooking in git.git (Sep 2024, #08; Fri, 20)

From: Junio C Hamano <[email-masked]>
Date: Fri, 20 Sep 2024 17:32:39 -0700

Here are the topics that have been cooking in my tree.  Commits
prefixed with '+' are in 'next' (being in 'next' is a sign that a
topic is stable enough to be used and are candidate to be in a
future release).  Commits prefixed with '-' are only in 'seen', and
aren't considered "accepted" at all and may be annotated with an URL
to a message that raises issues but they are no means exhaustive.  A
topic without enough support may be discarded after a long period of
no activity (of course they can be resubmit when new interests
arise).

Copies of the source code to Git live in many repositories, and the
following is a list of the ones I push into or their mirrors.  Some
repositories have only a subset of branches.

With maint, master, next, seen, todo:

	git://git.kernel.org/pub/scm/git/git.git/
	git://repo.or.cz/alt-git.git/
	https://kernel.googlesource.com/pub/scm/git/git/
	https://github.com/git/git/
	https://gitlab.com/git-scm/git/

With all the integration branches and topics broken out:

	https://github.com/gitster/git/

Even though the preformatted documentation in HTML and man format
are not sources, they are published in these repositories for
convenience (replace "htmldocs" with "manpages" for the manual
pages):

	git://git.kernel.org/pub/scm/git/git-htmldocs.git/
	https://github.com/gitster/git-htmldocs.git/

Release tarballs are available at:

	https://www.kernel.org/pub/software/scm/git/

--------------------------------------------------
[New Topics]

* ak/refs-symref-referent-typofix (2024-09-19) 1 commit
  (merged to 'next' on 2024-09-19 at 1b00b05df1)
 + ref-filter: fix a typo

 Typofix.

 Will merge to 'master'.
 source: <9697[email-masked]>

* ak/typofix-2.46-maint (2024-09-19) 19 commits
  (merged to 'next' on 2024-09-19 at 07777d1f11)
 + upload-pack: fix a typo
 + sideband: fix a typo
 + setup: fix a typo
 + run-command: fix a typo
 + revision: fix a typo
 + refs: fix typos
 + rebase: fix a typo
 + read-cache-ll: fix a typo
 + pretty: fix a typo
 + object-file: fix a typo
 + merge-ort: fix typos
 + merge-ll: fix a typo
 + http: fix a typo
 + gpg-interface: fix a typo
 + git-p4: fix typos
 + git-instaweb: fix a typo
 + fsmonitor-settings: fix a typo
 + diffcore-rename: fix typos
 + config.mak.dev: fix a typo

 Typofix.

 Will merge to 'master'.
 source: <[email-masked]>

* cb/ci-freebsd-13-4 (2024-09-20) 1 commit
 - ci: update FreeBSD image to 13.4

 CI updates.

 Will merge to 'next'.
 source: <[email-masked]>

* cw/fix-reachable-in-repo-with-promisor (2024-09-19) 2 commits
 - fetch-pack.c: do not declare local commits as "have" in partial repos
 - packfile: split promisor objects oidset into two

 "git gc" in a partial clone (i.e. lacking objects that can be
 lazily fetched from promisor remotes) collected more than objects
 that promisor-remote can give.

 Needs review.
 source: <[email-masked]>

* ds/background-maintenance-with-credential (2024-09-20) 3 commits
 - scalar: configure maintenance during 'reconfigure'
 - maintenance: add custom config to background jobs
 - credential: add new interactive config option

 source: <[email-masked]>

* jc/breaking-changes-early-adopter-option (2024-09-19) 1 commit
 - BreakingChanges: early adopter option

 Describe the policy to introduce breaking changes.

 Comments?
 source: <[email-masked]>

* ps/ci-gitlab-upgrade (2024-09-19) 1 commit
  (merged to 'next' on 2024-09-19 at 907c53944e)
 + gitlab-ci: upgrade machine type of Linux runners

 CI updates.

 Will merge to 'master'.
 source: <[email-masked]>

* ps/reftable-concurrent-writes (2024-09-19) 3 commits
 - refs/reftable: reload locked stack when preparing transaction
 - reftable/stack: allow locking of outdated stacks
 - refs/reftable: introduce "reftable.lockTimeout"

 Give timeout to the locking code to write to reftable.

 Will merge to 'next'?
 source: <[email-masked]>

* pw/submodule-process-sigpipe (2024-09-20) 1 commit
 - submodule status: propagate SIGPIPE

 When a subprocess to work in a submodule spawned by "git submodule"
 fails with SIGPIPE, the parent Git process caught the death of it,
 but gave a generic "failed to work in that submodule", which was
 misleading.  We now behave as if the parent got SIGPIPE and die.

 Will merge to 'next'?
 source: <[email-masked]>

--------------------------------------------------
[Graduated to 'master']

* bb/unicode-width-table-16 (2024-09-12) 1 commit
  (merged to 'next' on 2024-09-13 at 87dc391469)
 + unicode: update the width tables to Unicode 16

 Update the character width table for Unicode 16.
 
 source: <[email-masked]>

* jk/git-pm-bare-repo-fix (2024-09-13) 2 commits
  (merged to 'next' on 2024-09-13 at 7f9bb8501c)
 + Git.pm: use "rev-parse --absolute-git-dir" rather than perl code
 + Git.pm: fix bare repository search with Directory option

 In Git 2.39, Git.pm stopped working in a bare repository, which has
 been corrected.
 
 source: <[email-masked]>

* jk/interop-test-build-options (2024-09-12) 1 commit
  (merged to 'next' on 2024-09-13 at 0ab66e77a1)
 + t/interop: allow per-version make options

 The support to customize build options to adjust for older versions
 and/or older systems for the interop tests has been improved.
 
 source: <[email-masked]>

* jk/no-openssl-with-openssl-sha1 (2024-09-12) 1 commit
  (merged to 'next' on 2024-09-13 at 07f5e4856d)
 + imap-send: handle NO_OPENSSL even when openssl exists

 The "imap-send" now allows to be compiled with NO_OPENSSL and
 OPENSSL_SHA1 defined together.
 
 source: <[email-masked]>

* ma/test-libcurl-prereq (2024-09-11) 2 commits
  (merged to 'next' on 2024-09-13 at 6d4ad6b054)
 + t0211: add missing LIBCURL prereq
 + t1517: add missing LIBCURL prereq

 Test portability fix.
 
 source: <[email-masked]>

* ps/leakfixes-part-6 (2024-09-05) 22 commits
  (merged to 'next' on 2024-09-13 at 9be3125b10)
 + builtin/repack: fix leaking keep-pack list
 + merge-ort: fix two leaks when handling directory rename modifications
 + match-trees: fix leaking prefixes in `shift_tree()`
 + builtin/fmt-merge-msg: fix leaking buffers
 + builtin/grep: fix leaking object context
 + builtin/pack-objects: plug leaking list of keep-packs
 + builtin/repack: fix leaking line buffer when packing promisors
 + negotiator/skipping: fix leaking commit entries
 + shallow: fix leaking members of `struct shallow_info`
 + shallow: free grafts when unregistering them
 + object: clear grafts when clearing parsed object pool
 + gpg-interface: fix misdesigned signing key interfaces
 + send-pack: fix leaking push cert nonce
 + remote: fix leak in reachability check of a remote-tracking ref
 + remote: fix leaking tracking refs
 + builtin/submodule--helper: fix leaking refs on push-check
 + submodule: fix leaking fetch task data
 + upload-pack: fix leaking child process data on reachability checks
 + builtin/push: fix leaking refspec query result
 + send-pack: fix leaking common object IDs
 + fetch-pack: fix memory leaks on fetch negotiation
 + t/test-lib: allow skipping leak checks for passing tests
 (this branch is used by ps/leakfixes-part-7.)

 More leakfixes.
 
 source: <[email-masked]>

* pw/rebase-autostash-fix (2024-09-03) 1 commit
  (merged to 'next' on 2024-09-13 at 6b41d66efd)
 + rebase: apply and cleanup autostash when rebase fails to start

 "git rebase --autostash" failed to resurrect the autostashed
 changes when the command gets aborted after giving back control
 asking for hlep in conflict resolution.
 
 source: <[email-masked]>

--------------------------------------------------
[Cooking]

* jc/cmake-unit-test-updates (2024-09-18) 4 commits
  (merged to 'next' on 2024-09-19 at d892dcdcdd)
 + cmake: generalize the handling of the `UNIT_TEST_OBJS` list
 + cmake: stop looking for `REFTABLE_TEST_OBJS` in the Makefile
 + cmake: rename clar-related variables to avoid confusion
 + Merge branch 'ps/reftable-exclude' into jc/cmake-unit-test-updates
 (this branch uses ps/reftable-exclude.)

 CMake adjustments for recent changes around unit tests.

 Will merge to 'master'.
 source: <[email-masked]>

* jk/diag-unexpected-remote-helper-death (2024-09-14) 1 commit
  (merged to 'next' on 2024-09-16 at f2aa29beac)
 + print an error when remote helpers die during capabilities

 When a remote-helper dies before Git writes to it, SIGPIPE killed
 Git silently.  We now explain the situation a bit better to the end
 user in our error message.

 Will merge to 'master'.
 source: <[email-masked]>

* ak/typofixes (2024-09-16) 3 commits
  (merged to 'next' on 2024-09-16 at 4bbdd5ce45)
 + cbtree: fix a typo
 + bloom: fix a typo
 + attr: fix a typo

 Trivial typofixes.

 Will merge to 'master'.
 source: <[email-masked]>

* jk/jump-quickfix-fixes (2024-09-16) 2 commits
  (merged to 'next' on 2024-09-16 at 53aa9e5b22)
 + git-jump: ignore deleted files in diff mode
 + git-jump: always specify column 1 for diff entries

 A few usability fixes to "git jump" (in contrib/).

 Will merge to 'master'.
 source: <[email-masked]>

* jk/t9001-deflake (2024-09-16) 1 commit
  (merged to 'next' on 2024-09-16 at 285ebc4223)
 + t9001: use a more distinct fake BugID

 Test fix.

 Will merge to 'master'.
 source: <[email-masked]>

* ps/apply-leakfix (2024-09-17) 6 commits
  (merged to 'next' on 2024-09-18 at 99e318345e)
 + apply: refactor `struct image` to use a `struct strbuf`
 + apply: rename members that track line count and allocation length
 + apply: refactor code to drop `line_allocated`
 + apply: introduce macro and function to init images
 + apply: rename functions operating on `struct image`
 + apply: reorder functions to move image-related things together

 "git apply" had custom buffer management code that predated before
 use of strbuf got widespread, which has been updated to use strbuf,
 which also plugged some memory leaks.

 Will merge to 'master'.
 source: <[email-masked]>

* ps/leakfixes-part-7 (2024-09-16) 24 commits
 - diffcore-break: fix leaking filespecs when merging broken pairs
 - revision: fix leaking parents when simplifying commits
 - builtin/maintenance: fix leak in `get_schedule_cmd()`
 - builtin/maintenance: fix leaking config string
 - promisor-remote: fix leaking partial clone filter
 - grep: fix leaking grep pattern
 - submodule: fix leaking submodule ODB paths
 - trace2: destroy context stored in thread-local storage
 - builtin/difftool: plug several trivial memory leaks
 - builtin/repack: fix leaking configuration
 - diffcore-order: fix leaking buffer when parsing orderfiles
 - parse-options: free previous value of `OPTION_FILENAME`
 - diff: fix leaking orderfile option
 - builtin/pull: fix leaking "ff" option
 - dir: fix off by one errors for ignored and untracked entries
 - builtin/submodule--helper: fix leaking remote ref on errors
 - t/helper: fix leaking subrepo in nested submodule config helper
 - builtin/submodule--helper: fix leaking error buffer
 - builtin/submodule--helper: clear child process when not running it
 - submodule: fix leaking update strategy
 - git: fix leaking argv when handling builtins
 - builtin/help: fix leaking `html_path` when reading config multiple times
 - builtin/help: fix dangling reference to `html_path`
 - Merge branch 'ps/leakfixes-part-6' into ps/leakfixes-part-7

 More leak-fixes.

 Will merge to 'next'?
 source: <[email-masked]>

* ps/reftable-alloc-failures (2024-09-16) 24 commits
 - reftable: handle trivial allocation failures
 - reftable/tree: handle allocation failures
 - reftable/pq: handle allocation failures when adding entries
 - reftable/block: handle allocation failures
 - reftable/blocksource: handle allocation failures
 - reftable/iter: handle allocation failures when creating indexed table iter
 - reftable/stack: handle allocation failures in auto compaction
 - reftable/stack: handle allocation failures in `stack_compact_range()`
 - reftable/stack: handle allocation failures in `reftable_new_stack()`
 - reftable/stack: handle allocation failures on reload
 - reftable/reader: handle allocation failures in `reader_init_iter()`
 - reftable/reader: handle allocation failures for unindexed reader
 - reftable/merged: handle allocation failures in `merged_table_init_iter()`
 - reftable/writer: handle allocation failures in `reftable_new_writer()`
 - reftable/writer: handle allocation failures in `writer_index_hash()`
 - reftable/record: handle allocation failures when decoding records
 - reftable/record: handle allocation failures on copy
 - reftable/basics: handle allocation failures in `parse_names()`
 - reftable/basics: handle allocation failures in `reftable_calloc()`
 - reftable: introduce `reftable_strdup()`
 - reftable/basics: merge "publicbasics" into "basics"
 - reftable/error: introduce out-of-memory error code
 - Merge branch 'ps/reftable-exclude' into ps/reftable-alloc-failures
 - Merge branch 'cp/unit-test-reftable-stack' into ps/reftable-alloc-failures
 (this branch uses ps/reftable-exclude.)

 The reftable library is now prepared to expect that the memory
 allocation function given to it may fail to allocate and to deal
 with such an error.

 Needs review.
 source: <[email-masked]>

* jc/strbuf-commented-something (2024-09-12) 2 commits
 - strbuf: retire strbuf_commented_lines()
 - strbuf: retire strbuf_commented_addf()

 Update two functions whose callers always pass the same global
 variable to omit the redundant parameter and use the global in the
 callee themselves.

 On hold.
 source: <[email-masked]>

* jc/t5512-sigpipe-fix (2024-09-13) 1 commit
  (merged to 'next' on 2024-09-16 at 96075b5dd1)
 + t5512.40 sometimes dies by SIGPIPE

 Test fix.

 Will merge to 'master'.
 source: <[email-masked]>

* cc/promisor-remote-capability (2024-09-10) 4 commits
 - promisor-remote: check advertised name or URL
 - Add 'promisor-remote' capability to protocol v2
 - strbuf: refactor strbuf_trim_trailing_ch()
 - version: refactor strbuf_sanitize()

 The v2 protocol learned to allow the server to advertise possible
 promisor remotes, and the client to respond with what promissor
 remotes it uses, so that the server side can omit objects that the
 client can lazily obtain from these other promissor remotes.

 Comments?
 source: <[email-masked]>

* ds/pack-name-hash-tweak (2024-09-19) 6 commits
 - test-tool: add helper for name-hash values
 - p5313: add size comparison test
 - git-repack: update usage to match docs
 - pack-objects: add GIT_TEST_FULL_NAME_HASH
 - repack: test --full-name-hash option
 - pack-objects: add --full-name-hash option

 In a repository with too many (more than --window size) similarly
 named files, "git repack" would not find good delta-base candidate
 and worse, it may not use a blob from exactly the same path as a
 good delta-base candidate.  Optionally replace the name hash so
 that only blobs at the same path and nothing else are used as
 delta-base candidate.

 Will merge to 'next'?
 source: <[email-masked]>

* ps/reftable-exclude (2024-09-16) 7 commits
  (merged to 'next' on 2024-09-18 at 1f00fce314)
 + refs/reftable: wire up support for exclude patterns
 + reftable/reader: make table iterator reseekable
 + t/unit-tests: introduce reftable library
 + Makefile: stop listing test library objects twice
 + builtin/receive-pack: fix exclude patterns when announcing refs
 + refs: properly apply exclude patterns to namespaced refs
 + Merge branch 'cp/unit-test-reftable-stack' into ps/reftable-exclude
 (this branch is used by jc/cmake-unit-test-updates and ps/reftable-alloc-failures.)

 The reftable backend learned to more efficiently handle exclude
 patterns while enumerating the refs.

 Will merge to 'master'.
 source: <[email-masked]>

* jc/pass-repo-to-builtins (2024-09-13) 4 commits
  (merged to 'next' on 2024-09-16 at 7711bb0214)
 + add: pass in repo variable instead of global the_repository
 + builtin: remove USE_THE_REPOSITORY for those without the_repository
 + builtin: remove USE_THE_REPOSITORY_VARIABLE from builtin.h
 + builtin: add a repository parameter for builtin functions

 The convention to calling into built-in command implementation has
 been updated to pass the repository, if known, together with the
 prefix value.

 Will merge to 'master'.
 source: <[email-masked]>

* tb/weak-sha1-for-tail-sum (2024-09-06) 9 commits
 - csum-file.c: use fast SHA-1 implementation when available
 - Makefile: allow specifying a SHA-1 for non-cryptographic uses
 - hash.h: scaffolding for _fast hashing variants
 - sha1: do not redefine `platform_SHA_CTX` and friends
 - i5500-git-daemon.sh: use compile-able version of Git without OpenSSL
 - pack-objects: use finalize_object_file() to rename pack/idx/etc
 - finalize_object_file(): implement collision check
 - finalize_object_file(): refactor unlink_or_warn() placement
 - finalize_object_file(): check for name collision before renaming

 The checksum at the tail of files are now computed without
 collision detection protection.

 Expecting a reroll.
 cf. <[email-masked]>
 source: <[email-masked]>

* ps/environ-wo-the-repository (2024-09-12) 21 commits
  (merged to 'next' on 2024-09-16 at c08e3eb6b8)
 + environment: stop storing "core.notesRef" globally
 + environment: stop storing "core.warnAmbiguousRefs" globally
 + environment: stop storing "core.preferSymlinkRefs" globally
 + environment: stop storing "core.logAllRefUpdates" globally
 + refs: stop modifying global `log_all_ref_updates` variable
 + branch: stop modifying `log_all_ref_updates` variable
 + repo-settings: track defaults close to `struct repo_settings`
 + repo-settings: split out declarations into a standalone header
 + environment: guard state depending on a repository
 + environment: reorder header to split out `the_repository`-free section
 + environment: move `set_git_dir()` and related into setup layer
 + environment: make `get_git_namespace()` self-contained
 + environment: move object database functions into object layer
 + config: make dependency on repo in `read_early_config()` explicit
 + config: document `read_early_config()` and `read_very_early_config()`
 + environment: make `get_git_work_tree()` accept a repository
 + environment: make `get_graft_file()` accept a repository
 + environment: make `get_index_file()` accept a repository
 + environment: make `get_object_directory()` accept a repository
 + environment: make `get_git_common_dir()` accept a repository
 + environment: make `get_git_dir()` accept a repository

 Code clean-up.

 Will merge to 'master'.
 source: <[email-masked]>

* gt/unit-test-oidset (2024-08-25) 1 commit
 - unit-tests: add tests for oidset.h

 Another unit-test.

 Expecting a reroll.
 source: <[email-masked]>

* sj/ref-contents-check (2024-09-18) 5 commits
 - ref: add symlink ref content check for files backend
 - ref: add symref content check for files backend
 - ref: add more strict checks for regular refs
 - ref: port git-fsck(1) regular refs check for files backend
 - ref: initialize "fsck_ref_report" with zero

 "git fsck" learned to issue warnings on "curiously formatted" ref
 contents that have always been taken valid but something Git
 wouldn't have written itself (e.g., missing terminating end-of-line
 after the full object name).

 Needs review.
 source: <ZuRzCyjQFilGhj8j@ArchLinux>

* tb/incremental-midx-part-2 (2024-08-28) 16 commits
 - fixup! midx: implement writing incremental MIDX bitmaps
 - midx: implement writing incremental MIDX bitmaps
 - pack-bitmap.c: use `ewah_or_iterator` for type bitmap iterators
 - pack-bitmap.c: keep track of each layer's type bitmaps
 - ewah: implement `struct ewah_or_iterator`
 - pack-bitmap.c: apply pseudo-merge commits with incremental MIDXs
 - pack-bitmap.c: compute disk-usage with incremental MIDXs
 - pack-bitmap.c: teach `rev-list --test-bitmap` about incremental MIDXs
 - pack-bitmap.c: support bitmap pack-reuse with incremental MIDXs
 - pack-bitmap.c: teach `show_objects_for_type()` about incremental MIDXs
 - pack-bitmap.c: teach `bitmap_for_commit()` about incremental MIDXs
 - pack-bitmap.c: open and store incremental bitmap layers
 - pack-revindex: prepare for incremental MIDX bitmaps
 - Documentation: describe incremental MIDX bitmaps
 - Merge branch 'tb/pseudo-merge-bitmap-fixes' into tb/incremental-midx-part-2
 - Merge branch 'tb/incremental-midx-part-1' into tb/incremental-midx-part-2

 Incremental updates of multi-pack index files.

 Needs review.
 source: <[email-masked]>

* js/libgit-rust (2024-09-09) 7 commits
 . SQUASH???
 . Makefile: add option to build and test libgit-rs and libgit-rs-sys
 . libgit: add higher-level libgit crate
 . config: add git_configset_alloc() and git_configset_clear_and_free()
 . libgit-sys: add repo initialization and config access
 . libgit-sys: introduce Rust wrapper for libgit.a
 . common-main: split init and exit code into new files

 An rust binding to libgit.a functions has been introduced.

 Expecting a reroll.
 cf. <[email-masked]>
 source: <[email-masked]>

* jc/too-many-arguments (2024-08-06) 4 commits
 - miscellaneous: avoid "too many arguments"
 - notes: avoid "too many arguments"
 - cat-file: avoid "too many arguments"
 - refs: avoid "too many arguments"

 Error message clarification.

 On hold.
 source: <[email-masked]>

* ja/doc-synopsis-markup (2024-09-05) 3 commits
  (merged to 'next' on 2024-09-16 at d471154a0b)
 + doc: apply synopsis simplification on git-clone and git-init
 + doc: update the guidelines to reflect the current formatting rules
 + doc: introduce a synopsis typesetting

 The way AsciiDoc is used for SYNOPSIS part of the manual pages has
 been revamped.  The sources, at least for the simple cases, got
 vastly pleasant to work with.

 Will merge to 'master'.
 source: <[email-masked]>

* ew/cat-file-optim (2024-08-25) 10 commits
 - cat-file: use writev(2) if available
 - cat-file: batch_write: use size_t for length
 - cat-file: batch-command uses content_limit
 - object_info: content_limit only applies to blobs
 - packfile: packed_object_info avoids packed_to_object_type
 - cat-file: use delta_base_cache entries directly
 - packfile: inline cache_or_unpack_entry
 - packfile: fix off-by-one in content_limit comparison
 - packfile: allow content-limit for cat-file
 - packfile: move sizep computation

 "git cat-file --batch" has been optimized.

 Waiting for review responses.
 source: <[email-masked]>