Skip to contentSkip to conversation

What's cooking in git.git (Feb 2025, #06; Tue, 18)

DISCUSSION Junio C Hamano 2 participants 3 messages Feb 19, 2025 – Feb 20, 2025

lore
Share & tools
lore
#0 lore raw

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/

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

* bc/contrib-thunderbird-patch-inline-fix (2025-02-10) 1 commit (merged to 'next' on 2025-02-11 at d13b5baf06)
+ thunderbird-patch-inline: avoid bashism

A thunderbird helper script lost its bashism.

source: <[email protected]>

* da/difftool-sans-the-repository (2025-02-06) 3 commits (merged to 'next' on 2025-02-10 at e22cc108b6)
+ difftool: eliminate use of USE_THE_REPOSITORY_VARIABLE
+ difftool: eliminate use of the_repository
+ difftool: eliminate use of global variables

"git difftool" code clean-up.
cf. <[email protected]>
source: <[email protected]>

* ds/backfill (2025-02-03) 7 commits
(merged to 'next' on 2025-02-10 at d6348c9f60)
+ backfill: assume --sparse when sparse-checkout is enabled
+ backfill: add --sparse option
+ backfill: add --min-batch-size=<n> option
+ backfill: basic functionality and tests
+ backfill: add builtin boilerplate
+ Merge branch 'master' into ds/backfill
+ Merge branch 'ds/path-walk-1' into ds/backfill

Lazy-loading missing files in a blobless clone on demand is costly as it tends to be one-blob-at-a-time. "git backfill" is introduced to help bulk-download necessary files beforehand.
cf. <[email protected]>
source: <[email protected]>

* jt/rev-list-missing-print-info (2025-02-05) 2 commits (merged to 'next' on 2025-02-10 at 88955fe5b4)
+ rev-list: extend print-info to print missing object type
+ rev-list: add print-info action to print missing object path

"git rev-list --missing=" learned to accept "print-info" that gives known details expected of the missing objects, like path and type.
cf. <CAP8UFD31kbtqXQDp9LyA+x+h+m592=HQHHbskSfar3S2GOfWVg@mail.gmail.com>
source: <[email protected]>

* lo/t7603-path-is-file-update (2025-02-10) 1 commit (merged to 'next' on 2025-02-11 at c4ad516cd7)
+ t7603: replace test -f by test_path_is_file

Test clean-up.

source: <[email protected]>

* ps/send-pack-unhide-error-in-atomic-push (2025-02-03) 8 commits (merged to 'next' on 2025-02-10 at 7d93e5ad97)
+ send-pack: gracefully close the connection for atomic push
+ t5543: atomic push reports exit code failure
+ send-pack: new return code "ERROR_SEND_PACK_BAD_REF_STATUS"
+ t5548: add porcelain push test cases for dry-run mode
+ t5548: add new porcelain test cases
+ t5548: refactor test cases by resetting upstream
+ t5548: refactor to reuse setup_upstream() function
+ t5504: modernize test by moving heredocs into test bodies

"git push --atomic --porcelain" used to ignore failures from the other side, losing the error status from the child process, which has been corrected.
cf. <[email protected]>
source: <20250203-pks-push-atomic-respect-exit-code-v5-0-d66481e36622@pks.im>

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

* ad/set-default-target-in-makefiles (2025-02-18) 1 commit
- Makefile: set default goals in makefiles

Correct the default target in Documentation/Makefile, and future-proof all Makefiles from similar breakages by declaring the default target (which happens to be "all") upfront.

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

* bc/diff-reject-empty-arg-to-pickaxe (2025-02-18) 1 commit
- diff: don't crash with empty argument to -G or -S

The -G/-S options to the "diff" family of commands caused us to hit a BUG() when they get no values; they have been corrected.

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

* md/userdiff-bash-update (2025-02-18) 1 commit
. userdiff: extend Bash pattern to cover more shell function forms

The userdiff patterns for shell language have been updated.

Broken.
source: <[email protected]>

* ms/rename-match-name-with-pattern (2025-02-18) 1 commit
- refspec: clarify function naming and documentation

Code renaming.

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

* po/meson-perl-fix (2025-02-18) 2 commits
- meson: fix Perl version check for Meson versions before 1.7.0
- meson: bump minimum required Perl version to 5.26.0

Upgrade the minimum Perl version enforced by meson-based build to match what Makefile-based build uses.

Will merge to 'next'?
cf. <[email protected]>
source: <[email protected]>

* ps/meson-contrib-bits (2025-02-18) 12 commits
- ci: exercise credential helpers
- ci: fix propagating UTF-8 test locale in musl-based Meson job
- meson: wire up Gitk
- gitk: extract script to build Gitk
- meson: wire up static analysis via Coccinelle
- meson: wire up git-contacts(1)
- meson: wire up credential helpers
- contrib/credential: fix compilation of "osxkeychain" helper
- contrib/credential: fix compiling "libsecret" helper
- contrib/credential: fix compilation of wincred helper with MSVC
- contrib/credential: fix "netrc" tests with out-of-tree builds
- GIT-BUILD-OPTIONS: propagate project's source directory

Update meson-based build procedure to cover contrib/ and other places as well.
source: <[email protected]>

* pw/merge-tree-stdin-deadlock-fix (2025-02-18) 5 commits
- merge-tree: fix link formatting in html docs
- merge-tree: improve docs for --stdin
- merge-tree: only use basic merge config
- merge-tree: remove redundant code
- merge-tree --stdin: flush stdout to avoid deadlock

"git merge-tree --stdin" has been improved (including a workaround for a deadlock).

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

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

* mh/doc-commit-title-not-subject (2025-02-18) 1 commit
- doc: use 'title' consistently

Update "git commit" documentation to refer to commit titles as such, not "subject".

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

* tb/new-make-fix (2025-02-13) 1 commit
(merged to 'next' on 2025-02-18 at 8fd74ceeed)
+ Makefile: remove accidental recipe prefix in conditional

Workaround the overly picky HT/SP rule in newer GNU Make.

Will merge to 'master'.
source: <a79e9e9f50410721d85747b03559d55be98bca20.1739478347.git.me@ttaylorr.com>

* ms/merge-recursive-string-list-micro-optimization (2025-02-13) 1 commit
- merge-recursive: optimize time complexity for process_renames

source: <[email protected]>

* pb/doc-follow-remote-head (2025-02-14) 2 commits
- config/remote.txt: improve wording for 'remote.<name>.followRemoteHEAD'
- config/remote.txt: reunite 'severOption' description paragraphs

source: <[email protected]>

* ua/update-server-info-sans-the-repository (2025-02-10) 1 commit (merged to 'next' on 2025-02-13 at d4e8288c9b)
+ builtin/update-server-info: remove the_repository global variable

Code clean-up.

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

* en/doc-renormalize (2025-02-11) 1 commit
(merged to 'next' on 2025-02-13 at 2069f4865c)
+ doc: clarify the intent of the renormalize option in the merge machinery

Doc updates.

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

* jc/doc-boolean-synonyms (2025-02-11) 1 commit
(merged to 'next' on 2025-02-13 at ab142d21e8)
+ doc: centrally document various ways tospell true and false

Doc updates.

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

* da/xdiff-w-sign-compare-workaround (2025-02-12) 6 commits (merged to 'next' on 2025-02-18 at 4af44766d5)
+ xdiff: avoid signed vs. unsigned comparisons in xutils.c
+ xdiff: avoid signed vs. unsigned comparisons in xpatience.c
+ xdiff: avoid signed vs. unsigned comparisons in xhistogram.c
+ xdiff: avoid signed vs. unsigned comparisons in xemit.c
+ xdiff: avoid signed vs. unsigned comparisons in xdiffi.c
+ xdiff: move sign comparison warning guard into each file

Noises from "-Wsign-compare" in the borrowed xdiff code has been squelched.

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

* jt/diff-pairs (2025-02-12) 4 commits
- builtin/diff-pairs: allow explicit diff queue flush
- builtin: introduce diff-pairs command
- diff: return diff_filepair from diff queue helpers
- Merge branch 'bc/doc-adoc-not-txt' into jt/diff-pairs

A post-processing filter for "diff --raw" output has been introduced.

Needs review (and most likely a bit more polish).
source: <[email protected]>

* kn/ref-migrate-skip-reflog (2025-02-12) 1 commit
- builtin/refs: add '--skip-reflog' flag to bypass reflog migration

"git refs migrate" can optionally be told not to migrate the reflog.

Comments?
cf. <[email protected]>
source: <20250212-477-refs-migrate-add-a-flag-to-ignore-reflogs-during-migration-v3-1-98b2c4d2bb0c@gmail.com>

* ps/path-sans-the-repository (2025-02-07) 16 commits
- path: adjust last remaining users of the_repository
- environment: move access to "core.sharedRepository" into repo settings
- environment: move access to "core.hooksPath" into repo settings
- repo-settings: introduce function to clear struct
- path: drop git_path() in favor of repo_git_path()
- rerere: let rerere_path() write paths into a caller-provided buffer
- path: drop git_common_path() in favor of repo_common_path()
- worktree: return allocated string from get_worktree_git_dir()
- path: drop git_path_buf() in favor of repo_git_path_replace()
- path: drop git_pathdup() in favor of repo_git_path()
- path: drop unused strbuf_git_path() function
- path: refactor repo_submodule_path() family of functions
- submodule: refactor submodule_to_gitdir() to accept a repo
- path: refactor repo_worktree_path() family of functions
- path: refactor repo_git_path() family of functions
- path: refactor repo_common_path() family of functions

The path.[ch] API takes an explicit repository parameter passed throughout the callchain, instead of relying on the_repository singleton instance.
source: <20250207-b4-pks-path-drop-the-repository-v2-0-13cad3c11b8a@pks.im>

* pw/rebase-i-ff-empty-commit (2025-02-11) 1 commit
- rebase -i: reword empty commit after fast-forward

"git rebase -i" failed to allow rewording an empty commit that has been fast-forwarded.
source: <[email protected]>

* ib/diff-S-G-with-longhand (2025-02-12) 10 commits
- diff: docs: Use --patch-{grep,modifies} over -G/-S
- diff: --pickaxe-{all,regex} help: Add --patch-{grep,modifies}
- diff: test: Use --patch-{grep,modifies} over -G/-S
- completion: Support --patch-{grep,modifies}
- diff: --patch-{grep,modifies} arg names for -G and -S
- docs: gitdiffcore: -G and -S: Use regex/string placeholders
- diff: short help: Add -G and --pickaxe-grep
- diff: short help: Correct -S description
- diff: -G description: Correct copy/paste error
- t/t4209-log-pickaxe: Naming typo: -G takes a regex

The commands in the "diff" family learned longhands for "-S" and "-G" options.

The core part looked mostly good.
source: <[email protected]>

* ps/reftable-windows-unlink-fix (2025-02-18) 2 commits
- reftable: ignore file-in-use errors when unlink(3p) fails on Windows
- Merge branch 'ps/reftable-sans-compat-util' into ps/reftable-windows-unlink-fix (this branch uses ps/reftable-sans-compat-util.)

Portability fix.

Waiting for the base topic to settle.
source: <20250206-b4-pks-reftable-win32-in-use-errors-v2-1-56985a4f6186@pks.im>

* ps/build-meson-fixes-0130 (2025-01-30) 14 commits
- gitlab-ci: restrict maximum number of link jobs on Windows
- meson: consistently use custom program paths to resolve programs
- meson: fix overwritten git variable
- meson: prevent finding sed(1) in a loop
- meson: improve handling of sane_tool_path option
- meson: improve PATH handling
- meson: drop separate version library
- meson: stop linking libcurl into all executables
- meson: introduce libgit_curl dependency
- meson: simplify use of the common-main library
- meson: inline the static 'git' library
- meson: fix OpenSSL fallback when not explicitly required
- meson: fix exec path with enabled runtime prefix
- Merge branch 'ps/build-meson-fixes' into ps/build-meson-fixes-0130

Assorted fixes and improvements to the build procedure based on meson.

Needs review.
source: <[email protected]>

* ps/reftable-sans-compat-util (2025-02-18) 18 commits
- Makefile: skip reftable library for Coccinelle
- reftable: decouple from Git codebase by pulling in "compat/posix.h"
- git-compat-util.h: split out POSIX-emulating bits
- compat/mingw: split out POSIX-related bits
- reftable/basics: introduce REFTABLE_UNUSED annotation
- reftable/basics: stop using SWAP() macro
- reftable/stack: stop using sleep_millisec()
- reftable/system: introduce reftable_rand()
- reftable/reader: stop using ARRAY_SIZE() macro
- reftable/basics: provide wrappers for big endian conversion
- reftable/basics: stop using st_mult() in array allocators
- reftable: stop using BUG() in trivial cases
- reftable/record: don't BUG() in reftable_record_cmp()
- reftable/record: stop using BUG() in reftable_record_init()
- reftable/record: stop using COPY_ARRAY()
- reftable/blocksource: stop using xmmap()
- reftable/stack: stop using write_in_full()
- reftable/stack: stop using read_in_full()
(this branch is used by ps/reftable-windows-unlink-fix.)

Make the code in reftable library less reliant on the service routines it used to borrow from Git proper, to make it easier to use by external users of the library.

Waiting for Acks, especially for Windows bits?
source: <20250218-pks-reftable-drop-git-compat-util-v6-0-8c1f39fb4c02@pks.im>

* ac/doc-http-ssl-type-config (2025-02-05) 1 commit (merged to 'next' on 2025-02-13 at 4767266eb4)
+ docs: indicate http.sslCertType and sslKeyType

Two configuration variables about SSL authentication material that weren't mentioned in the documentations are now mentioned.

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

* sj/ref-consistency-checks-more (2025-02-13) 8 commits
- builtin/fsck: add git refs verify child process
- packed-backend: check whether the "packed-refs" is sorted
- packed-backend: add "packed-refs" entry consistency check
- packed-backend: check whether the refname contains NUL characters
- packed-backend: add "packed-refs" header consistency check
- packed-backend: check whether the "packed-refs" is regular file
- builtin/refs: get worktrees without reading head information
- t0602: use subshell to ensure working directory unchanged

"git fsck" becomes more careful when checking the refs.

Comments?
source: <Z67LkxAFIAeaYr0U@ArchLinux>

* ua/os-version-capability (2025-02-18) 7 commits
- fixup! agent: advertise OS name via agent capability
- agent: advertise OS name via agent capability
- t5701: add setup test to remove side-effect dependency
- version: extend get_uname_info() to hide system details
- version: refactor get_uname_info()
- version: refactor redact_non_printables()
- version: replace manual ASCII checks with isprint() for clarity

The value of "uname -s" is by default sent over the wire as a new capability, with an opt-out for privacy-concious folks.

Will merge to 'next' after squashing the fixup in???
source: <[email protected]>

* jc/doc-attr-tree (2024-12-14) 1 commit
- doc: give attr.tree a bit more visibility

Make sure that "git --attr-source=X", GIT_ATTR_SOURCE, and attr.tree configuration variables appear at the same places in the documentation.

On hold.
cf. <[email protected]>
source: <[email protected]>

* cc/lop-remote (2025-02-18) 3 commits
- doc: add technical design doc for large object promisors
- promisor-remote: check advertised name or URL
- Add 'promisor-remote' capability to protocol v2

Large-object promisor protocol extension.

Comments?
source: <[email protected]>

* tb/incremental-midx-part-2 (2024-11-20) 15 commits
- 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

Incrementally updating multi-pack index files.

Needs review.
source: <[email protected]>

* ej/cat-file-remote-object-info (2025-01-14) 8 commits
- cat-file: add remote-object-info to batch-command
- transport: add client support for object-info
- serve: advertise object-info feature
- fetch-pack: move fetch initialization
- fetch-pack: refactor packet writing
- t1006: split test utility functions into new "lib-cat-file.sh"
- cat-file: add declaration of variable i inside its for loop
- git-compat-util: add strtoul_ul() with error handling

"git cat-file --batch" and friends can optionally ask a remote server about objects it does not have.

Will discard.
Has seen no activity or support for a month or so.
source: <[email protected]>

--------------------------------------------------
[Discarded]

* sk/maintenance-remote-prune (2025-01-03) 1 commit . maintenance: add prune-remote-refs task

A new periodic maintenance task to run "git remote prune" has been introduced.

Will discard.
Has been expecting a reroll for too long.
source: <[email protected]>

* mh/meson-credential-helpers (2025-02-13) 2 commits . meson: wire up credential-libsecret
. meson: wire up credential-wincred

Superseded by the ps/meson-contrib-bits topic.
source: <[email protected]>

#1 lore raw
Quoted 18 lines · Junio C Hamano

* ps/path-sans-the-repository (2025-02-07) 16 commits
- path: adjust last remaining users of the_repository
- environment: move access to "core.sharedRepository" into repo settings
- environment: move access to "core.hooksPath" into repo settings
- repo-settings: introduce function to clear struct
- path: drop git_path() in favor of repo_git_path()
- rerere: let rerere_path() write paths into a caller-provided buffer
- path: drop git_common_path() in favor of repo_common_path()
- worktree: return allocated string from get_worktree_git_dir()
- path: drop git_path_buf() in favor of repo_git_path_replace()
- path: drop git_pathdup() in favor of repo_git_path()
- path: drop unused strbuf_git_path() function
- path: refactor repo_submodule_path() family of functions
- submodule: refactor submodule_to_gitdir() to accept a repo
- path: refactor repo_worktree_path() family of functions
- path: refactor repo_git_path() family of functions
- path: refactor repo_common_path() family of functions

Quoted 4 lines

The path.[ch] API takes an explicit repository parameter passed throughout the callchain, instead of relying on the_repository singleton instance.
source: <20250207-b4-pks-path-drop-the-repository-v2-0-13cad3c11b8a@pks.im>

This series has been Ack'd by both Karthik and Jialuo -- do you want me to pull in additional reviewers to move it forward?

Quoted 16 lines

* ps/build-meson-fixes-0130 (2025-01-30) 14 commits
- gitlab-ci: restrict maximum number of link jobs on Windows
- meson: consistently use custom program paths to resolve programs
- meson: fix overwritten git variable
- meson: prevent finding sed(1) in a loop
- meson: improve handling of sane_tool_path option
- meson: improve PATH handling
- meson: drop separate version library
- meson: stop linking libcurl into all executables
- meson: introduce libgit_curl dependency
- meson: simplify use of the common-main library
- meson: inline the static 'git' library
- meson: fix OpenSSL fallback when not explicitly required
- meson: fix exec path with enabled runtime prefix
- Merge branch 'ps/build-meson-fixes' into ps/build-meson-fixes-0130

Quoted 5 lines

Assorted fixes and improvements to the build procedure based on meson.

Needs review.
source: <[email protected]>

This one has also received two reviews by Toon and Justin and it has been cooking for quite a while, so the same question here.

Thanks!

Patrick

#2 lore raw
Quoted 19 lines · Patrick Steinhardt
Quoted 18 lines · Junio C Hamano

* ps/path-sans-the-repository (2025-02-07) 16 commits
- path: adjust last remaining users of the_repository
- environment: move access to "core.sharedRepository" into repo settings
- environment: move access to "core.hooksPath" into repo settings
- repo-settings: introduce function to clear struct
- path: drop git_path() in favor of repo_git_path()
- rerere: let rerere_path() write paths into a caller-provided buffer
- path: drop git_common_path() in favor of repo_common_path()
- worktree: return allocated string from get_worktree_git_dir()
- path: drop git_path_buf() in favor of repo_git_path_replace()
- path: drop git_pathdup() in favor of repo_git_path()
- path: drop unused strbuf_git_path() function
- path: refactor repo_submodule_path() family of functions
- submodule: refactor submodule_to_gitdir() to accept a repo
- path: refactor repo_worktree_path() family of functions
- path: refactor repo_git_path() family of functions
- path: refactor repo_common_path() family of functions

Quoted 7 lines
Quoted 4 lines

The path.[ch] API takes an explicit repository parameter passed throughout the callchain, instead of relying on the_repository singleton instance.
source: <20250207-b4-pks-path-drop-the-repository-v2-0-13cad3c11b8a@pks.im>

This series has been Ack'd by both Karthik and Jialuo -- do you want me to pull in additional reviewers to move it forward?

Nah, I've seen their comments on the first round. Let me give it a quick scan before marking it for 'next'.

Quoted 16 lines
Quoted 16 lines

* ps/build-meson-fixes-0130 (2025-01-30) 14 commits
- gitlab-ci: restrict maximum number of link jobs on Windows
- meson: consistently use custom program paths to resolve programs
- meson: fix overwritten git variable
- meson: prevent finding sed(1) in a loop
- meson: improve handling of sane_tool_path option
- meson: improve PATH handling
- meson: drop separate version library
- meson: stop linking libcurl into all executables
- meson: introduce libgit_curl dependency
- meson: simplify use of the common-main library
- meson: inline the static 'git' library
- meson: fix OpenSSL fallback when not explicitly required
- meson: fix exec path with enabled runtime prefix
- Merge branch 'ps/build-meson-fixes' into ps/build-meson-fixes-0130

Quoted 8 lines
Quoted 5 lines

Assorted fixes and improvements to the build procedure based on meson.

Needs review.
source: <[email protected]>

This one has also received two reviews by Toon and Justin and it has been cooking for quite a while, so the same question here.

Yup, this one looks good to me, too, from a cursory look. Let me mark it for 'next'.

Thanks.