Skip to contentSkip to conversation

What's cooking in git.git (May 2025, #03; Wed, 7)

DISCUSSION Junio C Hamano 2 participants 3 messages May 8, 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/

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

* ag/doc-send-email (2025-05-07) 3 commits
- docs: add credential helper for outlook and gmail in OAuth list of helpers
- docs: improve send-email documentation
- send-mail: improve checks for valid_fqdn

source: <PN3PR01MB9597208F139D23AF3436B16AB888A@PN3PR01MB9597.INDPRD01.PROD.OUTLOOK.COM>

* jc/t6011-mv-ro-fix (2025-05-07) 1 commit
- t6011: fix misconversion from perl to sed

source: <[email protected]>

* ps/object-store (2025-05-06) 18 commits
- odb: rename read_object_with_reference()
- odb: rename pretend_object_file()
- odb: rename has_object()
- odb: rename repo_read_object_file()
- odb: rename oid_object_info()
- odb: trivial refactorings to get rid of the_repository
- odb: get rid of the_repository when handling submodule backends
- odb: get rid of the_repository when handling the primary backend
- odb: get rid of the_repository in for_each() functions
- odb: get rid of the_repository when handling alternates
- odb: get rid of the_repository in assert_oid_type()
- odb: get rid of the_repository in assert_oid_type()
- odb: get rid of the_repository in find_odb()
- odb: introduce parent pointers
- object-store: rename files to "odb.{c,h}"
- object-store: rename object_directory to odb_backend
- object-store: rename raw_object_store to object_database
- Merge branch 'ps/object-store-cleanup' into ps/object-store (this branch uses ps/object-store-cleanup.)

source: <20250506-pks-object-store-wo-the-repository-v1-0-c05b82e7b126@pks.im>

* sj/use-mmap-to-check-packed-refs (2025-05-07) 4 commits
- packed-backend: mmap large "packed-refs" file during fsck
- packed-backend: extract munmap operation for MMAP_TEMPORARY
- packed-backend: extract snapshot allocation in load_contents
- packed-backend: fsck should allow an empty "packed-refs" file

source: <aBtzn4nwLsI9p5Cp@ArchLinux>

* tb/macos-false-but-the-compiler-does-not-know-it-fix (2025-05-07) 1 commit
- intialize false_but_the_compiler_does_not_know_it_

source: <[email protected]>

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

* cf/wrapper-bsd-eloop (2025-05-06) 1 commit
- wrapper: NetBSD gives EFTYPE and FreeBSD gives EMFILE where POSIX uses ELOOP

The fallback implementation of open_nofollow() depended on open("symlink", O_NOFOLLOW) to set errno to ELOOP, but a few BSD derived systems use different errno, which has been worked around.

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

* js/ci-build-win-in-release-mode (2025-05-05) 1 commit
- ci(win+Meson): build in Release mode

win+Meson CI pipeline, unlike other pipelines for Windows, used to build artifacts in develper mode, which has been changed to build them in release mode for consistency.

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

* js/ci-buildsystems-cleanup (2025-05-05) 3 commits
(merged to 'next' on 2025-05-06 at b2038f9a91)
+ config.mak.uname: drop the vcxproj target
+ contrib/buildsystems: drop support for building . vcproj/.vcxproj files
+ ci: stop linking the prove cache

Code clean-up around stale CI elements and building with Visual Studio.

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

* kh/docfixes (2025-05-05) 2 commits
(merged to 'next' on 2025-05-06 at 6cd8af0fa1)
+ doc: branch: fix inline-verbatim
+ doc: reflog: fix drop subheading

Docfixes.

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

* kj/glob-path-with-special-char (2025-05-05) 1 commit (merged to 'next' on 2025-05-06 at 629a3ecd64)
+ dir.c: literal match with wildcard in pathspec should still glob

"git add 'f?o'" did not add 'foo' if 'f?o', an unusual pathname, also existed on the working tree, which has been corrected.

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

* ps/ci-test-aggreg-fix-for-meson (2025-05-05) 1 commit (merged to 'next' on 2025-05-06 at 40306a837b)
+ ci: fix aggregation of test results with Meson

Test result aggregation did not work in Meson based CI jobs.

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

* cc/promisor-remote-capability (2025-04-29) 3 commits
- promisor-remote: allow a client to check fields
- promisor-remote: allow a server to advertise more fields
- promisor-remote: refactor to get rid of 'struct strvec'

Expecting a reroll.
cf. <CAP8UFD2LzijGsU3-aO-JBPtEfT+UtR_X_mqcdVigoOfdVAg1uA@mail.gmail.com>
source: <[email protected]>

* en/hashmap-clear-fix (2025-04-29) 1 commit
(merged to 'next' on 2025-04-30 at b0cdbeb28e)
+ hashmap: ensure hashmaps are reusable after hashmap_clear()

hashmap API clean-up to ensure hashmap_clear() leaves a cleared map in a reusable state.

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

* js/diff-codeql-false-positive-workaround (2025-04-29) 1 commit (merged to 'next' on 2025-05-01 at a840276032)
+ diff: check range before dereferencing an array element

Work around false positive given by CodeQL.

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

* ng/xdiff-truly-minimal (2025-04-29) 1 commit (merged to 'next' on 2025-05-05 at 62e0c33153)
+ xdiff: disable cleanup_records heuristic with --minimal

"git diff --minimal" used to give non-minimal output when its optimization kicked in, which has been disabled.

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

* ds/scalar-no-maintenance (2025-05-07) 4 commits
- scalar reconfigure: add --maintenance=<mode> option
- scalar clone: add --no-maintenance option
- scalar register: add --no-maintenance option
- scalar: customize register_dir()'s behavior

Two "scalar" subcommands that adds a repository that hasn't been under "scalar"'s control are taught an option not to enable the scheduled maintenance on it.

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

* ps/mv-contradiction-fix (2025-04-30) 2 commits (merged to 'next' on 2025-05-01 at 5c27b05f45)
+ builtin/mv: convert assert(3p) into BUG()
+ builtin/mv: bail out when trying to move child and its parent

"git mv a a/b dst" would ask to move the directory 'a' itself, as well as its contents, in a single destination directory, which is a contradicting request that is impossible to satisfy. This case is now detected and the command errors out.

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

* en/get-tree-entry-doc (2025-05-02) 1 commit
(merged to 'next' on 2025-05-06 at cddf407919)
+ tree-walk.h: fix incorrect API comment

Doc update.

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

* jc/doc-synopsis-option-markup (2025-05-02) 3 commits
- git-daemon doc: update mark-up of synopsis option descriptions
- git-{var,write-tree} docs: update mark-up of synopsis option descriptions
- git-verify-* doc: update mark-up of synopsis option descriptions

Doc mark-up fixes.

Comments?
source: <[email protected]>

* jc/you-still-use-whatchanged (2025-05-05) 6 commits
- whatschanged: list it in BreakingChanges document
- whatchanged: remove when built with WITH_BREAKING_CHANGES
- whatchanged: require --i-still-use-this
- tests: prepare for a world without whatchanged
- doc: prepare for a world without whatchanged
- you-still-use-that??: help deprecating commands for removal

"git whatchanged" that is longer to type than "git log --raw" which is its modern rough equivalent has outlived its usefulness more than 10 years ago. Plan to deprecate and remove it.

Comments?
source: <[email protected]>

* jc/ci-skip-unavailable-external-software (2025-04-25) 2 commits (merged to 'next' on 2025-05-05 at a13d958c1b)
+ ci: download JGit from maven, not eclipse.org
+ ci: update the message for unavailble third-party software

Further refinement on CI messages when an optional external software is unavailable (e.g. due to third-party service outage).

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

* ps/maintenance-missing-tasks (2025-05-07) 6 commits
- builtin/maintenance: introduce "rerere-gc" task
- builtin/gc: move rerere garbage collection into separate function
- builtin/maintenance: introduce "worktree-prune" task
- builtin/gc: move pruning of worktrees into a separate function
- builtin/gc: remove global variables where it is trivial to do
- builtin/gc: fix indentation of cmd_gc() parameters

Make repository clean-up tasks "gc" can do available to "git maintenance" front-end.

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

* ag/send-email-outlook (2025-04-29) 2 commits (merged to 'next' on 2025-05-05 at c85e7a2e65)
+ send-email: add --[no-]outlook-id-fix option
+ send-email: retrieve Message-ID from outlook SMTP server

Update send-email to work better with Outlook's smtp server.

Will merge to 'master'.
source: <PN3PR01MB95973F4B26A8CE2BF17A3AB1B8842@PN3PR01MB9597.INDPRD01.PROD.OUTLOOK.COM>
source: <PN3PR01MB9597DA8661D1AFDF4C927A11B8812@PN3PR01MB9597.INDPRD01.PROD.OUTLOOK.COM>

* ds/fix-thin-fix (2025-04-28) 3 commits (merged to 'next' on 2025-05-05 at 200a988f98)
+ index-pack: allow revisiting REF_DELTA chains
+ t5309: create failing test for 'git index-pack'
+ test-tool: add pack-deltas helper

"git index-pack --fix-thin" used to abort to prevent a cycle in delta chains from forming in a corner case even when there is no such cycle.

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

* ps/object-store-cleanup (2025-04-29) 8 commits
(merged to 'next' on 2025-05-05 at f91eca32c9)
+ object-store: drop repo_has_object_file()
+ treewide: convert users of repo_has_object_file() to has_object()
+ object-store: allow fetching objects via has_object()
+ object-store: move function declarations to their respective subsystems
+ object-store: move and rename odb_pack_keep()
+ object-store: drop loose_object_path()
+ object-store: move struct packed_git into "packfile.h"
+ Merge branch 'ps/object-file-cleanup' into ps/object-store-cleanup (this branch is used by ps/object-store.)

Further code clean-up in the object-store layer.

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

* cc/fast-import-export-signature-names (2025-04-24) 1 commit . fast-(import|export): improve on the signature algorithm name

Clean up the way how signature on commit objects are exported to and imported from fast-import stream.

Expecting a reroll.
cf. <[email protected]>
cf. https://github.com/git/git/actions/runs/14671270673/job/41178138711
source: <[email protected]>

* dd/meson-perl-custom-path (2025-04-24) 1 commit
- meson: allow customize perl installation path

Meson-based build framework update.

Looking good. Expecting a minor reroll.
cf. <[email protected]>
source: <80a2a6ce7c6b05323cf931cdc20d4decb6270002.1745507677.git.congdanhqx@gmail.com>

* ps/meson-bin-sh (2025-04-25) 2 commits (merged to 'next' on 2025-05-05 at 546cdf31bf)
+ meson: prefer shell at "/bin/sh"
+ meson: report detected runtime executable paths

Meson-based build framework update.

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

* sj/string-list-typefix (2025-04-22) 5 commits
- u-string-list: move "remove duplicates" test to "u-string-list.c"
- u-string-list: move "filter string" test to "u-string-list.c"
- u-string-list: move "test_split_in_place" to "u-string-list.c"
- u-string-list: move "test_split" into "u-string-list.c"
- string-list: fix sign compare warnings

Code and test clean-up around string-list API.

Expecting a reroll.
cf. <[email protected]>
source: <aAetW0dan8S3Fljq@ArchLinux>

* tb/midx-avoid-cruft-packs (2025-04-15) 9 commits
- repack: exclude cruft pack(s) from the MIDX where possible
- pack-objects: introduce '--stdin-packs=follow'
- pack-objects: swap 'show_{object,commit}_pack_hint'
- pack-objects: fix typo in 'show_object_pack_hint()'
- pack-objects: perform name-hash traversal for unpacked objects
- pack-objects: declare 'rev_info' for '--stdin-packs' earlier
- pack-objects: factor out handling '--stdin-packs'
- pack-objects: limit scope in 'add_object_entry_from_pack()'
- pack-objects: use standard option incompatibility functions

"pack-objects" has been taught to avoid pointing into objects in cruft packs from midx.

Comments?
source: <[email protected]>

* tb/pack-bitmap-lookup-tables (2025-04-17) 4 commits
- t/perf/lib-bitmap.sh: avoid test_perf during setup
- t/perf: avoid testing bitmaps without lookup table
- p5312: removed duplicate performance test script
- pack-bitmap: write lookup table extension by default

Enable lookup tables extension in pack bitmap (and midx bitmap) by default.

Comments?
source: <[email protected]>

* pb/status-rebase-fixes (2025-03-28) 4 commits
- wt-status: suggest 'git rebase --continue' to conclude 'merge' instruction
- wt-status: also abbreviate 'merge' and 'fixup -C' lines during rebase
- SQUASH??? - <CAPig+cS92W_gYuNsaTvQxiP3xBK7Wpg0__uVkgAU1x0OFJUZgQ@mail.gmail.com>
- rebase -r: do create merge commit after empty resolution

A few fixes around "git status" while "git rebase" is running, plus a corner case bug fix for "git rebase -r".

Expecting a (small and hopefully final) clarifying reroll. cf. <[email protected]> cf. <[email protected]>
source: <[email protected]>

* md/userdiff-bash-shell-function (2025-04-01) 1 commit
- userdiff: extend Bash pattern to cover more shell function forms

The userdiff pattern for shell scripts has been updated to cope with more bash-isms.

Comments?
source: <[email protected]>

* sc/bundle-uri-use-all-refs-in-bundle (2025-04-25) 2 commits
- bundle-uri: add test for bundle-uri clones with tags
- bundle-uri: copy all bundle references ino the refs/bundle space

Bundle-URI feature did not use refs recorded in the bundle other than normal branches as anchoring points to optimize the follow-up fetch during "git clone"; now it is told to utilize all.

Ready?
source: <[email protected]>

* ds/path-walk-2 (2025-03-25) 13 commits
- pack-objects: allow --shallow and --path-walk
- path-walk: add new 'edge_aggressive' option
- pack-objects: thread the path-based compression
- pack-objects: refactor path-walk delta phase
- scalar: enable path-walk during push via config
- pack-objects: enable --path-walk via config
- repack: add --path-walk option
- t5538: add tests to confirm deltas in shallow pushes
- pack-objects: introduce GIT_TEST_PACK_PATH_WALK
- p5313: add performance tests for --path-walk
- pack-objects: update usage to match docs
- pack-objects: add --path-walk option
- pack-objects: extract should_attempt_deltas()

"git pack-objects" learns to find delta bases from blobs at the same path, using the --path-walk API.

Will merge to 'next'?
cf. <[email protected]>
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.

Expecting a reroll.
source: <[email protected]>

* ej/cat-file-remote-object-info (2025-02-24) 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.

Expecting a reroll.
cf. <CAN2LT1Cc-UaUpabqcGascicR3nk6ZdFythamKje33Orhy5WoNA@mail.gmail.com>
source: <[email protected]>

#1 lore raw

Am 08.05.25 um 03:26 schrieb Junio C Hamano:

Quoted 8 lines

* md/userdiff-bash-shell-function (2025-04-01) 1 commit
- userdiff: extend Bash pattern to cover more shell function forms

The userdiff pattern for shell scripts has been updated to cope with more bash-isms.

Comments?
source: <[email protected]>

This round has room for improvement. I posted a review yesterday:
https://lore.kernel.org/git/[email protected]/

-- Hannes

#2 lore raw
Quoted 4 lines · Johannes Sixt

Am 08.05.25 um 03:26 schrieb Junio C Hamano:

Quoted 3 lines

* md/userdiff-bash-shell-function (2025-04-01) 1 commit
- userdiff: extend Bash pattern to cover more shell function forms

Quoted 8 lines
Quoted 5 lines

The userdiff pattern for shell scripts has been updated to cope with more bash-isms.

Comments?
source: <[email protected]>

This round has room for improvement. I posted a review yesterday:
https://lore.kernel.org/git/[email protected]/

Yeah, I indeed saw your thoughtful review. Thanks for pointing this out.