What's cooking in git.git (Jul 2026, #12)
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 is a candidate to be in a future release). Commits prefixed with '-' are only in 'seen', and aren't considered "accepted" at all. They may be annotated with a URL to a message that raises issues but they are by no means exhaustive. A topic without enough support may be discarded after a long period of no activity (of course, it can be resubmitted when new interest arises).
The seventh batch of topics have now graduated to the 'master' branch.
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]
* jc/remote-insteadof-leakfix (2026-07-25) 1 commit
- remote: plug memory leaks
rewrites_release() in 'remote.c' has been updated to free 'struct rewrite' instances and their '.instead_of' arrays, and their contents.
Will merge to 'next'.
cf. <[email protected]>
source: <[email protected]>
* tb/pack-with-duplicates (2026-07-24) 5 commits
- pack-bitmap: handle duplicate pack entries during MIDX reuse
- test-tool bitmap: reject packs with duplicate objects
- midx: verify duplicate pack entries by OID and offset
- packfile: recover delta cycles through duplicate entries
- t5308: test reverse indexes with duplicate objects
The handling of packfiles with duplicate object entries has been hardened. Specifically, reverse index lookup, delta cycle recovery, multi-pack-index verification, and pack reuse paths have been updated to correctly handle or gracefully reject duplicate entries.
Needs review.
cf. <[email protected]>
source: <[email protected]>
* ps/cat-file-remote-object-info-type (2026-07-25) 6 commits
- cat-file: unify default format
- serve: advertise type capability
- fetch-object-info: request all supported options dynamically
- fetch-object-info: parse type from server response
- protocol-caps: add type support to object-info
- Merge branch 'ps/cat-file-remote-object-info' into ps/cat-file-remote-object-info-type (this branch uses ps/cat-file-remote-object-info.)
The 'remote-object-info' command for 'git cat-file --batch-command' has been extended to support the '%(objecttype)' placeholder.
Needs review.
source: <[email protected]>
* rs/branch-delete-bisect-warning (2026-07-25) 1 commit
- branch: report active bisect run when rejecting delete
'git branch -d' learned to report when a branch cannot be deleted because it is being used in an active bisect run.
Will merge to 'next'?
cf. <[email protected]>
source: <[email protected]>
* jk/ci-static-analysis-image-bump (2026-07-26) 2 commits
- ci: bump ubuntu image version for static-analysis job
- bloom: silence CHECK_ASSERTION_SIDE_EFFECTS false positive
The image version used by the static-analysis CI job has been bumped to ubuntu-latest (Ubuntu 24.04), which brings in a newer Coccinelle version that resolves a severe performance regression. A false positive warning from the CHECK_ASSERTION_SIDE_EFFECTS build with GCC 15 in the Bloom filter code has also been silenced to facilitate the image upgrade.
Will merge to 'next'?
cf. <[email protected]>
source: <[email protected]>
* jk/diff-relative-cached-unmerged-more (2026-07-26) 3 commits
- diff-lib: skip paths outside prefix in oneway_diff()
- diff-lib: drop stale comment about advancing o->pos
- Merge branch 'jk/diff-relative-cached-unmerged' into jk/diff-relative-cached-unmerged-more (this branch uses jk/diff-relative-cached-unmerged.)
The code path that deals with relative paths in the diff-lib has been cleaned up.
Will merge to 'next'?
cf. <[email protected]>
source: <[email protected]>
--------------------------------------------------
[Stalled]
* tb/repack-geometric-cruft (2026-06-28) 11 commits
- SQUASH??? bare grep !???
- repack: support combining '--geometric' with '--cruft'
- pack-objects: support '--refs-snapshot' with 'follow-reachable'
- pack-objects: introduce '--stdin-packs=follow-reachable'
- pack-objects: extract stdin_packs_add_all_pack_entries()
- repack-geometry: drop unused redundant-pack removal
- repack: delete geometric packs via existing_packs
- repack: teach MIDX retention about geometric rollups
- repack: mark geometric progression of packs as retained
- repack: extract locate_existing_pack() helper
- repack: unconditionally exclude non-kept packs
'git repack' has been taught to accept '--geometric' and '--cruft' together. When both are given, non-cruft packs are rolled up by the geometric repack as usual, while a separate cruft pack is written to collect unreachable objects.
Waiting for response for too long, stalled.
cf. <[email protected]>
cf. <[email protected]>
source: <[email protected]>
* hn/checkout-track-fetch (2026-06-24) 2 commits
- checkout: extend --track with a "fetch" mode to refresh start-point
- branch: expose helpers for finding the remote owning a tracking ref
The 'git checkout --track=...' command has been taught to optionally fetch the branch from the remote that the new branch will work with.
Will be discarded.
cf. <[email protected]>
cf. <CAL71e4MiijEiM26TKJcOYT7L4pfQeMM_F2oT3U3igP-wOZm2Ag@mail.gmail.com> cf. <[email protected]>
source: <[email protected]>
* za/completion-hide-dotfiles (2026-06-20) 2 commits
- completion: hide dotfiles by default for path completion
- completion: hide dotfiles for selected path completion
Path completion for commands like 'git rm' and 'git mv' has been updated to hide dotfiles by default unless the user explicitly starts the path with a dot, matching standard shell-completion behavior.
Waiting for response, stalled.
cf. <[email protected]>
cf. <[email protected]>
source: <[email protected]>
* kh/doc-trailers (2026-06-10) 10 commits
- doc: interpret-trailers: document comment line treatment
- doc: interpret-trailers: commit to “trailer block” term
- doc: interpret-trailers: join new-trailers again
- doc: interpret-trailers: add key format example
- doc: interpret-trailers: explain key format
- doc: interpret-trailers: explain the format after the intro
- doc: interpret-trailers: not just for commit messages
- doc: interpret-trailers: use “metadata” in Name as well
- doc: interpret-trailers: replace “lines” with “metadata”
- doc: interpret-trailers: stop fixating on RFC 822
Documentation for 'git interpret-trailers' has been updated to explain the format of trailer keys (alphanumeric characters and hyphens), replace outdated terminology, define key terms upfront, and document how comment lines in the input are treated.
Expecting a reroll for too long, stalled.
cf. <[email protected]>
source: <[email protected]>
* kh/doc-replay-config (2026-06-05) 4 commits
- doc: replay: move “default” to the right-hand side
- doc: replay: use a nested description list
- doc: replay: improve config description
- doc: link to config for git-replay(1)
Documentation for 'git replay' has been updated to refer to its configuration variables.
Waiting for response for too long, stalled.
cf. <[email protected]>
cf. <[email protected]>
source: <[email protected]>
--------------------------------------------------
[Cooking]
* af/clone-revision-v0-segfault-fix (2026-07-24) 1 commit
- builtin/clone: fix segfault when using --revision with protocol v0
'git clone --revision' talking to a server that does not support protocol v2 (falling back to protocol v0) segfaulted, which has been corrected.
Will merge to 'next'.
cf. <[email protected]>
source: <[email protected]>
* lo/mv-missing-dest-dir-check (2026-07-26) 2 commits
- mv: reject a destination whose leading path is missing or a symlink
- mv: name both source and destination when rename fails
'git mv' has been updated to check for a missing destination leading directory during the checking phase, allowing 'git mv -n' to report the failure. The error message when the rename(2) syscall fails has also been improved to name both the source and the destination.
Needs review.
source: <[email protected]>
* ps/odb-make-creation-pluggable (2026-07-23) 5 commits
- odb: make creation of on-disk structures pluggable
- odb/source: introduce function to map source type to name
- setup: defer object database creation
- setup: detangle loading of loose object maps
- loose: load loose object map for the correct source
The creation of the on-disk data structures for the object database has been made pluggable, allowing future backends to customize their setup. As part of this, the initialization of the object database has been deferred, and the loading of the loose-object map has been detangled from repository initialization.
Waiting for response.
cf. <[email protected]>
cf. <[email protected]>
cf. <[email protected]>
cf. <[email protected]>
cf. <[email protected]>
source: <[email protected]>
* jt/config-lock-timeout (2026-05-17) 1 commit
(merged to 'next' on 2026-07-24 at 3cb8da6b6a)
+ config: retry acquiring config.lock, configurable via core.configLockTimeout
Configuration file locking has been updated to retry for a short period, avoiding failures when multiple processes attempt to update the configuration simultaneously.
Will merge to 'master'.
cf. <[email protected]>
cf. <[email protected]>
source: <[email protected]>
* hs/rebase-continue-edit (2026-07-21) 1 commit
- rebase: add --[no-]edit to --continue
Support for skipping the editor when continuing a rebase after conflict resolution has been added with the '--no-edit' option, and forcing it with '--edit'. A new configuration variable 'rebase.noEdit' can be used to set the default behavior.
Waiting for a response.
cf. <[email protected]>
cf. <[email protected]>
source: <[email protected]>
* tn/stash-avoid-sparse-index-expansion (2026-07-20) 2 commits (merged to 'next' on 2026-07-23 at 8ccf28493e)
+ stash: avoid sparse-index expansion for in-cone paths
+ pathspec: use match for sparse-index expansion checks
The 'git stash push' command has been optimized to avoid unnecessary sparse index expansion when pathspecs are wholly inside the sparse-checkout cone. Also, a potential out-of-bounds read in the sparse-index expansion check helper pathspec_needs_expanded_index() has been fixed by consistently using the parsed, prefixed path.
Will merge to 'master'.
cf. <al61UTM0aK9j9eiP@com-79390>
cf. <al61ERa3fS2MerHp@com-79390>
source: <[email protected]>
* en/submodule-insteadof-remote-match (2026-07-22) 1 commit
- submodule: resolve insteadOf aliases when matching remote
The remote-matching logic for submodules has been corrected to resolve 'url.*.insteadOf' aliases before comparing the inventoried URL from '.gitmodules' with the URLs of configured remotes.
Will merge to 'next'.
cf. <[email protected]>
source: <[email protected]>
* td/fsmonitor-darwin-cookie-flush (2026-07-21) 1 commit
- fsmonitor: flush pending FSEvents before cookie wait
The 'fsmonitor' daemon on macOS has been updated to flush pending FSEvents before waiting for the cookie file, to avoid premature timeouts on busy systems.
Waiting for response.
cf. <CAOTNsDy4pKbPHdK1T688Ax6Mgz15K-qfZR-8fAvTk48z3E43Rg@mail.gmail.com> cf. <[email protected]>
source: <20260721-fsmonitor-darwin-cookie-flush-v1-1-357dc5e32040@gmail.com>
* jc/exclude-first-parent-seen (2026-07-22) 1 commit (merged to 'next' on 2026-07-25 at 85755d1d45)
+ revision: honor --exclude-first-parent-only with SEEN first parent
Traversals with '--exclude-first-parent-only' have been corrected to properly stop after the first parent even when it has already been marked as SEEN.
Will merge to 'master'.
source: <[email protected]>
* sn/rebase-update-refs-symrefs (2026-07-22) 2 commits
- rebase: guard non-branch symref targets
- rebase: skip branch symref aliases
'git rebase --update-refs' has been taught to resolve local branch symrefs to their referents before queuing updates, ensuring aliases of the current branch are skipped and duplicate updates are avoided to prevent failures when branch aliases are present.
Waiting for response.
cf. <[email protected]> cf. <[email protected]> cf. <amSSYagL0jTgzElD@mbp>
cf. <[email protected]>
source: <[email protected]>
* bc/rust-hash-cleanups (2026-07-18) 2 commits
(merged to 'next' on 2026-07-21 at 51627468a0)
+ rust: discard hash context when finished
+ hash: initialize context before cloning
A few memory problems in the Rust interface to C hash functions have been corrected. The 'Clone' implementation of 'CryptoHasher' now properly initializes the context before cloning, and its 'Drop' implementation now discards the context to prevent leaks.
Will merge to 'master'.
cf. <[email protected]>
source: <[email protected]>
* ja/doc-synopsis-style-yet-more (2026-07-23) 4 commits
- doc: convert git-request-pull synopsis and options to new style
- doc: convert git-send-email synopsis and options to new style
- doc: convert git-format-patch synopsis and options to new style
- doc: convert git-imap-send synopsis and options to new style
Synopsis and options in the documentation for 'git format-patch', 'git imap-send', 'git send-email', and 'git request-pull' have been updated to the modern style.
Needs review.
source: <[email protected]>
* hn/url-push-tracking (2026-07-22) 2 commits (merged to 'next' on 2026-07-25 at 9b776656fc)
+ remote: find tracking branches for URL push destinations
+ remote: pass repository to push tracking helper
When the push remote is specified as a URL, the fetch refspec of a uniquely matching configured remote is now used to find and update the remote-tracking branch (e.g., '@{push}').
Will merge to 'master'.
cf. <[email protected]>
source: <[email protected]>
* tl/gitweb-shorten-hashes-with-modes (2026-07-17) 1 commit (merged to 'next' on 2026-07-25 at 5b92e8a325)
+ gitweb: shorten index hashes with trailing file modes
The object ID shortening and linking in the 'commitdiff' view of 'gitweb' has been corrected to work even when the index line carries a trailing file mode.
Will merge to 'master'.
cf. <[email protected]>
source: <SA1PR10MB9977150C823C0751E53B150D5AF1C62@SA1PR10MB997715.namprd10.prod.outlook.com>
* kj/repo-info-more-path-keys (2026-07-26) 7 commits
- repo: add path.git-prefix path key
- repo: add path.grafts with absolute and relative suffix formatting
- repo: add path.index with absolute and relative suffix formatting
- repo: add path.hooks with absolute and relative suffix formatting
- repo: add path.objects with absolute and relative suffix formatting
- repo: add path.superproject-working-tree with absolute and relative suffixes
- repo: add path.toplevel with absolute and relative suffix formatting
The 'git repo info' command has been taught more keys to output paths of various repository components (such as the working tree root, superproject working tree, object database, etc.), supporting both absolute and relative path formats.
Needs review.
source: <[email protected]>
* sk/userdiff-swift (2026-07-20) 1 commit
(merged to 'next' on 2026-07-23 at 45dbcc6307)
+ userdiff: add support for Swift
Userdiff patterns for Swift have been added, with support for Swift-specific constructs such as attributes, modifiers, failable initializers, and generics.
Will merge to 'master'.
cf. <[email protected]> cf. <[email protected]>
source: <[email protected]>
* ps/odb-move-loose-object-writing (2026-07-17) 10 commits (merged to 'next' on 2026-07-25 at 244d577d93)
+ object-file: move logic to write loose objects
+ object-file: move force_object_loose()
+ object-file: force objects loose via generic interface
+ object-file: fix memory leak in force_object_loose()
+ odb: support setting mtime when writing objects
+ odb: lift object existence check out of the "loose" backend
+ odb: compute object hash in odb_write_object_ext()
+ t/u-odb-inmemory: implement wrapper for writing objects
+ odb: compute compat object ID in odb_write_object_ext()
+ Merge branch 'jt/receive-pack-use-odb-transactions' into HEAD
The logic to write loose objects has been refactored and moved from 'object-file.c' to the loose backend source file 'odb/source-loose.c', making the loose backend more self-contained. This is achieved by first refactoring force_object_loose() to use generic ODB write interfaces instead of loose-backend internals.
Will merge to 'master'.
cf. <[email protected]>
source: <20260717-pks-odb-move-loose-object-writing-v1-0-46446a3cb5b7@pks.im>
* pw/rebase-fixup-fixes (2026-07-26) 2 commits
- rebase: remember fixup -c after skipping fixup/squash
- rebase -i: fix counting of fixups after rebase --skip
Two bugs in how 'git rebase' handles skipped 'fixup' and 'squash' commands have been fixed. One bug caused an incorrect commit count to be shown in the template message when multiple commands were skipped, and another prevented the editor from opening when the final command in a chain containing 'fixup -c' was skipped.
Will merge to 'next'?
cf. <[email protected]>
source: <[email protected]>
* tc/last-modified-bloom (2026-07-17) 4 commits
- last-modified: keep per-path Bloom filters for wildcard pathspecs
- last-modified: check pathspec against Bloom filter first
- revision: expose check for paths maybe changed in Bloom filter
- revision: move bloom keyvec precondition into function
The 'git last-modified' command has been optimized by using Bloom filters. It now reuses revision walk filtering logic from 'git log' to pre-filter commits, and maintains per-path Bloom filters even when wildcard pathspecs are used.
Waiting for a response.
cf. <[email protected]>
cf. <alvulw2fk67duo8n@com-79390>
source: <[email protected]>
* hn/bisect-reset-when-found (2026-07-20) 2 commits (merged to 'next' on 2026-07-22 at 1dc394ad9b)
+ bisect: add --reset-when-found to leave when done
+ bisect: let bisect_reset() optionally check out quietly
The 'git bisect' command has been taught a '--reset-when-found[=<where>]' option that tells the command to automatically run 'git bisect reset' to jump back to the original state or to the found culprit.
Will merge to 'master'.
cf. <[email protected]>
source: <[email protected]>
* js/coverity-unchecked-returns-fix (2026-07-14) 11 commits
- bisect: handle dup() failure when redirecting stdout
- bisect: check get_terms return at all call sites
- bisect: check strbuf_getline_lf return when reading terms
- transport-helper: warn when export-marks file cannot be finalized
- transport-helper: check dup() return in get_exporter
- compat/pread: check initial lseek for errors
- last-modified: handle repo_parse_commit() failures
- reftable tests: check reftable_table_init_ref_iterator() return
- reftable/block: check deflateInit() return value
- config: propagate launch_editor() failure in show_editor()
- http: die on curl_easy_duphandle failure in get_active_slot
A handful of code paths have been corrected to check return values from functions like curl_easy_duphandle(), deflateInit(), lseek(), dup(), and strbuf_getline_lf(), resolving several Coverity warnings about unchecked returns.
Waiting for response.
cf. <[email protected]>
cf. <[email protected]>
cf. <[email protected]>
cf. <[email protected]>
cf. <[email protected]>
cf. <[email protected]>
source: <[email protected]>
* jk/diff-relative-cached-unmerged (2026-07-14) 1 commit (merged to 'next' on 2026-07-25 at 8829f9b348)
+ diff: ignore unmerged paths outside prefix with --relative --cached (this branch is used by jk/diff-relative-cached-unmerged-more.)
'git diff --relative' running with '--cached' has been corrected to avoid a segfault when encountering unmerged paths outside the prefix.
Will merge to 'master'.
cf. <[email protected]>
source: <[email protected]>
* jc/submodule-helper-avoid-zu (2026-07-15) 1 commit (merged to 'next' on 2026-07-19 at b12d5d76f5)
+ submodule--helper: avoid use of %zu for now
An accidental use of the '%zu' format specifier in 'git submodule--helper' has been corrected to use 'PRIuMAX' and cast the value to 'uintmax_t' to avoid portability issues.
Will merge to 'master'.
source: <[email protected]>
* ds/trace2-tolerate-failed-timestamp (2026-07-15) 1 commit
- trace2: tolerate failed timestamp formatting
The 'trace2' telemetry library has been updated to tolerate failures from system calls like gettimeofday() and datetime formatting functions, replacing potential program crashes with blank placeholder timestamps in the traces.
Waiting for response.
cf. <alpXW5U6sndZtgqV@com-79390>
cf. <[email protected]> cf. <[email protected]>
cf. <al4yrXXoZiHLwSvE@com-79390>
source: <[email protected]>
* mm/revision-pure-get-commit-action (2026-07-15) 1 commit
- revision: make get_commit_action() a pure predicate
The get_commit_action() function has been refactored to be a pure predicate by moving the side-effecting line-level log range folding to simplify_commit(). This ensures that evaluating a commit's action before the walk reaches it does not prematurely mutate its tracked line ranges, making it safer for potential lookahead evaluations.
Waiting for review.
cf. <[email protected]>
cf. <CAC2QwmKP16cyw0get3hEWP8GjcFkUHB3uXxcQi9hBCCM-B+ECw@mail.gmail.com>
source: <[email protected]>
* rs/remote-curl-simplify-push-specs (2026-07-14) 1 commit (merged to 'next' on 2026-07-19 at ff1b5528ba)
+ remote-curl: simplify passing of push specs
The passing of push destination specifications in the 'remote-curl' helper has been simplified by removing the explicit 'count' parameter and relying on the NULL-termination of the array.
Will merge to 'master'.
source: <[email protected]>
* cc/fast-import-usage (2026-07-16) 7 commits
- fast-import: use struct option for usage string
- fast-import: move command state globals into 'struct fast_import_state'
- fast-import: introduce 'struct fast_import_state'
- fast-import: localize 'i' into the 'for' loops using it
- api-parse-options.adoc: document hidden and OPT_*_F option macros
- api-parse-options.adoc: document per-option flags
- parse-options: introduce OPT_HIDDEN_GROUP
The usage string of 'git fast-import' has been updated to use the parse_options() API for displaying help, and its SYNOPSIS in the documentation has been standardized to match.
Waiting for response.
cf. <[email protected]>
cf. <[email protected]>
source: <[email protected]>
* ps/copy-wo-the-repository (2026-07-16) 1 commit
(merged to 'next' on 2026-07-20 at 9e38da0efc)
+ copy: drop dependency on the_repository
The copy_file() and copy_file_with_time() functions have been refactored to take a repository parameter, allowing the removal of the implicit dependency on the global 'the_repository' variable in 'copy.c'.
Will merge to 'master'.
cf. <[email protected]>
cf. <[email protected]>
source: <[email protected]>
* ps/refspec-wo-the-repository (2026-07-16) 3 commits (merged to 'next' on 2026-07-20 at 31044c3fc9)
+ refspec: stop depending on the_repository
+ refspec: let callers pass in hash algorithm when parsing items
+ refspec: group related structures and functions
The dependency on the global 'the_repository' variable in the 'refspec.c' API has been removed by passing the hash algorithm explicitly to refspec-parsing functions and storing it in 'struct refspec'.
Will merge to 'master'.
source: <[email protected]>
* ps/writev (2026-07-16) 5 commits
- fast-import: use writev(3p) to send cat-blob responses
- sideband: use writev(3p) to send pktlines
- wrapper: properly handle MAX_IO_SIZE in writev(3p)
- wrapper: introduce writev(3p) wrappers
- compat/posix: introduce writev(3p) wrapper
A compatibility wrapper for writev(3p) has been reintroduced, including fixes for CMake build and 'MAX_IO_SIZE' limits on NonStop. Calls to write(3p) in send_sideband() and cat_blob() have been refactored to use writev(3p) wrappers to reduce syscall overhead.
Waiting for response.
cf. <[email protected]>
cf. <[email protected]> cf. <[email protected]>
source: <[email protected]>
* sc/wt-status-avoid-quadratic-insertion (2026-07-18) 1 commit (merged to 'next' on 2026-07-20 at 9330d42a4a)
+ wt-status: avoid repeated insertion for untracked paths
The enumeration of untracked and ignored files in 'git status' has been optimized by avoiding quadratic complexity when inserting into string lists, reducing the construction cost from O(n^2) to O(n log n).
Will merge to 'master'.
cf. <[email protected]>
source: <[email protected]>
* tb/send-pack-no-ref-delta (2026-07-12) 4 commits
- send-pack: honor no-ref-delta capability
- pack-objects: support reuse with --no-ref-delta
- pack-objects: introduce --no-ref-delta
- t/helper: teach pack-deltas to list delta entries
'git send-pack' has been taught to refrain from sending 'REF_DELTA' encoded packfiles when the other side asks it to.
Needs review.
source: <alQ7WKITYDXfiVn9@com-79390>
* tn/packfile-uri-concurrency (2026-07-25) 3 commits
- fetch-pack: accept "pack" output for packfile URIs
- http: avoid concurrent appends to partial packs
- http-fetch: correct --index-pack-arg documentation
Concurrent downloads of packfiles via packfile URIs and dumb HTTP have been made safer by avoiding concurrent appends to the staging file. Opening the file in read-write mode and maintaining separate file offsets prevents corruption while preserving resumability. The 'fetch-pack' command has also been updated to tolerate pre-existing '.keep' files.
Expecting a reroll.
cf. <[email protected]> cf. <[email protected]> cf. <[email protected]>
source: <[email protected]>
* rs/tempfile-wo-the-repository (2026-07-14) 5 commits
(merged to 'next' on 2026-07-22 at 968a116891)
+ use repo_hold_lock_file_for_update{,_mode,_timeout}() with custom repos
+ tempfile: stop using the_repository
+ lockfile: add repo_hold_lock_file_for_update{,_timeout}{,_mode}()
+ refs/packed: use repo_create_tempfile()
+ tempfile: add repo_create_tempfile{,_mode}()
The tempfile and lockfile APIs have been refactored to stop depending on the 'the_repository' global variable, and their callers have been updated to use the repository-aware variants.
Will merge to 'master'.
cf. <[email protected]>
cf. <[email protected]>
source: <[email protected]>
* js/pack-objects-delta-size-t (2026-07-09) 12 commits
- git-zlib: widen git_deflate_bound() to size_t
- t/helper/test-pack-deltas: widen do_compress()'s maxsize local to size_t
- http-push: widen start_put()'s size local from ssize_t to size_t
- diff: widen deflate_it()'s bound local from int to size_t
- archive-zip: widen zlib_deflate_raw()'s maxsize local to size_t
- packfile, git-zlib: widen use_pack() and zstream avail fields to size_t
- delta: widen create_delta() and diff_delta() to size_t
- pack-objects: widen mem_usage and try_delta()'s out-param to size_t
- pack-objects: widen free_unpacked() return to size_t
- pack-objects: widen delta-cache accounting to size_t
- delta: widen create_delta_index() parameter to size_t
- diff-delta: widen struct delta_index' size fields to size_t
The 'pack-objects' and delta-encoding code paths have been updated to use 'size_t' instead of 'unsigned long' for object sizes and offset limits, avoiding potential truncation issues on 64-bit Windows.
Needs review.
source: <[email protected]>
* pz/fetch-submodule-errors-config (2026-07-16) 2 commits
- fetch: add fetch.submoduleErrors to make submodule fetch errors non-fatal
- submodule: fix premature failure in recursive submodule fetch
The 'git fetch' command has been updated to allow configuring how submodule fetch errors are handled. A new configuration variable 'fetch.submoduleErrors' and a corresponding '--submodule-errors' command-line option have been introduced, allowing users to make submodule fetch errors non-fatal (warn instead of fail). Additionally, a premature failure during recursive submodule fetches has been fixed by deferring the error until the OID-based retry phase also fails.
Needs review.
source: <[email protected]>
* gr/add-e-use-apply-api (2026-07-10) 1 commit
- builtin/add.c: replace run_command() with direct apply_all_patches() call
The application of the edited patch in 'git add -e' has been refactored to use the internal apply API directly, avoiding the need to spawn a 'git apply' subprocess.
Needs review.
cf. <[email protected]>
source: <[email protected]>
* fz/rebase-autosquash-empty (2026-07-11) 1 commit
. sequencer: honor --empty when a fixup!/squash! empties its target
A commit that is emptied by melding a 'fixup!' or 'squash!' commit during 'git rebase --autosquash' is now handled according to the '--empty' option, allowing it to be dropped, kept, or to halt the rebase.
Ejected due to conflicts with 'pw/rebase-drop-notes-with-commit'.
Waiting for response.
cf. <[email protected]> cf. <[email protected]>
cf. <[email protected]>
source: <[email protected]>
* mm/lib-httpd-cgi-safe (2026-07-10) 3 commits
- t/README: document writing concurrency-safe helpers
- t/lib-httpd: make http-429 first-request check atomic
- t/lib-httpd: fix apply-one-time-script race under concurrent requests
CGI helper scripts used by HTTP-related test scripts have been updated to use atomic filesystem operations, preventing race conditions when Apache handles concurrent requests.
Needs review.
source: <[email protected]>
* ps/odb-pluggable-housekeeping (2026-07-12) 12 commits
- odb: make optimizations pluggable
- builtin/gc: fix signedness issues in ODB-related functionality
- builtin/gc: refactor ODB optimizations to operate on "files" source
- builtin/gc: introduce odb_optimize_required()
- builtin/gc: move geometric repacking into odb_optimize()
- builtin/gc: introduce object database optimization options
- builtin/gc: inline config values specific to the "files" backend
- builtin/gc: make repack arguments self-contained
- builtin/gc: extract object database optimizations into separate function
- builtin/gc: move worktree and rerere tasks before object optimizations
- odb: run "pre-auto-gc" hook for all maintenance tasks
- t7900: simplify how we check for maintenance tasks
Object database housekeeping in 'git gc' and 'git maintenance' has been refactored to be pluggable. The files-backend-specific logic, including incremental and geometric repacking as well as object pruning, has been moved out of the command implementation and into the files object database source, enabling future alternative object database backends to implement their own housekeeping services.
Waiting for response.
cf. <[email protected]>
cf. <[email protected]>
cf. <[email protected]>
cf. <[email protected]>
source: <[email protected]>
* ps/refs-wo-the-repository (2026-07-15) 7 commits
(merged to 'next' on 2026-07-19 at 12685f410c)
+ refs: remove remaining uses of the_repository
+ worktree: pass repository to public functions
+ worktree: pass repository to file-local functions
+ worktree: refactor code to use available repositories
+ refs/files: drop USE_THE_REPOSITORY_VARIABLE
+ refs/packed: de-globalize handling of "core.packedRefsTimeout"
+ Merge branch 'ps/refs-writing-subcommands' into ps/refs-wo-the-repository
The ref subsystem and the worktree API have been refactored to pass a repository pointer down the call chain, allowing them to drop references to the global 'the_repository' variable. As part of this, the handling of the 'core.packedRefsTimeout' configuration has been moved into the per-repository ref store structure.
Will merge to 'master'.
source: <[email protected]>
* ds/sparse-index-ita-crash (2026-07-06) 1 commit
- sparse-index: avoid crash on intent-to-add entry outside the cone
A crash in the 'sparse-index' collapse code when encountering an invalidated cache-tree node (due to an intent-to-add path) has been fixed by avoiding collapsing such subtrees.
Needs review.
source: <[email protected]>
* ij/subtree-reject-v2-config (2026-07-06) 2 commits
- git-subtree: Bail out if we find output from Rust rewrite (test)
- git-subtree: Bail out if we find output from Rust rewrite
The shell script implementation of 'git subtree' has been updated to check for the presence of the configuration file of the new Rust implementation, preventing users from accidentally running the old script on repositories already managed by the new tool.
Expecting a reroll.
cf. <[email protected]>
source: <[email protected]>
* jm/t0213-skip-emulated-ancestry-tests (2026-07-06) 1 commit
- t0213: skip ancestry tests under user-mode emulation
The 'TRACE2_ANCESTRY' prerequisite in the 't0213' test script has been refined to avoid failures under user-mode emulation by verifying that the ancestry collector reports the expected process names rather than the emulator binary name.
Needs review.
cf. <[email protected]>
source: <[email protected]>
* zy/apply-abandoned-header-fix (2026-07-01) 1 commit
- apply: avoid leaking abandoned git-header state
A candidate 'git diff' header parsed by 'git apply' has been isolated in a temporary structure, preventing any partially parsed state from polluting the main patch structure and causing assertions to trip if the header is ultimately rejected.
Needs review.
source: <[email protected]>
* bl/t7412-use-test-path-helpers (2026-06-29) 1 commit
- submodule absorbgitdirs tests: use test_* helper functions
The test script 't7412' that tests 'git submodule absorbgitdirs' has been modernized to use test_path_is_file(), test_path_is_dir(), and test_path_is_missing() helper functions instead of raw 'test -[fde]' commands.
Waiting for response, stalled.
cf. <[email protected]>
cf. <[email protected]>
source: <[email protected]>
* pw/rebase-drop-notes-with-commit (2026-07-15) 9 commits (merged to 'next' on 2026-07-20 at 5475c9f935)
+ sequencer: do not record dropped commits as rewritten
+ sequencer: use an enum to represent result of picking a commit
+ sequencer: simplify pick_one_commit()
+ sequencer: remove unnecessary condition in pick_one_commit()
+ sequencer: simplify handling of fixup with conflicts
+ sequencer: remove unnecessary "or" in pick_one_commit()
+ sequencer: never reschedule on failed commit
+ sequencer: be more careful with external merge
+ t3400: restore coverage for note copying with apply backend
The rebase post-rewrite notes-copying logic has been corrected. When a commit is dropped during rebase (e.g., because its changes are already upstream), it is no longer recorded as rewritten, preventing its notes from being copied to an unrelated commit.
Will merge to 'master'.
cf. <[email protected]>
source: <[email protected]>
* ty/migrate-excludes-file (2026-07-13) 10 commits
(merged to 'next' on 2026-07-23 at 749560a29c)
+ repository: adjust the comment of config_values_private_
+ environment: move object_creation_mode into repo_config_values
+ environment: move autorebase into repo_config_values
+ environment: move push_default into repo_config_values
+ environment: migrate apply_default_whitespace and apply_default_ignorewhitespace
+ environment: move askpass_program into repo_config_values
+ environment: move pager_program into repo_config_values
+ environment: move editor_program into repo_config_values
+ environment: move excludes_file into repo_config_values
+ repository: introduce repo_config_values_clear()
The 'excludes_file' and various other global configuration variables (including 'editor_program', 'pager_program', 'askpass_program', and 'push_default') have been migrated into the per-repository structure.
Will merge to 'master'.
cf. <[email protected]>
source: <[email protected]>
* ps/libgit-in-subdir (2026-07-12) 3 commits
. Move libgit.a sources into separate "lib/" directory
. t/helper: prepare "test-example-tap.c" for introduction of "lib/" . Merge branch 'ps/odb-source-packed' into ps/libgit-in-subdir
The source files for 'libgit.a' have been moved into a new 'lib/' directory to clean up the top-level directory and clearly separate library code.
Ejected for now, as it causes too many evil merges with other topics.
Waiting for response.
cf. <[email protected]>
cf. <[email protected]>
cf. <[email protected]>
source: <[email protected]>
* mm/line-log-limited-ops (2026-06-27) 7 commits
- diffcore-pickaxe: scope -G to the -L tracked range
- diff: support --check with -L line ranges
- line-log: support diff stat formats with -L
- diff: extract a line-range diff helper for reuse
- diff: emit -L hunk headers via xdiff's formatter
- diff: simplify the line-range filter by classifying removals immediately
- diff: rename and group the line-range filter for clarity (this branch is used by mm/diff-process-hunks.)
The 'git log -L<range>:<path>' command has been taught to limit various 'diff' operations, such as '--stat', '--check', and '-G', to the specified range and path.
Needs review.
cf. <[email protected]>
source: <[email protected]>
* hn/history-squash (2026-07-20) 5 commits
(merged to 'next' on 2026-07-23 at 2790c83e45)
+ history: re-edit a squash with every message
+ sequencer: share the squash message marker helpers and flags
+ history: add squash subcommand to fold a range
+ history: give commit_tree_ext a message template
+ history: extract helper for a commit's parent tree
The experimental 'git history' command has been taught a new 'squash' subcommand to fold a range of commits into a single commit, with any descendants replayed on top.
Will merge to 'master'.
cf. <[email protected]>
cf. <[email protected]>
source: <[email protected]>
* tb/midx-incremental-custom-base (2026-06-12) 3 commits
- midx-write: include packs above custom incremental base
- midx: pass custom '--base' through incremental writes
- t5334: expose shared nth_line() helper
The 'git multi-pack-index write --incremental' command has been corrected to properly honor the '--base' option. Previously, the custom base was ignored by the normal write path; packs from layers above the selected base were incorrectly skipped by the pack exclusion logic, and reachability closure for bitmaps was broken.
Needs review.
source: <[email protected]>
* td/ref-filter-memoize-contains (2026-06-12) 3 commits (merged to 'next' on 2026-07-19 at 5b640e33a1)
+ commit-reach: die on contains walk errors
+ ref-filter: memoize --contains with generations
+ commit-reach: reject cycles in contains walk
'git branch --contains' and 'git for-each-ref --contains' have been optimized to use the memoized commit traversal previously used only by 'git tag --contains', significantly speeding up connectivity checks across many candidate refs with shared history.
Will merge to 'master'.
cf. <[email protected]>
source: <20260612-ref-filter-memoized-contains-v4-0-5ed39fd001dd@gmail.com>
* tc/replay-linearize (2026-07-07) 3 commits
(merged to 'next' on 2026-07-09 at 371c2e9c3b)
+ replay: offer an option to linearize the commit topology
+ replay: resolve the replay base outside pick_regular_commit()
+ replay: add helper to put entry into replayed_commits
The 'git replay' command has been taught the '--linearize' option to drop merge commits and linearize the replayed history, mimicking 'git rebase --no-rebase-merges'.
On hold, waiting for response from the author.
cf. <[email protected]>
cf. <CABPp-BGzU9KHGF1nipi2HZaa1AiikMKGGaapQzHVH06wO4V1ww@mail.gmail.com>
source: <[email protected]>
* ps/cat-file-remote-object-info (2026-07-24) 13 commits
(merged to 'next' on 2026-07-24 at e436a42272)
+ cat-file: make remote-object-info allow-list adapt to the server
+ cat-file: add remote-object-info to batch-command
+ transport: add client support for object-info
+ serve: advertise object-info feature
+ protocol-caps: check object existence regardless of the attributes requested
+ fetch-pack: move fetch initialization
+ connect: make write_fetch_command_and_capabilities() more generic
+ fetch-pack: move write_fetch_command_and_capabilities() to connect.c
+ fetch-pack: use unsigned int for hash_algo variable
+ fetch-pack: drop the static advertise_sid variable
+ t1006: extract helper functions into new 'lib-cat-file.sh'
+ cat-file: declare loop counter inside for()
+ transport-helper: fix memory leak of helper on disconnect
(this branch is used by ps/cat-file-remote-object-info-type.)
The 'remote-object-info' command has been added to 'git cat-file --batch-command', allowing clients to request object metadata (currently size) from a remote server via protocol v2 without downloading the entire object. Format placeholders are dynamically filtered on the client based on server-advertised capabilities, returning empty strings for inapplicable or unsupported fields.
Will merge to 'master'.
source: <[email protected]>
* mm/diff-process-hunks (2026-07-26) 10 commits
- line-log: consult diff process for range tracking
- diff: consult diff process for --stat counts
- blame: consult diff process for no-hunk detection
- diff: bypass diff process with --no-ext-diff and in format-patch
- diff: add long-running diff process via diff.<driver>.process
- sub-process: separate process lifecycle from hashmap management
- userdiff: add diff.<driver>.process config
- xdiff: support external hunks via xpparam_t
- gitattributes: document how external diff drivers relate to diff features
- Merge branch 'mm/line-log-limited-ops' into mm/diff-process-hunks (this branch uses mm/line-log-limited-ops.)
A new 'diff.<driver>.process' configuration has been introduced to allow a long-running external process to act as a hunk provider, enabling external tools to control which lines Git considers changed while leaving all output formatting (word diff, color, blame, etc.) to Git's standard pipeline.
Ejected for now, as it conflicts badly with 'mm/line-log-limited-ops'.
Needs review.
source: <[email protected]>
* ty/migrate-trust-executable-bit (2026-07-20) 4 commits (merged to 'next' on 2026-07-23 at 4873f289dd)
+ environment: move has_symlinks into repo_config_values
+ environment: move trust_executable_bit into repo_config_values
+ read-cache: pass 'repo' to 'ce_mode_from_stat()'
+ read-cache: remove redundant extern declarations
The 'trust_executable_bit' (coming from the 'core.filemode' configuration) has been migrated into 'struct repo_config_values' to tie it to a specific repository instance.
Will merge to 'master'.
cf. <alvNq8rXF/[email protected]>
cf. <[email protected]>
source: <[email protected]>
* ec/commit-fixup-options (2026-05-26) 2 commits
- commit: allow -c/-C for all kinds of --fixup
- commit: allow -m/-F for all kinds of --fixup
Support for '-m', '-F', '-c', or '-C' options to supply a commit log message from outside the editor has been added for all 'git commit --fixup' variations.
Needs review.
source: <[email protected]>
* hn/branch-delete-merged (2026-07-25) 7 commits
- branch: add --dry-run for --delete-merged
- branch: add branch.<name>.deleteMerged opt-out
- branch: add --delete-merged <branch>
- branch: prepare delete_branches for a bulk caller
- branch: let delete_branches skip unmerged branches on bulk refusal
- branch: convert delete_branches() to a flags argument
- branch: add --forked filter for --list mode
The 'git branch' command has been taught the '--delete-merged' option to remove local branches that are already merged into their tracked remote-tracking branches.
Will merge to 'next'?
cf. <[email protected]>
source: <[email protected]>
* ps/shift-root-in-graph (2026-07-14) 7 commits (merged to 'next' on 2026-07-19 at bebf13a239)
+ graph: add --[no-]graph-indent and log.graphIndent
+ graph: move config reading into graph_read_config()
+ graph: wrap cascading commits after 4 columns
+ graph: indent visual root in graph
+ graph: add a 2 commit buffer for lookahead
+ revision: add next_commit_to_show()
+ lib-log-graph: move check_graph function
'git log --graph' has been modified to visually distinguish parentless 'root' commits (and commits that become roots due to history simplification) by indenting them, preventing them from appearing falsely related to unrelated commits rendered immediately above them.
Will merge to 'master'.
cf. <CA+J6zkQNzEAhhY74qDrOwfFVrshEF7YFxWRRkwE3ttJo15ZbAg@mail.gmail.com>
source: <[email protected]>
* kk/merge-base-exhaustion (2026-07-11) 11 commits
- commit-reach: remove commit-date ordering fallback
- commit-reach: move min_generation check into paint_queue_get()
- commit-reach: terminate merge-base walk when one paint side is exhausted
- commit-reach: introduce struct paint_state with per-side counters
- t6600: add clock-skew topologies and step counts for edge cases
- commit-reach: add trace2 instrumentation to paint_down_to_common()
- t6099, t6600: add side-exhaustion regression tests
- t6600: add test cases for side-exhaustion edge cases
- test-lib-functions: improve diagnostic output for trace2 data assertions
- Documentation/technical: add paint-down-to-common doc
- Merge branch 'kk/commit-reach-find-all-fix' into kk/merge-base-exhaustion
The merge-base computation has been optimized by stopping the walk early when one side's exclusive commits in the queue are exhausted, yielding significant speedups for queries with one-sided histories.
Needs review.
cf. <CABPp-BGATrNJyT7trzUzAMB_v-1ssVe_SRqp+281X5GzU=2eow@mail.gmail.com>
source: <[email protected]>
Quoted 9 lines · Junio C Hamano
* hn/history-squash (2026-07-20) 5 commits
(merged to 'next' on 2026-07-23 at2790c83e45)
+ history: re-edit a squash with every message
+ sequencer: share the squash message marker helpers and flags
+ history: add squash subcommand to fold a range
+ history: givecommit_tree_exta message template
+ history: extract helper for a commit's parent tree
Quoted 8 lines
The experimental 'git history' command has been taught a new 'squash' subcommand to fold a range of commits into a single commit, with any descendants replayed on top.
Will merge to 'master'.
cf. <[email protected]>
cf. <[email protected]>
source: <[email protected]>
Oh, I'd missed this going into master. Has the implementation received any serious review? I've seen messages from a couple of people trying it out but I can't see anybody reading the code. Having a quick look through it assumes the presence of an UNINTERESTING commit means we have a BOTTOM commit. It then assumes that UNINTERESTING commit means we cannot reach any root commits. Both of those assumptions are false I think. As far as I can see it allows multiple tips so that with
- A - B - C
\
Dit accepts "^A C D" but does not squash them correctly. It will refuse to squash "^A C" if there is a branch pointing to "B", but not if there only a branch pointing to "D" (in which case the branch is not rewritten). It also refuses to squash if there is a tag or remote tracking ref pointing to "B" which seems rather strange. None of the other history commands complain about rewriting commits that are pointed to by tags or remote tracking refs.
Without "--reedit-message", it will happily discard "amend!" and "squash!" commit messages even though the user creating them is a strong signal that they intended to use them to reword the commit. "--reedit-message" is a rather verbose option name which does not make sense to me as we're creating a new commit with a new message so we're not re-editing anything. I've commented elsewhere that I strongly dislike reusing the rebase squash message template for this command where we can squash fixups into multiple different commits at the same time. I'll try and go through the patches and produce some fixups, though that may not be until next week.
Thanks
Phillip
Quoted 4 lines · Phillip Wood
Quoted 4 lines
The experimental 'git history' command has been taught a new 'squash' subcommand to fold a range of commits into a single commit, with any descendants replayed on top.
Quoted 8 lines
Quoted 4 lines
Will merge to 'master'.
cf. <[email protected]>
cf. <[email protected]>
source: <[email protected]>Oh, I'd missed this going into master. Has the implementation received any serious review? I've seen messages from a couple of people trying it out but I can't see anybody reading the code.
Thanks for stopping me. I am happy to immediately revert the merge of this topic into 'next'.
Perhaps I should re-evaluate the "What's Cooking" report and eject other topics from 'next' as well. There are indeed topics I did not personally read, relying instead on impressions from busy exchanges (including earlier iterations read by others X-<).
Are there other topics in 'next' that do not deserve to be there yet?
I cannot, of course, afford to be the sole serious reviewer and merge only those I have carefully read through, given that there are only 24 hours in a day and I have other obligations. So either our quality criteria must suffer, like this episode showed us, or more topics must be ignored.
Quoted 5 lines
Having a quick look
through it assumes the presence of an UNINTERESTING commit means we have a BOTTOM commit. It then assumes that UNINTERESTING commit means we cannot reach any root commits. Both of those assumptions are false I think.
Very true.
Quoted 2 lines
... I'll try and go through the patches and produce some fixups, though that may not be until next week.
Thanks.
Quoted 18 lines · Junio C Hamano
Quoted 4 lines · Phillip Wood
Quoted 4 lines
The experimental 'git history' command has been taught a new 'squash' subcommand to fold a range of commits into a single commit, with any descendants replayed on top.
Quoted 8 lines
Quoted 4 lines
Will merge to 'master'. cf. <[email protected]> cf. <[email protected]> source: <[email protected]>Oh, I'd missed this going into master. Has the implementation received any serious review? I've seen messages from a couple of people trying it out but I can't see anybody reading the code.
Thanks for stopping me. I am happy to immediately revert the merge of this topic into 'next'.
Quoted 7 lines
Perhaps I should re-evaluate the "What's Cooking" report and eject other topics from 'next' as well. There are indeed topics I did not personally read, relying instead on impressions from busy exchanges (including earlier iterations read by others X-<).
Are there other topics in 'next' that do not deserve to be there yet?
There aren't any others that I'm aware of, but I've not looked at most of them so that probably does not mean much.
Quoted 5 lines
I cannot, of course, afford to be the sole serious reviewer and merge only those I have carefully read through, given that there are only 24 hours in a day and I have other obligations. So either our quality criteria must suffer, like this episode showed us, or more topics must be ignored.
Yes, we could really do with more reviewers
Quoted 10 lines
Quoted 5 lines
Having a quick look
through it assumes the presence of an UNINTERESTING commit means we have a BOTTOM commit. It then assumes that UNINTERESTING commit means we cannot reach any root commits. Both of those assumptions are false I think.Very true.
Quoted 2 lines
... I'll try and go through the patches and produce some fixups, though that may not be until next week.
Harald - I've got some half finished fixups that I didn't get round it finishing when I had a look at this last week that I'll clean up and send so I'd hold off re-rolling for now.
Thanks
Phillip
Quoted 11 lines · Phillip Wood
Quoted 7 lines
Perhaps I should re-evaluate the "What's Cooking" report and eject other topics from 'next' as well. There are indeed topics I did not personally read, relying instead on impressions from busy exchanges (including earlier iterations read by others X-<).
Are there other topics in 'next' that do not deserve to be there yet?
There aren't any others that I'm aware of, but I've not looked at most of them so that probably does not mean much.
Quoted 7 lines
Quoted 5 lines
I cannot, of course, afford to be the sole serious reviewer and merge only those I have carefully read through, given that there are only 24 hours in a day and I have other obligations. So either our quality criteria must suffer, like this episode showed us, or more topics must be ignored.
Yes, we could really do with more reviewers
Perhaps the sensible thing for me to do is to stop taking any new topics into 'seen', even if I've spotted them, until I see somebody give them a real review.
Otherwise, it becomes too tempting for me to jump in, give them a superficial read after seeing them linger in the "What's Cooking" draft in the "Needs review" state for too long, and, believing I've seen enough, mark them for 'next'. If I don't queue a patch that nobody seems to have read carefully, I won't succumb to such temptation.
Hi Junio
Quoted 11 lines · Junio C Hamano
Perhaps the sensible thing for me to do is to stop taking any new topics into 'seen', even if I've spotted them, until I see somebody give them a real review.
Otherwise, it becomes too tempting for me to jump in, give them a superficial read after seeing them linger in the "What's Cooking" draft in the "Needs review" state for too long, and, believing I've seen enough, mark them for 'next'. If I don't queue a patch that nobody seems to have read carefully, I won't succumb to such temptation.
Maybe, though I do find having the patches in seen makes it easier to do an in-depth review as it means I don't have to apply them myself.
Thanks
Phillip
Quoted 15 lines · Phillip Wood
Hi Junio
Quoted 11 lines · Junio C Hamano
Perhaps the sensible thing for me to do is to stop taking any new topics into 'seen', even if I've spotted them, until I see somebody give them a real review.
Otherwise, it becomes too tempting for me to jump in, give them a superficial read after seeing them linger in the "What's Cooking" draft in the "Needs review" state for too long, and, believing I've seen enough, mark them for 'next'. If I don't queue a patch that nobody seems to have read carefully, I won't succumb to such temptation.
Quoted 2 lines
Maybe, though I do find having the patches in seen makes it easier to do an in-depth review as it means I don't have to apply them myself.
Yes, that is a very good point. And if the authors are paying attention, it would hopefully also help them how well their changes play with others' changes.
OK, then I will keep picking them up, but under these conditions:
(1) They will not leave 'seen' without anyone commenting on them;
(2) They will automatically be discarded after four weeks without positive feedback; and
(3) I will not feel obligated to review them even if no one steps up.
Thanks.
Ejecting things more aggressively out of 'seen'?
In reply to Phillip WoodQuoted 13 lines · Phillip Wood
Quoted 11 lines · Junio C Hamano
Perhaps the sensible thing for me to do is to stop taking any new topics into 'seen', even if I've spotted them, until I see somebody give them a real review.
Otherwise, it becomes too tempting for me to jump in, give them a superficial read after seeing them linger in the "What's Cooking" draft in the "Needs review" state for too long, and, believing I've seen enough, mark them for 'next'. If I don't queue a patch that nobody seems to have read carefully, I won't succumb to such temptation.
Quoted 2 lines
Maybe, though I do find having the patches in seen makes it easier to do an in-depth review as it means I don't have to apply them myself.
I have operated in "aggressively accept many things into 'seen'" mode for some time since this exchange. We ended up with many "Needs review" topics, which nobody was interested in, sitting in 'seen' for weeks. Having these and other topics in 'seen' may have helped other topics get reviewed, which might have been missed by you and others if they were not in my tree in a readily available form. Thus, it is not entirely fair to declare this a failed experiment.
Still, we need to decide, and better yet, establish a policy on, how to deal with topics that remain unreviewed even after lingering in 'seen' for quite some time.
A mechanically applicable set of policies makes it easier to manage a large volume of topics. Some of these are currently written down, while others may have been guessed by those who read a few "What's cooking" reports in a row:
- A topic that has spent a week in 'next' graduates to 'master', unless there is a strong reason to do otherwise.
- A topic marked as "Will merge to 'next'" is merged 60 hours after such a label is applied (in other words, people can stop me if they act soon enough).
- A topic goes into the "Waiting for response" state once reviewed, where it remains until the author responds. After staying in this state for a month or so, it is demoted to the "Stalled" state, and eventually dropped.
We should probably have a rule that says "a topic that did not get reviewed for N weeks is ejected from 'seen'".
Tonight, I am sending a notice for each topic that has been in that state for more than a month (the oldest one dating back to mid-July).
Re: Ejecting things more aggressively out of 'seen'?
Quoted 36 lines · Junio C Hamano
Quoted 13 lines · Phillip Wood
Quoted 11 lines · Junio C Hamano
Perhaps the sensible thing for me to do is to stop taking any new topics into 'seen', even if I've spotted them, until I see somebody give them a real review.
Otherwise, it becomes too tempting for me to jump in, give them a superficial read after seeing them linger in the "What's Cooking" draft in the "Needs review" state for too long, and, believing I've seen enough, mark them for 'next'. If I don't queue a patch that nobody seems to have read carefully, I won't succumb to such temptation.
Quoted 2 lines
Maybe, though I do find having the patches in seen makes it easier to do an in-depth review as it means I don't have to apply them myself.
I have operated in "aggressively accept many things into 'seen'" mode for some time since this exchange. We ended up with many "Needs review" topics, which nobody was interested in, sitting in 'seen' for weeks. Having these and other topics in 'seen' may have helped other topics get reviewed, which might have been missed by you and others if they were not in my tree in a readily available form. Thus, it is not entirely fair to declare this a failed experiment.
Still, we need to decide, and better yet, establish a policy on, how to deal with topics that remain unreviewed even after lingering in 'seen' for quite some time.
A mechanically applicable set of policies makes it easier to manage a large volume of topics. Some of these are currently written down, while others may have been guessed by those who read a few "What's cooking" reports in a row:
Quoted 6 lines
- A topic that has spent a week in 'next' graduates to 'master', unless there is a strong reason to do otherwise.
- A topic marked as "Will merge to 'next'" is merged 60 hours after such a label is applied (in other words, people can stop me if they act soon enough).
One state that confuses newcomers quite often is "Will merge to 'next'?" with a question mark at the end. If we were to document these we shuld probably also document that state.
Quoted 7 lines
- A topic goes into the "Waiting for response" state once reviewed, where it remains until the author responds. After staying in this state for a month or so, it is demoted to the "Stalled" state, and eventually dropped.
We should probably have a rule that says "a topic that did not get reviewed for N weeks is ejected from 'seen'".
I think that's reasonable. Becoming a bit more aggressive there doesn't make too much of a difference anyway -- if a topic gets evicted from "seen" and then later on regains interest then it can still be included into "seen" again.
By gut feeling I'd use the same rule as for "Waiting for response".
Patrick
Re: Ejecting things more aggressively out of 'seen'?
Quoted 3 lines · Patrick Steinhardt
One state that confuses newcomers quite often is "Will merge to 'next'?" with a question mark at the end. If we were to document these we shuld probably also document that state.
Hmph, really? Just like the subject of this e-mail message, a trailing question mark is my way of saying "I am planning to do this, but if you think it is a bad idea, please stop me with an explanation why I shouldn't".
Quoted 8 lines
Quoted 7 lines
- A topic goes into the "Waiting for response" state once reviewed, where it remains until the author responds. After staying in this state for a month or so, it is demoted to the "Stalled" state, and eventually dropped.
We should probably have a rule that says "a topic that did not get reviewed for N weeks is ejected from 'seen'".
Quoted 6 lines
I think that's reasonable. Becoming a bit more aggressive there doesn't make too much of a difference anyway -- if a topic gets evicted from "seen" and then later on regains interest then it can still be included into "seen" again.
By gut feeling I'd use the same rule as for "Waiting for response".
An obvious alternative is to queue only topics for which I can, by judging reviews on the list, at least say "Will merge to 'next'?" with enough confidence. It would reduce the size of 'seen' and the friction felt by contributors when their topic is once queued on 'seen' and later ejected unceremoniously through no fault of their own, other than their topic being forgettable or uninspiring to others.
I do not know which one is better: educating contributors that their topics being uninspiring to others is something they should not feel bad about and giving our reviewers easier access to these candidate topics, or being strict and mechanical and queuing only topics that some human reviewers with a certain level of reputation have looked at and have not just shown interest in, but have said are ready.
I can do either. It is less emotional stress for me to do the latter. Between hitting 'seen' and then later being discarded, and not getting any response or reaction at all, I am not sure which one our contributors find more acceptable.
Re: Ejecting things more aggressively out of 'seen'?
Quoted 10 lines · Junio C Hamano
Quoted 3 lines · Patrick Steinhardt
One state that confuses newcomers quite often is "Will merge to 'next'?" with a question mark at the end. If we were to document these we shuld probably also document that state.
Hmph, really? Just like the subject of this e-mail message, a trailing question mark is my way of saying "I am planning to do this, but if you think it is a bad idea, please stop me with an explanation why I shouldn't".
The subject of this message feels more like a question, whereas it sounds like "Will merge to next?" means "I'm going to do that unless someone stops me" rather than "do others think this is ready for next?"
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
- A topic goes into the "Waiting for response" state once reviewed, where it remains until the author responds. After staying in this state for a month or so, it is demoted to the "Stalled" state, and eventually dropped.
Quoted 7 lines
Quoted 7 lines
Quoted 2 lines
We should probably have a rule that says "a topic that did not get reviewed for N weeks is ejected from 'seen'".
I think that's reasonable. Becoming a bit more aggressive there doesn't make too much of a difference anyway -- if a topic gets evicted from "seen" and then later on regains interest then it can still be included into "seen" again.
Indeed
Quoted 1 line
Quoted 1 line
By gut feeling I'd use the same rule as for "Waiting for response".
Perhaps making it clear that when a topic is ejected it can be re-added if there is renewed interest in it would lessen any worry about demotivating contributors?
Thanks
Phillip
Quoted 19 lines
An obvious alternative is to queue only topics for which I can, by judging reviews on the list, at least say "Will merge to 'next'?" with enough confidence. It would reduce the size of 'seen' and the friction felt by contributors when their topic is once queued on 'seen' and later ejected unceremoniously through no fault of their own, other than their topic being forgettable or uninspiring to others.
I do not know which one is better: educating contributors that their topics being uninspiring to others is something they should not feel bad about and giving our reviewers easier access to these candidate topics, or being strict and mechanical and queuing only topics that some human reviewers with a certain level of reputation have looked at and have not just shown interest in, but have said are ready.
I can do either. It is less emotional stress for me to do the latter. Between hitting 'seen' and then later being discarded, and not getting any response or reaction at all, I am not sure which one our contributors find more acceptable.
Re: Ejecting things more aggressively out of 'seen'?
Quoted 3 lines · Phillip Wood
Perhaps making it clear that when a topic is ejected it can be re-added if there is renewed interest in it would lessen any worry about demotivating contributors?
Yes, that is a good suggestion.
Mentioning this possibility when a topic is ejected from 'seen' should help soften the impact and clarify that ejection is not a permanent rejection, just a reflection of current review.
I'll try this as the heading for the discarded section.
[Discarded]
Many of these topics were picked up prematurely but did not prove ready for inclusion, and will be removed. They can be resubmit if they gained enough interest and showed good fit to the system in the future, unless noted otherwise.
Re: Ejecting things more aggressively out of 'seen'?
In reply to Junio C HamanoQuoted 10 lines · Junio C Hamano
Quoted 3 lines · Patrick Steinhardt
One state that confuses newcomers quite often is "Will merge to 'next'?" with a question mark at the end. If we were to document these we shuld probably also document that state.
Hmph, really? Just like the subject of this e-mail message, a trailing question mark is my way of saying "I am planning to do this, but if you think it is a bad idea, please stop me with an explanation why I shouldn't".
The question that newcomers often have here is whether they need to do anything about this. They basically wonder whether that question is directed at them specifically. Maybe rewording it to "Will merge to next [on <day>] unless told otherwise" may help clarify?
Quoted 15 lines
Quoted 8 lines
Quoted 7 lines
- A topic goes into the "Waiting for response" state once reviewed, where it remains until the author responds. After staying in this state for a month or so, it is demoted to the "Stalled" state, and eventually dropped.
We should probably have a rule that says "a topic that did not get reviewed for N weeks is ejected from 'seen'".
Quoted 6 lines
I think that's reasonable. Becoming a bit more aggressive there doesn't make too much of a difference anyway -- if a topic gets evicted from "seen" and then later on regains interest then it can still be included into "seen" again.
By gut feeling I'd use the same rule as for "Waiting for response".
Quoted 7 lines
An obvious alternative is to queue only topics for which I can, by judging reviews on the list, at least say "Will merge to 'next'?" with enough confidence. It would reduce the size of 'seen' and the friction felt by contributors when their topic is once queued on 'seen' and later ejected unceremoniously through no fault of their own, other than their topic being forgettable or uninspiring to others.
Wouldn't we lose the ability to integrate topics with one another early on to see how they interact? And it makes me wonder whether this will overall slow down progress of a patch series if it gets merged to "seen" at a later point.
Quoted 6 lines
I do not know which one is better: educating contributors that their topics being uninspiring to others is something they should not feel bad about and giving our reviewers easier access to these candidate topics, or being strict and mechanical and queuing only topics that some human reviewers with a certain level of reputation have looked at and have not just shown interest in, but have said are ready.
Overall I would say "strict and mechanical" is a good property to have, because it's also easier to explain. But I don't think we should put the bar too high for integrating into "seen" so that we still retain the ability to test the topic together with all the other in-flight topics well ahead of being merged to "next".
So maybe instead of someone saying that a patch series is ready, the bar should be that the patch series has gotten at least one human review that was somewhat favorable on the overall direction?
Quoted 4 lines
I can do either. It is less emotional stress for me to do the latter. Between hitting 'seen' and then later being discarded, and not getting any response or reaction at all, I am not sure which one our contributors find more acceptable.
Hard to say. In any case, whatever we choose, it shouldn't only be acceptable for newcomers but also make _your_ life as easy as reasonably possible.
Patrick
Re: Ejecting things more aggressively out of 'seen'?
Quoted 4 lines · Patrick Steinhardt
The question that newcomers often have here is whether they need to do anything about this. They basically wonder whether that question is directed at them specifically. Maybe rewording it to "Will merge to next [on <day>] unless told otherwise" may help clarify?
That is quite a mouthful and [on <day>] is harder to automate, so I'd probably keep the '?' and describe what it means near the top, where I already talk about what it means to be in 'next' etc.
Re: Ejecting things more aggressively out of 'seen'?
In reply to Patrick SteinhardtQuoted 8 lines · Patrick Steinhardt
Quoted 7 lines
An obvious alternative is to queue only topics for which I can, by judging reviews on the list, at least say "Will merge to 'next'?" with enough confidence. It would reduce the size of 'seen' and the friction felt by contributors when their topic is once queued on 'seen' and later ejected unceremoniously through no fault of their own, other than their topic being forgettable or uninspiring to others.
Quoted 4 lines
Wouldn't we lose the ability to integrate topics with one another early on to see how they interact? And it makes me wonder whether this will overall slow down progress of a patch series if it gets merged to "seen" at a later point.
Even when I see a topic was reviewed by humans and reviewers find it satisfactory standalone, it would not hit 'next' immediately. We are talking about topics that flow into 'seen' without attracting interest by people. Quite honestly, I do not think anybody should care if these topics do not play well with other such topics. It is the job of topic authors to make sure what they write meshes well with what is in flight, and not cluttering 'seen' with hopeless topics would help those serious authors who do their homework.
Once a topic is found interesting standalone, it is very much in the projects' interest to make sure it meshes well with other topics in flight. But not before.
Quoted 3 lines
So maybe instead of someone saying that a patch series is ready, the bar should be that the patch series has gotten at least one human review that was somewhat favorable on the overall direction?
It has to be more like a trusted reviewer saying that it has potential to be a reasonable change.
We shouldn't require perfection from the get go and instead expect some more iterations after a topic hits 'seen'. But it is a promise to spend project resources on the topic to have it in 'seen'. It shouldn't be triggered by just a random drive-by commenter saying "I want moon and this is it" without any believable explanation.
Thanks.
Quoted 6 lines · Junio C Hamano
Quoted 4 lines · Phillip Wood
Quoted 4 lines
The experimental 'git history' command has been taught a new 'squash' subcommand to fold a range of commits into a single commit, with any descendants replayed on top.
Quoted 8 lines
Quoted 8 lines
Quoted 4 lines
Will merge to 'master'.
cf. <[email protected]>
cf. <[email protected]>
source: <[email protected]>Oh, I'd missed this going into master. Has the implementation received any serious review? I've seen messages from a couple of people trying it out but I can't see anybody reading the code.
I believe I was one of the last people to comment on it. I _had_ done a read through of the code, spotted some things, but appear to have missed these more nuanced interactions. My last "lgtm" message in the thread really meant to say "these latest fixes sufficiently address my comments". And as someone who doesn't have much history on the mailing list, I assumed Junio would weigh my approval accordingly :)
I didn't notice this had advanced to next either, and may have spoken up sooner if I did.
So given all that, assuming I had come along and looked at these patches, but found no issues in the first place, I probably would have stayed silent. Should I be more careful with such a blanket "this is good" message in the future?
Sorry for any hassle - though I don't expect you "blame" reviewers for this sort of thing. It's a lot harder to demonstrate correctness than point out some potential problem.
Quoted 3 lines · Matt Hunter
Sorry for any hassle - though I don't expect you "blame" reviewers for this sort of thing. It's a lot harder to demonstrate correctness than point out some potential problem.
Yes, I agree that giving positive reviews is a lot harder to do.
Quoted 9 lines
Without "--reedit-message", it will happily discard "amend!" and "squash!" commit messages even though the user creating them is a strong signal that they intended to use them to reword the commit. "--reedit-message" is a rather verbose option name which does not make sense to me as we're creating a new commit with a new message so we're not re-editing anything. I've commented elsewhere that I strongly dislike reusing the rebase squash message template for this command where we can squash fixups into multiple different commits at the same time.
Should we always do "--reedit-message" then, i.e. remove the option and have it as the default? Do we need a "--no-edit" switch then instead? Maybe not, user will then always have the editor opened and they can save and quit if they don't care.
I'm not sure about changing the template.
Harald
Quoted 9 lines · Harald Nordgren
Quoted 9 lines
Without "--reedit-message", it will happily discard "amend!" and "squash!" commit messages even though the user creating them is a strong signal that they intended to use them to reword the commit. "--reedit-message" is a rather verbose option name which does not make sense to me as we're creating a new commit with a new message so we're not re-editing anything. I've commented elsewhere that I strongly dislike reusing the rebase squash message template for this command where we can squash fixups into multiple different commits at the same time.
I also agree with these points, but given that they were already brought up and dismissed before, I felt it wasn't my place to try to dictate high-level design.
I may be misunderstanding your current concern with the first sentence Phillip, but this was (at least in part) one of the recent things addressed in this feature [1] [2]. If we go with the assumption that the default behavior is to squash all the changes, but abandon all context outside that provided by the first commit, then accepting amend! messages for that first commit seems to drive the behavior closer to what you describe.
Quoted 4 lines
Should we always do "--reedit-message" then, i.e. remove the option and have it as the default? Do we need a "--no-edit" switch then instead? Maybe not, user will then always have the editor opened and they can save and quit if they don't care.
A script running 'git history squash' may have a harder time with this, though something like 'git -c core.editor=/bin/true history squash' is at least _some_ workaround.
It would seem consistent with other git commands to offer both an --edit and --no-edit option. If --edit is the default, it may make sense to offer the option anyway, for the sake of some potential future where there exists a config 'history.editSquashMsg' (for example). '--edit' would then override a configured value of 'false'. Of course, the precedent is --reedit-message so far in 'git history'.
1: https://lore.kernel.org/git/[email protected]/
2: https://lore.kernel.org/git/[email protected]/
Hi Matt
Quoted 11 lines · Matt Hunter
Quoted 9 lines · Harald Nordgren
Quoted 9 lines
Without "--reedit-message", it will happily discard "amend!" and "squash!" commit messages even though the user creating them is a strong signal that they intended to use them to reword the commit. "--reedit-message" is a rather verbose option name which does not make sense to me as we're creating a new commit with a new message so we're not re-editing anything. I've commented elsewhere that I strongly dislike reusing the rebase squash message template for this command where we can squash fixups into multiple different commits at the same time.
Quoted 3 lines
I also agree with these points, but given that they were already brought up and dismissed before, I felt it wasn't my place to try to dictate high-level design.
If you raise a point and it is dismissed without a convincing explanation then its fine to raise it again asking for more details so that you can understand the reason behind the decision. That often leads to a productive discussion and an improved design.
Quoted 7 lines
I may be misunderstanding your current concern with the first sentence Phillip, but this was (at least in part) one of the recent things addressed in this feature [1] [2]. If we go with the assumption that the default behavior is to squash all the changes, but abandon all context outside that provided by the first commit, then accepting amend! messages for that first commit seems to drive the behavior closer to what you describe.
My feeling is that "amend!" and "squash!" commit messages indicate that the user intended to use them when they squashed so I think we should be a bit more careful about dropping them compared to other messages.
Quoted 8 lines
Quoted 4 lines
Should we always do "--reedit-message" then, i.e. remove the option and have it as the default? Do we need a "--no-edit" switch then instead? Maybe not, user will then always have the editor opened and they can save and quit if they don't care.
A script running 'git history squash' may have a harder time with this, though something like 'git -c core.editor=/bin/true history squash' is at least _some_ workaround.
Can't the script just pass --edit/--no-edit?
Quoted 6 lines
It would seem consistent with other git commands to offer both an --edit and --no-edit option. If --edit is the default, it may make sense to offer the option anyway, for the sake of some potential future where there exists a config 'history.editSquashMsg' (for example). '--edit' would then override a configured value of 'false'. Of course, the precedent is --reedit-message so far in 'git history'.
That precedent is unfortunate, "--reedit-message" makes sense for the "fixup" subcommand because we are reediting an existing message but that's not the case with the "squash" subcommand where we're constructing a new message from several commits. Given how new the "fixup" subcommand is I'm tempted to add an "--edit" option and deprecate "--reedit-message".
Having thought about it a bit over the weekend I wonder if the best solution when squashing is to default to looking at the commits being squashed before deciding whether to open the editor or not and allow the user to override that on the commandline like "git commit". If we're squashing a bunch of "fixup!" and/or "amend!" commits into a single target then I'm not sure its worth opening the editor, but if we're squashing other commits together then it probably makes sense to open the editor so the user can check the result. I guess the danger is it ends up being confusing.
Thanks
Phillip
Quoted 4 lines · Phillip Wood
If you raise a point and it is dismissed without a convincing explanation then its fine to raise it again asking for more details so that you can understand the reason behind the decision. That often leads to a productive discussion and an improved design.
True. But because "convincing" is not black and white, we need to be careful a bit.
Quoted 6 lines
That precedent is unfortunate, "--reedit-message" makes sense for the "fixup" subcommand because we are reediting an existing message but that's not the case with the "squash" subcommand where we're constructing a new message from several commits. Given how new the "fixup" subcommand is I'm tempted to add an "--edit" option and deprecate "--reedit-message".
As "git history" is marked experimental, we can afford to tweak the UI for the better ;-).
Quoted 6 lines
Having thought about it a bit over the weekend I wonder if the best solution when squashing is to default to looking at the commits being squashed before deciding whether to open the editor or not and allow the user to override that on the commandline like "git commit". If we're squashing a bunch of "fixup!" and/or "amend!" commits into a single target then I'm not sure its worth opening the editor...
Hmph, a base commit with an "amend!" (tells the machinery to use the message from the "amend!" commit only, discarding the existing one) is clear to me that there is no need for further editing, but if there is any "fixup!" (code change, for which need for associating log message change is unknown) or if there are multiple "amend!", I am not so sure. It does make it confusing, I suspect.
Quoted 9 lines · Junio C Hamano
Quoted 4 lines · Phillip Wood
If you raise a point and it is dismissed without a convincing explanation then its fine to raise it again asking for more details so that you can understand the reason behind the decision. That often leads to a productive discussion and an improved design.
True. But because "convincing" is not black and white, we need to be careful a bit.
Indeed - what I'm really looking for in a discussion is to be convinced that there is a reasonably logical rationale behind a decision and that the other person has considered the counterarguments. Many decisions are trade offs and different people may quite reasonably place different weight the factors involved leading to different results. If I disagree with a decision I try to only keep pushing back if I think the logic behind the decision is flawed. I also find such discussions useful for improving my own understanding of the problem and sometimes change my mind as a result.
Quoted 7 lines
Quoted 6 lines
Having thought about it a bit over the weekend I wonder if the best solution when squashing is to default to looking at the commits being squashed before deciding whether to open the editor or not and allow the user to override that on the commandline like "git commit". If we're squashing a bunch of "fixup!" and/or "amend!" commits into a single target then I'm not sure its worth opening the editor...
Quoted 6 lines
Hmph, a base commit with an "amend!" (tells the machinery to use the message from the "amend!" commit only, discarding the existing one) is clear to me that there is no need for further editing, but if there is any "fixup!" (code change, for which need for associating log message change is unknown) or if there are multiple "amend!", I am not so sure. It does make it confusing, I suspect.
I certainly don't object to always opening the editor, it has the advantage that it is much easier to explain and encourages users to revise the commit message when they are squashing.
Thanks
Phillip
Hi Harald
Quoted 10 lines · Harald Nordgren
Quoted 9 lines
Without "--reedit-message", it will happily discard "amend!" and "squash!" commit messages even though the user creating them is a strong signal that they intended to use them to reword the commit. "--reedit-message" is a rather verbose option name which does not make sense to me as we're creating a new commit with a new message so we're not re-editing anything. I've commented elsewhere that I strongly dislike reusing the rebase squash message template for this command where we can squash fixups into multiple different commits at the same time.
Quoted 4 lines
Should we always do "--reedit-message" then, i.e. remove the option and have it as the default? Do we need a "--no-edit" switch then instead? Maybe not, user will then always have the editor opened and they can save and quit if they don't care.
I've left some thoughts about the default in my reply to Matt. Whatever the default I don't think there is a good reason not to let the user override it on the commandline,
Quoted 1 line
I'm not sure about changing the template.
I know you're reluctant but I don't remembering seeing an explanation as to why you think the rebase template, which was designed (or more accurately evolved) for squashing fixups into a single target, is a good fit for a command that squashes fixups into multiple targets. As I've explained before my worry is that we end up with fragments of the commit message separated by a screen full of commented lines which makes it both hard to edit the message and difficult to get an overview of which commits are being squashed.
Thanks
Phillip
Quoted 10 lines · Junio C Hamano
* hn/branch-delete-merged (2026-07-25) 7 commits
- branch: add --dry-run for --delete-merged
- branch: add branch.<name>.deleteMerged opt-out
- branch: add --delete-merged <branch>
- branch: preparedelete_branchesfor a bulk caller
- branch: letdelete_branchesskip unmerged branches on bulk refusal
- branch: convertdelete_branches()to a flags argument
- branch: add --forked filter for --list mode
Quoted 7 lines
The 'git branch' command has been taught the '--delete-merged' option to remove local branches that are already merged into their tracked remote-tracking branches.
Will merge to 'next'?
cf. <[email protected]>
source: <[email protected]>
I've just left some comments on this. It is almost there, but the way it checks if pushing a branch updates its upstream looks dodgy to me. The behavior wrt branches that are merged but are upstreams of other branches has changed so that the entire hierarchy is now preseved. I preferred it when we only kept the branch that was the upstream of the unmerged branch and deleted everything underneath but I'm happy enough if others prefer this new behavior.
Thanks
Phillip
Quoted 19 lines · Phillip Wood
Quoted 10 lines · Junio C Hamano
* hn/branch-delete-merged (2026-07-25) 7 commits
- branch: add --dry-run for --delete-merged
- branch: add branch.<name>.deleteMerged opt-out
- branch: add --delete-merged <branch>
- branch: preparedelete_branchesfor a bulk caller
- branch: letdelete_branchesskip unmerged branches on bulk refusal
- branch: convertdelete_branches()to a flags argument
- branch: add --forked filter for --list modeQuoted 7 lines
The 'git branch' command has been taught the '--delete-merged' option to remove local branches that are already merged into their tracked remote-tracking branches.
Will merge to 'next'?
cf. <[email protected]>
source: <[email protected]>
Quoted 7 lines
I've just left some comments on this. It is almost there, but the way it checks if pushing a branch updates its upstream looks dodgy to me. The behavior wrt branches that are merged but are upstreams of other branches has changed so that the entire hierarchy is now preseved. I preferred it when we only kept the branch that was the upstream of the unmerged branch and deleted everything underneath but I'm happy enough if others prefer this new behavior.
I don't particularly favor the behavior in the latest round myself, but I doubt I am the primary target audience, so I'll let the list figure out how much we collectively care ;-).
Thanks.