Skip to contentSkip to conversation

What's cooking in git.git (Nov 2024, #06; Thu, 14)

DISCUSSION Junio C Hamano 5 participants 8 messages Nov 15, 2024 – Nov 18, 2024

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).

A few commits to update git-gui are in. There are still too many topics that are left unreviewed, and the 'next' branch is not gaining topics as quickly as it usually would.

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']

* ak/t1016-style (2024-11-03) 1 commit
(merged to 'next' on 2024-11-05 at ee100e90d3)
+ t1016: clean up style

Test modernization.
source: <[email protected]>

* en/shallow-exclude-takes-a-ref-fix (2024-11-04) 2 commits (merged to 'next' on 2024-11-05 at 8c5d52930b)
+ doc: correct misleading descriptions for --shallow-exclude
+ upload-pack: fix ambiguous error message

The "--shallow-exclude=<ref>" option to various history transfer commands takes a ref, not an arbitrary revision.
source: <[email protected]>

* jt/commit-graph-missing (2024-11-05) 2 commits (merged to 'next' on 2024-11-06 at b4dd083c2a)
+ fetch-pack: die if in commit graph but not obj db
+ Revert "fetch-pack: add a deref_without_lazy_fetch_extended()"

A regression where commit objects missing from a commit-graph can cause an infinite loop when doing a fetch in a partial clone has been fixed.
source: <[email protected]>

* ps/leakfixes-part-9 (2024-11-04) 22 commits
(merged to 'next' on 2024-11-05 at 0260dbd8bd)
+ list-objects-filter-options: work around reported leak on error
+ builtin/merge: release output buffer after performing merge
+ dir: fix leak when parsing "status.showUntrackedFiles"
+ t/helper: fix leaking buffer in "dump-untracked-cache"
+ t/helper: stop re-initialization of the_repository
+ sparse-index: correctly free EWAH contents
+ dir: release untracked cache data
+ combine-diff: fix leaking lost lines
+ builtin/tag: fix leaking key ID on failure to sign
+ transport-helper: fix leaking import/export marks
+ builtin/commit: fix leaking cleanup config
+ trailer: fix leaking strbufs when formatting trailers
+ trailer: fix leaking trailer values
+ builtin/commit: fix leaking change data contents
+ upload-pack: fix leaking URI protocols
+ pretty: clear signature check
+ diff-lib: fix leaking diffopts in do_diff_cache()
+ revision: fix leaking bloom filters
+ builtin/grep: fix leak with --max-count=0
+ grep: fix leak in grep_splice_or()
+ t/helper: fix leaks in "reach" test tool
+ builtin/ls-remote: plug leaking server options
(this branch is used by ps/leakfixes-part-10.)

More leakfixes.
source: <[email protected]>

* ps/mingw-rename (2024-11-06) 3 commits
(merged to 'next' on 2024-11-06 at 6dd2fffec7)
+ compat/mingw: support POSIX semantics for atomic renames
+ compat/mingw: allow deletion of most opened files
+ compat/mingw: share file handles created via CreateFileW()

The MinGW compatibility layer has been taught to support POSIX semantics for atomic renames when other process(es) have a file opened at the destination path.
cf. <[email protected]>
source: <[email protected]>

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

* ja/git-add-doc-markup (2024-11-12) 1 commit (merged to 'next' on 2024-11-13 at 1af6d17105)
+ doc: git-add.txt: convert to new style convention

Documentation mark-up updates.

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

* ja/git-diff-doc-markup (2024-11-12) 5 commits
- doc: git-diff: apply format changes to config part
- doc: git-diff: apply format changes to diff-generate-patch
- doc: git-diff: apply format changes to diff-format
- doc: git-diff: apply format changes to diff-options
- doc: git-diff: apply new documentation guidelines

Documentation mark-up updates.
source: <[email protected]>

* jk/test-malloc-debug-check (2024-11-14) 2 commits
- test-lib: move malloc-debug setup after $PATH setup (merged to 'next' on 2024-11-13 at 9aa0331ba1)
+ test-lib: check malloc debug LD_PRELOAD before using

Avoid build/test breakage on a system without working malloc debug support dynamic library.

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

* ps/clar-build-improvement (2024-11-12) 4 commits
- Makefile: let clar header targets depend on their scripts
- cmake: use verbatim arguments when invoking clar commands
- cmake: use SH_EXE to execute clar scripts
- t/unit-tests: convert "clar-generate.awk" into a shell script

Fix for clar unit tests to support CMake build.

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

* jk/fetch-prefetch-double-free-fix (2024-11-12) 3 commits
- refspec: store raw refspecs inside refspec_item
- refspec: drop separate raw_nr count
- fetch: adjust refspec->raw_nr when filtering prefetch refspecs

Double-free fix.

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

* pb/mergetool-errors (2024-11-13) 5 commits
- git-difftool--helper.sh: exit upon initialize_merge_tool errors
- git-mergetool--lib.sh: add error message for unknown tool variant
- git-mergetool--lib.sh: add error message in 'setup_user_tool'
- git-mergetool--lib.sh: use TOOL_MODE when erroring about unknown tool
- completion: complete '--tool-help' in 'git mergetool'

End-user experience of "git mergetool" when the command errors out has been improved.

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

* ps/send-pack-unhide-error-in-atomic-push (2024-11-14) 2 commits
- transport: don't ignore git-receive-pack(1) exit code on atomic push
- 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.

Comments?
source: <20241113-pks-push-atomic-respect-exit-code-v1-0-7965f01e7f4e@pks.im>

* sm/difftool (2024-11-13) 1 commit
- builtin/difftool: intialize some hashmap variables

Use of some uninitialized variables in "git difftool" has been corrected.

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

* tb/multi-pack-reuse-dupfix (2024-11-14) 2 commits
- pack-objects: only perform verbatim reuse on the preferred pack
- t5332-multi-pack-reuse.sh: demonstrate duplicate packing failure

Object reuse code based on multi-pack-index sent an unwanted copy of object.

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

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

* ps/ref-backend-migration-optim (2024-11-08) 10 commits
- reftable/block: optimize allocations by using scratch buffer
- reftable/block: rename block_writer::buf variable
- reftable/writer: optimize allocations by using a scratch buffer
- refs: don't normalize log messages with REF_SKIP_CREATE_REFLOG
- refs: skip collision checks in initial transactions
- refs: use "initial" transaction semantics to migrate refs
- refs/files: support symbolic and root refs in initial transaction
- refs: introduce "initial" transaction flag
- refs/files: move logic to commit initial transaction
- refs: allow passing flags when setting up a transaction

Optimize migration procedure between two ref backends.

Needs review.
source: <[email protected]>

* js/log-remerge-keep-ancestry (2024-11-12) 1 commit
- log: --remerge-diff needs to keep around commit parents

"git log -p --remerge-diff --reverse" was completely broken.

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

* ps/reftable-iterator-reuse (2024-11-08) 9 commits
- refs/reftable: reuse iterators when reading refs
- reftable/merged: drain priority queue on reseek
- reftable/stack: add mechanism to notify callers on reload
- refs/reftable: refactor reflog expiry to use reftable backend
- refs/reftable: refactor reading symbolic refs to use reftable backend
- refs/reftable: read references via struct reftable_backend
- refs/reftable: handle reloading stacks in the reftable backend
- refs/reftable: encapsulate reftable stack
- Merge branch 'ps/reftable-detach' into ps/reftable-iterator-reuse (this branch uses ps/reftable-detach.)

Optimize reading random references out of the reftable backend by allowing reuse of iterator objects.

Needs review.
source: <[email protected]>

* jc/move-is-bare-repository-cfg-variable-to-repo (2024-11-07) 3 commits
- repository: BUG when is_bare_cfg is not initialized
- setup: initialize is_bare_cfg
- git: remove is_bare_repository_cfg global variable

Code rewrite to turn the is_bare_repository_cfg global variable into a member in the the_repo singleton repository object.

Waiting for response to reviews.
source: <[email protected]>

* jk/describe-perf (2024-11-07) 4 commits
- describe: stop traversing when we run out of names
- describe: stop digging for max_candidates+1
- t/perf: add tests for git-describe
- t6120: demonstrate weakness in disjoint-root handling

"git describe" optimization.

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

* js/range-diff-diff-merges (2024-11-11) 1 commit
- range-diff: optionally include merge commits' diffs in the analysis

"git range-diff" learned to optionally show and compare merge commits in the ranges being compared, with the --diff-merges option.

Almost there.
cf. <CABPp-BHNVEvYx4KwmiSQhPqidhPffb5hGBt=uT5NKqBPXC4j0w@mail.gmail.com>
source: <[email protected]>

* ps/leakfixes-part-10 (2024-11-13) 28 commits
- t: remove TEST_PASSES_SANITIZE_LEAK annotations
- test-lib: unconditionally enable leak checking
- t: remove unneeded !SANITIZE_LEAK prerequisites
- t: mark some tests as leak free
- t5601: work around leak sanitizer issue
- git-compat-util: drop now-unused UNLEAK() macro
- global: drop UNLEAK() annotation
- t/helper: fix leaking commit graph in "read-graph" subcommand
- builtin/branch: fix leaking sorting options
- builtin/init-db: fix leaking directory paths
- builtin/help: fix leaks in check_git_cmd()
- help: fix leaking return value from help_unknown_cmd()
- help: fix leaking struct cmdnames
- help: refactor to not use globals for reading config
- builtin/sparse-checkout: fix leaking sanitized patterns
- split-index: fix memory leak in move_cache_to_base_index()
- git: refactor builtin handling to use a struct strvec
- git: refactor alias handling to use a struct strvec
- strvec: introduce new strvec_splice() function
- line-log: fix leak when rewriting commit parents
- bisect: fix various cases where we leak commit list items
- bisect: fix leaking commit list items in check_merge_base()
- bisect: fix multiple leaks in bisect_next_all()
- bisect: fix leaking current_bad_oid
- bisect: fix leaking string in handle_bad_merge_base()
- bisect: fix leaking good/bad terms when reading multipe times
- builtin/blame: fix leaking blame entries with --incremental
- Merge branch 'ps/leakfixes-part-9' into ps/leakfixes-part-10

Leakfixes.

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

* kh/sequencer-comment-char (2024-11-13) 3 commits
- sequencer: comment commit messages properly
- sequencer: comment --reference subject line properly
- sequencer: comment checked-out branch properly

The sequencer failed to honor core.commentString in some places.

Expecting a reroll to improve tests.
cf. <[email protected]> cf. <[email protected]> cf. <[email protected]>
source: <[email protected]>

* ds/full-name-hash (2024-11-04) 7 commits
- test-tool: add helper for name-hash values
- pack-objects: disable --full-name-hash when shallow
- p5313: add size comparison test
- git-repack: update usage to match docs
- pack-objects: add GIT_TEST_FULL_NAME_HASH
- repack: add --full-name-hash option
- pack-objects: add --full-name-hash option

"git pack-objects" and its wrapper "git repack" learned an option to use an alternative path-hash function to improve delta-base selection to produce a packfile with deeper history than window size.

Needs review.
source: <[email protected]>

* jt/repack-local-promisor (2024-11-12) 4 commits (merged to 'next' on 2024-11-13 at 895d633576)
+ index-pack: repack local links into promisor packs
+ t5300: move --window clamp test next to unclamped
+ t0410: use from-scratch server
+ t0410: make test description clearer

"git gc" discards any objects that are outside promisor packs that are referred to by an object in a promisor pack, and we do not refetch them from the promisor at runtime, resulting an unusable repository. Work it around by including these objects in the referring promisor pack at the receiving end of the fetch.

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

* ds/path-walk-1 (2024-11-11) 6 commits
- path-walk: mark trees and blobs as UNINTERESTING
- path-walk: visit tags and cached objects
- path-walk: allow consumer to specify object types
- t6601: add helper for testing path-walk API
- test-lib-functions: add test_cmp_sorted
- path-walk: introduce an object walk by path

Introduce a new API to visit objects in batches based on a common path, or by type.

Comments?
source: <[email protected]>

* bc/ancient-ci (2024-11-01) 3 commits
- Add additional CI jobs to avoid accidental breakage
- ci: remove clause for Ubuntu 16.04
- gitlab-ci: switch from Ubuntu 16.04 to 20.04

Drop support for ancient environments in various CI jobs.

Needs review.
source: <[email protected]>

* cw/worktree-extension (2024-11-01) 9 commits
- worktree: refactor repair_worktree_after_gitdir_move()
- worktree: add relative cli/config options to repair command
- worktree: add relative cli/config options to move command
- worktree: add relative cli/config options to add command
- worktree: add write_worktree_linking_files() function
- worktree: refactor infer_backlink return
- worktree: add relativeWorktrees extension
- setup: correctly reinitialize repository version
- Merge branch 'cw/config-extensions' into cw/worktree

Introduce a new repository extension to prevent older Git versions from mis-interpreting worktrees created with relative paths.

Needs review.
source: <[email protected]>

* kh/bundle-docs (2024-11-08) 4 commits
- Documentation/git-bundle.txt: discuss naïve backups
- Documentation/git-bundle.txt: mention --all in spec. refs
- Documentation/git-bundle.txt: remove old --all example
- Documentation/git-bundle.txt: mention full backup example

Documentation improvements to more prominently call out the use of '--all' when creating bundles.

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

* as/show-index-uninitialized-hash (2024-11-11) 2 commits
- t5300: add test for 'show-index --object-format'
- show-index: fix uninitialized hash function

Regression fix for 'show-index' when run outside of a repository.

Comments?
source: <[email protected]>

* ps/reftable-detach (2024-11-08) 8 commits
- reftable/system: provide thin wrapper for lockfile subsystem
- reftable/stack: drop only use of get_locked_file_path()
- reftable/system: provide thin wrapper for tempfile subsystem
- reftable/stack: stop using fsync_component() directly
- reftable/system: stop depending on "hash.h"
- reftable: explicitly handle hash format IDs
- reftable/system: move "dir.h" to its only user
- Merge branch 'ps/reftable-strbuf' into ps/reftable-detach (this branch is used by ps/reftable-iterator-reuse.)

Isolates the reftable subsystem from the rest of Git's codebase by using fewer pieces of Git's infrastructure.

Needs review.
source: <[email protected]>

* km/config-remote-by-name (2024-10-21) 1 commit
- config: support remote name in includeIf.hasconfig condition

Support conditionally including configuration by remote name, instead of just URL.

Needs review.
source: <[email protected]>

* y5/diff-pager (2024-10-21) 1 commit
- diff: setup pager only before diff contents truly ready

Delay setting up the pager in 'git diff' until after the diff contents itself is fully prepared.

Needs review.
source: <[email protected]>

* la/trailer-info (2024-10-14) 1 commit (merged to 'next' on 2024-11-13 at f038e226f6)
+ trailer: spread usage of "trailer_block" language

Renaming a handful of variables and structure fields.

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

* bc/drop-ancient-libcurl-and-perl (2024-10-23) 12 commits
- gitweb: make use of s///r
- Require Perl 5.26.0
- INSTALL: document requirement for libcurl 7.61.0
- git-curl-compat: remove check for curl 7.56.0
- git-curl-compat: remove check for curl 7.53.0
- git-curl-compat: remove check for curl 7.52.0
- git-curl-compat: remove check for curl 7.44.0
- git-curl-compat: remove check for curl 7.43.0
- git-curl-compat: remove check for curl 7.39.0
- git-curl-compat: remove check for curl 7.34.0
- git-curl-compat: remove check for curl 7.25.0
- git-curl-compat: remove check for curl 7.21.5

Drop support for older libcURL and Perl.

Under discussion.
source: <[email protected]>

* es/oss-fuzz (2024-10-16) 3 commits
- fuzz: port fuzz-url-decode-mem from OSS-Fuzz
- fuzz: port fuzz-parse-attr-line from OSS-Fuzz
- fuzz: port fuzz-credential-from-url-gently from OSS-Fuzz

Backport oss-fuzz tests for us to our codebase.

Needs review.
source: <[email protected]>

* bf/set-head-symref (2024-10-23) 8 commits
- fetch set_head: handle mirrored bare repositories
- fetch: set remote/HEAD if it does not exist
- refs: add create_only option to refs_update_symref_extended
- refs: add TRANSACTION_CREATE_EXISTS error
- remote set-head: better output for --auto
- remote set-head: refactor for readability
- refs: atomically record overwritten ref in update_symref
- t/t5505-remote: set default branch to main

When "git fetch $remote" notices that refs/remotes/$remote/HEAD is missing and discovers what branch the other side points with its HEAD, refs/remotes/$remote/HEAD is updated to point to it.

Needs review.
source: <[email protected]>

* ps/build (2024-11-13) 19 commits
- meson: fix conflicts with in-flight topics
- Introduce support for the Meson build system
- Documentation: add comparison of build systems
- t: allow overriding build dir
- t: better support for out-of-tree builds
- Documentation: extract script to generate a list of mergetools
- Documentation: teach "cmd-list.perl" about out-of-tree builds
- Documentation: allow sourcing generated includes from separate dir
- Makefile: simplify building of templates
- Makefile: allow "bin-wrappers/" directory to exist
- Makefile: refactor generators to be PWD-independent
- Makefile: refactor GIT-VERSION-GEN to be reusable
- Makefile: extract script to generate gitweb.cgi
- Makefile: extract script to massage Shell scripts
- Makefile: use "generate-perl.sh" to massage Perl library
- Makefile: extract script to massage Perl scripts
- Makefile: consistently use PERL_PATH
- Makefile: consistently use @PLACEHOLDER@ to substitute
- Makefile: use common template for GIT-BUILD-OPTIONS

Build procedure update plus introduction of Mason based builds

Under discussion.
source: <[email protected]>

* ej/cat-file-remote-object-info (2024-11-11) 6 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
- cat-file: add declaration of variable i inside its for loop

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

Needs review.
source: <[email protected]>

* 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? I got an impression that this is premature without finishing the discussion on a larger picture.
cf. <[email protected]>
source: <[email protected]>

* sj/ref-contents-check (2024-11-11) 9 commits
- ref: add symlink ref content check for files backend
- ref: check whether the target of the symref is a ref
- ref: add basic 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: support multiple worktrees check for refs
- ref: initialize ref name outside of check functions
- ref: check the full refname instead of basename
- 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).

Comments?
source: <ZzCiCGxL4Adnd_eq@ArchLinux>

* js/libgit-rust (2024-10-16) 5 commits
- Makefile: add option to build and test libgit-rs and libgit-rs-sys
- libgit: add higher-level libgit crate
- libgit-sys: also export some config_set functions
- 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.

Needs review.
source: <[email protected]>

* kn/the-repository (2024-11-12) 9 commits
- midx: add repository to multi_pack_index struct
- config: make packed_git_(limit|window_size) non-global variables
- config: make delta_base_cache_limit a non-global variable
- packfile: pass down repository to for_each_packed_object
- packfile: pass down repository to has_object[_kept]_pack
- packfile: pass down repository to odb_pack_name
- packfile: pass repository to static function in the file
- packfile: use repository from packed_git directly
- packfile: add repository to struct packed_git

Various implicit uses of 'the_repoository' in the packfile code have been eliminated.
source: <[email protected]>

#1 lore raw
Quoted 11 lines · Junio C Hamano

* jk/describe-perf (2024-11-07) 4 commits
- describe: stop traversing when we run out of names
- describe: stop digging for max_candidates+1
- t/perf: add tests for git-describe
- t6120: demonstrate weakness in disjoint-root handling

"git describe" optimization.

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

I wasn't planning on any re-roll here. I think I may have confused you when I sent out the cover letter, followed up with a "oops there's a small fixup I need, I'll send out the patches later today" message, and then later sent out the patches. That "v1" that hit the list (and what you picked up) is the fixed version.

So there is nothing to re-roll, as there haven't been any comments on it. Possibly "needs review" would be a better label. :)

-Peff

#2 lore raw
Quoted 4 lines · Jeff King

... when I sent out the cover letter, followed up with a "oops there's a small fixup I need, I'll send out the patches later today" message, and then later sent out the patches. That "v1" that hit the list (and what you picked up) is the fixed version.

OK.

Thanks.

#3 lore raw
In reply to Junio C Hamano
Quoted 10 lines · Junio C Hamano

* ps/clar-build-improvement (2024-11-12) 4 commits
- Makefile: let clar header targets depend on their scripts
- cmake: use verbatim arguments when invoking clar commands
- cmake: use SH_EXE to execute clar scripts
- t/unit-tests: convert "clar-generate.awk" into a shell script

Fix for clar unit tests to support CMake build.

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

I've sent a v3 yesterday that fixes a single commit message issue via [1]. That version should be ready for 'next'.

[1]: <[email protected]>

Quoted 10 lines

* ps/send-pack-unhide-error-in-atomic-push (2024-11-14) 2 commits
- transport: don't ignore git-receive-pack(1) exit code on atomic push
- 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.

Comments?
source: <20241113-pks-push-atomic-respect-exit-code-v1-0-7965f01e7f4e@pks.im>

Jiang Xin has sent an alternative series that is more involved. I'll have a look at it.

Quoted 30 lines

* ps/leakfixes-part-10 (2024-11-13) 28 commits
- t: remove TEST_PASSES_SANITIZE_LEAK annotations
- test-lib: unconditionally enable leak checking
- t: remove unneeded !SANITIZE_LEAK prerequisites
- t: mark some tests as leak free
- t5601: work around leak sanitizer issue
- git-compat-util: drop now-unused UNLEAK() macro
- global: drop UNLEAK() annotation
- t/helper: fix leaking commit graph in "read-graph" subcommand
- builtin/branch: fix leaking sorting options
- builtin/init-db: fix leaking directory paths
- builtin/help: fix leaks in check_git_cmd()
- help: fix leaking return value from help_unknown_cmd()
- help: fix leaking struct cmdnames
- help: refactor to not use globals for reading config
- builtin/sparse-checkout: fix leaking sanitized patterns
- split-index: fix memory leak in move_cache_to_base_index()
- git: refactor builtin handling to use a struct strvec
- git: refactor alias handling to use a struct strvec
- strvec: introduce new strvec_splice() function
- line-log: fix leak when rewriting commit parents
- bisect: fix various cases where we leak commit list items
- bisect: fix leaking commit list items in check_merge_base()
- bisect: fix multiple leaks in bisect_next_all()
- bisect: fix leaking current_bad_oid
- bisect: fix leaking string in handle_bad_merge_base()
- bisect: fix leaking good/bad terms when reading multipe times
- builtin/blame: fix leaking blame entries with --incremental
- Merge branch 'ps/leakfixes-part-9' into ps/leakfixes-part-10

Quoted 4 lines

Leakfixes.

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

Rubén's review went through all of the patches and his findings have been addressed. The other comment from Peff seemed to only relate to dropping the use of UNLEAK(), so I don't think he had a full look at the patch series. So personally I don't plan to reroll this, but am not sure whether this had enough review exposure.

Patrick

#7 lore raw
In reply to Junio C Hamano
Quoted 11 lines · Junio C Hamano

* kh/bundle-docs (2024-11-08) 4 commits
- Documentation/git-bundle.txt: discuss naïve backups
- Documentation/git-bundle.txt: mention --all in spec. refs
- Documentation/git-bundle.txt: remove old --all example
- Documentation/git-bundle.txt: mention full backup example

Documentation improvements to more prominently call out the use of '--all' when creating bundles.

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

I have sent out a new version.

#4 lore raw
In reply to Patrick Steinhardt
Quoted 30 lines · Patrick Steinhardt
Quoted 30 lines

* ps/leakfixes-part-10 (2024-11-13) 28 commits
- t: remove TEST_PASSES_SANITIZE_LEAK annotations
- test-lib: unconditionally enable leak checking
- t: remove unneeded !SANITIZE_LEAK prerequisites
- t: mark some tests as leak free
- t5601: work around leak sanitizer issue
- git-compat-util: drop now-unused UNLEAK() macro
- global: drop UNLEAK() annotation
- t/helper: fix leaking commit graph in "read-graph" subcommand
- builtin/branch: fix leaking sorting options
- builtin/init-db: fix leaking directory paths
- builtin/help: fix leaks in check_git_cmd()
- help: fix leaking return value from help_unknown_cmd()
- help: fix leaking struct cmdnames
- help: refactor to not use globals for reading config
- builtin/sparse-checkout: fix leaking sanitized patterns
- split-index: fix memory leak in move_cache_to_base_index()
- git: refactor builtin handling to use a struct strvec
- git: refactor alias handling to use a struct strvec
- strvec: introduce new strvec_splice() function
- line-log: fix leak when rewriting commit parents
- bisect: fix various cases where we leak commit list items
- bisect: fix leaking commit list items in check_merge_base()
- bisect: fix multiple leaks in bisect_next_all()
- bisect: fix leaking current_bad_oid
- bisect: fix leaking string in handle_bad_merge_base()
- bisect: fix leaking good/bad terms when reading multipe times
- builtin/blame: fix leaking blame entries with --incremental
- Merge branch 'ps/leakfixes-part-9' into ps/leakfixes-part-10

Quoted 7 lines
Quoted 4 lines

Leakfixes.

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

Rubén's review went through all of the patches and his findings have been addressed.

Yes, this iteration looks good to me.

Two thoughts about the merge:

First, I'm concerned that we may not have sufficiently documented how contributors should proceed to prevent new leaks when submitting patches, and perhaps avoid some unnecessary noise on the list. I reviewed Documentation/SubmittingPatches and didn't see any mention about it. Perhaps it would be helpful to add a note about SANITIZE=leak. I'm unsure if we want to be explicit about this, though.

Second, in the (hopefully) exceptional cases where new series discover old leaks that cannot be fixed within the series itself, for whatever reason, I don't think there is documentation on the use of the SANITIZE_LEAK prerequisite. Its use is not desirable and documenting it could be counterproductive, so perhaps it's better to leave its use suggested on the list when necessary.

Quoted 4 lines

The other comment from Peff seemed to only relate to dropping the use of UNLEAK(), so I don't think he had a full look at the patch series. So personally I don't plan to reroll this, but am not sure whether this had enough review exposure.

I admit that reviewing this series, and reading the previous nine, hasn't been easy. It involved reading code I hadn't seen before. So, while I'm glad to give it my reviewed-by trailer, I share the concern about whether it has had enough review exposure.

Finally, I would like to reiterate that I continue to be impressed with the achievement of reaching "test-lib: unconditionally enable leak checking" within the time frame envisioned [1][2].

Thanks.

[1] https://lore.kernel.org/git/Zp4gILfskdpc6RUk@tanuki/

[2] https://lore.kernel.org/git/[email protected]/

#5 lore raw
Quoted 8 lines · Rubén Justo
Quoted 2 lines · Patrick Steinhardt

Rubén's review went through all of the patches and his findings have been addressed.

Yes, this iteration looks good to me.

Two thoughts about the merge:

Quoted 7 lines

First, I'm concerned that we may not have sufficiently documented how contributors should proceed to prevent new leaks when submitting patches, and perhaps avoid some unnecessary noise on the list. I reviewed Documentation/SubmittingPatches and didn't see any mention about it. Perhaps it would be helpful to add a note about SANITIZE=leak. I'm unsure if we want to be explicit about this, though.

Nothing really changes with this series -- we already required code to be leak free beforehand, just not in all of our tests. But in any case, providing pointers for how to check for leaks somewhere could be helpful indeed.

I think that can happen outside of this series though, also because I'm not quite sure where to slot this in.

Quoted 6 lines

Second, in the (hopefully) exceptional cases where new series discover old leaks that cannot be fixed within the series itself, for whatever reason, I don't think there is documentation on the use of the SANITIZE_LEAK prerequisite. Its use is not desirable and documenting it could be counterproductive, so perhaps it's better to leave its use suggested on the list when necessary.

That's also my take: we should use SANITIZE_LEAK only in exceptional cases. I very much hope that we can avoid introducing new cases of it altogether with the help of long-time contributors by helping newer contributors that happen to uncover such a leak.

I guess time will tell, and if we see that this needs to be added fairly regularly we can iterate and add documentation.

Patrick

#6 lore raw
Quoted 15 lines · Patrick Steinhardt
Quoted 7 lines
Quoted 2 lines

Rubén's review went through all of the patches and his findings have been addressed.

Yes, this iteration looks good to me.

Two thoughts about the merge:

Quoted 7 lines

First, I'm concerned that we may not have sufficiently documented how contributors should proceed to prevent new leaks when submitting patches, and perhaps avoid some unnecessary noise on the list. I reviewed Documentation/SubmittingPatches and didn't see any mention about it. Perhaps it would be helpful to add a note about SANITIZE=leak. I'm unsure if we want to be explicit about this, though.

Quoted 7 lines

Nothing really changes with this series -- we already required code to be leak free beforehand, just not in all of our tests. But in any case, providing pointers for how to check for leaks somewhere could be helpful indeed.

I think that can happen outside of this series though, also because I'm not quite sure where to slot this in.

Re-reading Documentation/SubmittingPatches, I think the recommendation we already have might be sufficient:

Pushing to a fork of https://github.com/git/git will use their CI integration to test your changes on Linux, Mac and Windows. See the <<GHCI,GitHub CI>> section for details.

Anyway, of course it can happen outside this series. For me, the series is ready to be merged.