at commit 3699d22b

1 Git v2.56 Release Notes
2 =======================
3
4 UI, Workflows & Features
5 ------------------------
6
7 * Advice shown by "git status" when the local branch is behind or has
8 diverged from its push branch has been updated to suggest "git pull
9 <remote> <branch>".
10
11 * The handling of promisor-remote protocol capability has been updated
12 to allow the other side to add to the list of promisor remotes via the
13 'promisor.acceptFromServerURL' configuration variable.
14
15 * The 'ort' merge backend has been hardened against corrupt trees by
16 ensuring it aborts under appropriate error conditions.
17
18 * The `fetch.followRemoteHEAD` configuration variable has been added to
19 provide a default for the per-remote `remote.<name>.followRemoteHEAD`
20 setting.
21
22 * "git log --follow" has been updated to better handle non-linear
23 history, in which the path being tracked gets renamed differently in
24 multiple history lines.
25
26 * The "git repo info" command has been taught new keys to output both
27 absolute and relative paths for "gitdir" and "commondir", supported by
28 a new path-formatting helper extracted from "git rev-parse".
29
30 * When 'git push origin/main' or 'git branch origin main' is run, the
31 command is now recognized as a potential typo, and advice has been
32 added to offer a typo fix.
33
34 * The 'git refs' toolbox has been extended with new 'create', 'delete',
35 'update', and 'rename' subcommands to create, delete, update, and
36 rename references, respectively.
37
38 * The experimental 'git history' command has been taught a new 'drop'
39 subcommand to remove a commit, with its descendants replayed onto its
40 parent.
41
42 * The alignment of commit object name abbreviations in 'git blame'
43 output has been optimized to reserve a column for marks (caret,
44 question mark, or asterisk) only when such marks are actually shown.
45
46 * Option parsing with 'git rev-parse --parseopt' and in most 'git'
47 subcommands has been updated to exit with 0 (instead of 129) when the
48 help option ('-h' or '--help') is requested directly by the user,
49 aligning with standard Unix convention.
50
51 * The '[includeIf "condition"]' conditional inclusion facility for
52 configuration files has been taught to use the location of the
53 worktree in its condition.
54
55 * The usage string and SYNOPSIS for 'git fast-export' have been
56 standardized to make them consistent with each other and with other
57 commands.
58
59 * 'git log --graph' has been modified to visually distinguish parentless
60 'root' commits (and commits that become roots due to history
61 simplification) by indenting them, preventing them from appearing
62 falsely related to unrelated commits rendered immediately above them.
63
64 * Userdiff patterns for Swift have been added, with support for
65 Swift-specific constructs such as attributes, modifiers, failable
66 initializers, and generics.
67
68 * Configuration file locking has been updated to retry for a short
69 period, avoiding failures when multiple processes attempt to update
70 the configuration simultaneously.
71
72 * The 'remote-object-info' command has been added to 'git cat-file
73 --batch-command', allowing clients to request object metadata
74 (currently size) from a remote server via protocol v2 without
75 downloading the entire object. Format placeholders are dynamically
76 filtered on the client based on server-advertised capabilities,
77 returning empty strings for inapplicable or unsupported fields.
78
79 * 'git branch -d' has been taught to report when a branch cannot be
80 deleted because it is being used in an active bisect run.
81
82 * 'git mv' has been updated to check for a missing destination
83 leading directory during the checking phase, allowing 'git mv -n'
84 to report the failure. The error message when the rename(2)
85 syscall fails has also been improved to name both the source and
86 the destination.
87
88 * 'git add' has been taught a new '--resolved' option to stage
89 conflict-resolved paths, while leaving unrelated local changes
90 unstaged. It scans the unmerged paths for leftover conflict
91 markers and aborts if any are found.
92
93 * The known limitations of the ref format migration in 'git refs' have
94 been moved to be displayed as a warning admonition directly under the
95 description of the 'migrate' subcommand, improving visibility. A
96 reference to 'git-maintenance' has also been corrected to use the
97 'linkgit' macro.
98
99 * The 'git bisect' command has been taught a
100 '--reset-when-found[=<where>]' option that tells the command to
101 automatically run 'git bisect reset' to jump back to the original
102 state or to the found culprit.
103
104 * The 'git branch' command has been taught the '--delete-merged' option
105 to remove local branches that are already merged into their tracked
106 remote-tracking branches.
107
108 * The 'remote-object-info' command for 'git cat-file --batch-command'
109 has been extended to support the '%(objecttype)' placeholder.
110
111 * The usage string of 'git fast-import' has been updated to use the
112 parse_options() API for displaying help, and its SYNOPSIS in the
113 documentation has been standardized to match.
114
115 * The error message given by 'git send-email' when a message file is
116 missing a 'Subject:' header has been clarified, and the error string
117 is now terminated with a newline so that Perl avoids appending its
118 internal source location data.
119
120 * The '--shallow-file' option of 'git' command requires a value, but the
121 code did not check the presence of a value and instead segfaulted
122 without one, which has been corrected.
123
124 * 'git repack' has been taught '--drop-filtered' to delete local
125 promisor blobs exceeding a limit (currently 'blob:limit=') in partial
126 clones, reclaiming space. Guards prevent running during other
127 operations or if referenced by the index.
128
129 * The documentation for 'git format-rev' has been updated to use the
130 [synopsis] block definition on code blocks to properly highlight
131 placeholders, and a quoting inconsistency in the running text has
132 been fixed.
133
134 * The DWIM logic in 'git worktree add' sometimes tried to infer a
135 remote-tracking branch when an explicit '-b' or '-B' option was
136 given to create a new branch, causing the explicit branch name to
137 be ignored, which has been corrected.
138
139 * The command line completion (in contrib/) has been taught to handle
140 the experimental 'git history' command.
141
142 * 'git checkout' and 'git worktree add' makes guesses based on a name
143 of a remote-tracking branch, but does not give an error when such a
144 remote-tracking branch cannot be uniquely identified, which has
145 been corrected.
146
147 * The 'git replay' command has been taught the '--linearize' option to
148 drop merge commits and linearize the replayed history, mimicking 'git
149 rebase --no-rebase-merges'.
150
151 * The documentation for 'git cherry-pick' has been updated to clarify
152 that the '--no-commit' option intentionally skips setting the
153 'CHERRY_PICK_HEAD' ref. A test has also been added to ensure this
154 behavior holds even when the operation stops for conflicts.
155
156
157 Performance, Internal Implementation, Development Support etc.
158 --------------------------------------------------------------
159
160 * The refactoring of 'setup.c' has been continued to drop remaining
161 global state (`git_work_tree_cfg`, `is_bare_repository_cfg`), updating
162 `is_bare_repository()` to no longer implicitly rely on
163 `the_repository`.
164
165 * Project-specific configuration for b4 has been introduced, and the
166 documentation has been updated to recommend using it as a
167 streamlined method for submitting patches.
168
169 * The default format path of git cat-file --batch has been optimized
170 to use strbuf_add_oid_hex() and strbuf_add_uint() instead of
171 strbuf_addf(), yielding a noticeable speedup.
172
173 * Commands that list branches and tags (like git branch and git tag)
174 have been optimized to pass the namespace prefix when initializing
175 their ref iterator, avoiding a loose-ref scaling regression in
176 repositories with many unrelated loose references.
177
178 * The packed object source has been refactored into a proper struct
179 odb_source.
180
181 * The global configuration variables protect_hfs and protect_ntfs have
182 been migrated into struct repo_config_values to tie them to
183 per-repository configuration state.
184
185 * The trailer sections in SubmittingPatches have been updated to
186 encourage use of standard trailers.
187
188 * The documentation in SubmittingPatches has been updated to clarify how
189 patch contributors should respond to design and viability critiques,
190 and how the resolution of such critiques should be recorded in the
191 final commit messages.
192
193 * The pack-objects command has been updated to support reachability
194 bitmaps and delta-islands concurrently with the `--path-walk` option,
195 allowing faster packaging by falling back to path-walk when bitmaps
196 cannot fully satisfy the request.
197
198 * Documentation on community contribution guidelines has been updated to
199 encourage replying to review comments before rerolling, and to advise
200 a default limit of at most one reroll per day to give reviewers across
201 different time zones enough time to participate.
202
203 * The lazy priority queue optimization pattern (deferring actual removal
204 in 'prio_queue_get()' to allow get+put fusion) has been folded
205 directly into 'prio_queue' itself, speeding up commit traversal
206 workflows and simplifying callers.
207
208 * The 'reprepare()' callback for object database sources has been
209 generalized into a 'prepare()' callback with an optional flush cache
210 flag, and a new 'odb_prepare()' wrapper has been introduced to allow
211 pre-opening object database sources.
212
213 * The 'whence' field in 'struct object_info' has been removed. The
214 backend-specific object information retrieval has been refactored into
215 an opt-in 'struct object_info_source' structure.
216
217 * A racy build failure under Meson has been corrected by ensuring that
218 the generated header file 'hook-list.h' is built before compiling
219 files in 'builtin_sources' that depend on it.
220
221 * The repository discovery and repository configuration phases, which
222 were previously intertwined in 'setup.c', have been split. Repository
223 discovery has been updated to populate a 'struct repo_discovery'
224 without modifying the repository state, which is then taken by
225 repository configuration to initialize the repository, paving the way
226 for clean unification of repository configuration.
227
228 * The 'SubmittingPatches' document has been updated to explicitly
229 describe the expectation for contributors to retract or abandon their
230 patch series when they are no longer pursuing it.
231
232 * The contributor guide has been updated to advise new contributors to
233 trim irrelevant quoted text when replying to review comments, matching
234 the existing advice given to reviewers.
235
236 * The build system has been updated to support building universal macOS
237 binaries when 'Rust' is enabled, by compiling separate static archives
238 for each target triple listed in 'RUST_TARGETS' and combining them
239 using the macOS 'lipo' tool. The 'git-credential-osxkeychain' helper
240 has been updated to link against '$(RUST_LIB)' when 'Rust' is enabled.
241
242 * The test suite has been updated to use the 'test_grep' helper instead
243 of bare 'grep' for test assertions, allowing file contents to be
244 printed on failure for easier debugging. A new 'greplint' linter has
245 been introduced to detect and prevent new bare 'grep' assertions from
246 being added to the test suite.
247
248 * The pipelines in 't1410-reflog.sh' have been replaced with the
249 'test_stdout_line_count' helper to avoid suppressing the exit code of
250 'git' commands, ensuring failures are not hidden from the test suite.
251
252 * The cache-scanning loop in 'next_cache_entry()' has been optimized
253 to avoid rescanning already-unpacked index entries, preventing a
254 quadratic performance slow-down when diffing the working tree
255 against a commit with a pathspec matching early index entries.
256
257 * The global configuration variable 'ignore_case' (representing the
258 'core.ignorecase' configuration) has been migrated into 'struct
259 repo_config_values' to tie it to a specific repository instance.
260
261 * The performance of ref updates and reads using the 'reftable' backend
262 in the presence of many deletion tombstone records has been optimized
263 by removing the tombstone suppression flag from the merged iterator
264 and instead skipping tombstones at higher-level call sites where
265 iteration bounds are known.
266
267 * Various code paths have been hardened against potential NULL-pointer
268 dereferences and invalid file descriptor accesses flagged by
269 Coverity.
270
271 * The in-tree 'b4' cover letter template has been updated to include the
272 'change-id' trailer, ensuring that sent tags generated by 'b4' contain
273 the required tracking information for subsequent runs.
274
275 * 'git receive-pack' has been refactored to use ODB transaction
276 interfaces instead of directly managing 'tmp_objdir' for staging
277 incoming objects, bringing it closer to being ODB backend agnostic.
278
279 * The test script 't/t9811-git-p4-label-import.sh' has been
280 modernized to use 'test_path_is_file' and 'test_path_is_missing'
281 instead of raw 'test -f' and '! test -f' calls.
282
283 * A redundant strbuf_reset() call in the 'HAVE_GETDELIM' path of
284 strbuf_getwholeline() has been removed, as getdelim() overwrites the
285 buffer and the length is updated afterward.
286
287 * The object database enumeration interface odb_for_each_object() has
288 been taught to accept object filters, allowing the underlying backends
289 to optimize the traversal by using reachability bitmaps when
290 available. 'git cat-file --batch-all-objects' has been updated to use
291 this generic interface, simplifying its code and avoiding direct
292 access to ODB backend internals.
293
294 * The test script 't/t1100-commit-tree-options.sh' has been modernized
295 by converting test cases to the modern style (using single quotes and
296 tab indentation) and moving the creation of the expected file inside
297 the setup test so it runs under the protection of the test harness.
298
299 * The test script 't/t7614-merge-signoff.sh' has been updated to avoid
300 suppressing the exit code of 'git' commands in a pipe.
301
302 * The 'git rev-list --no-walk' command has been corrected to restore
303 pathspec filtering, which was lost when the streaming walk was
304 refactored.
305
306 * The ref subsystem and the worktree API have been refactored to pass a
307 repository pointer down the call chain, allowing them to drop
308 references to the global 'the_repository' variable. As part of this,
309 the handling of the 'core.packedRefsTimeout' configuration has been
310 moved into the per-repository ref store structure.
311
312 * 'git branch --contains' and 'git for-each-ref --contains' have been
313 optimized to use the memoized commit traversal previously used only by
314 'git tag --contains', significantly speeding up connectivity checks
315 across many candidate refs with shared history.
316
317 * The passing of push destination specifications in the 'remote-curl'
318 helper has been simplified by removing the explicit 'count' parameter
319 and relying on the NULL-termination of the array.
320
321 * The dependency on the global 'the_repository' variable in the
322 'refspec.c' API has been removed by passing the hash algorithm
323 explicitly to refspec-parsing functions and storing it in 'struct
324 refspec'.
325
326 * The enumeration of untracked and ignored files in 'git status' has
327 been optimized by avoiding quadratic complexity when inserting into
328 string lists, reducing the construction cost from O(n^2) to O(n log
329 n).
330
331 * The copy_file() and copy_file_with_time() functions have been
332 refactored to take a repository parameter, allowing the removal of the
333 implicit dependency on the global 'the_repository' variable in
334 'copy.c'.
335
336 * The tempfile and lockfile APIs have been refactored to stop depending
337 on the 'the_repository' global variable, and their callers have been
338 updated to use the repository-aware variants.
339
340 * The 'trust_executable_bit' (coming from the 'core.filemode'
341 configuration) has been migrated into 'struct repo_config_values' to
342 tie it to a specific repository instance.
343
344 * The 'excludes_file' and various other global configuration variables
345 (including 'editor_program', 'pager_program', 'askpass_program', and
346 'push_default') have been migrated into the per-repository structure.
347
348 * The 'git stash push' command has been optimized to avoid unnecessary
349 sparse index expansion when pathspecs are wholly inside the
350 sparse-checkout cone. Also, a potential out-of-bounds read in the
351 sparse-index expansion check helper pathspec_needs_expanded_index()
352 has been fixed by consistently using the parsed, prefixed path.
353
354 * The logic to write loose objects has been refactored and moved from
355 'object-file.c' to the loose backend source file 'odb/source-loose.c',
356 making the loose backend more self-contained. This is achieved by
357 first refactoring force_object_loose() to use generic ODB write
358 interfaces instead of loose-backend internals.
359
360 * Object database housekeeping in 'git gc' and 'git maintenance' has
361 been refactored to be pluggable. The files-backend-specific logic,
362 including incremental and geometric repacking as well as object
363 pruning, has been moved out of the command implementation and into the
364 files object database source, enabling future alternative object
365 database backends to implement their own housekeeping services.
366
367 * The image version used by the static-analysis CI job has been bumped
368 to ubuntu-latest (Ubuntu 24.04), which brings in a newer Coccinelle
369 version that resolves a severe performance regression. A false
370 positive warning from the 'CHECK_ASSERTION_SIDE_EFFECTS' build with
371 GCC 15 in the Bloom filter code has also been silenced to facilitate
372 the image upgrade.
373
374 * The alias tests in 't/t0014-alias.sh' have been updated to dynamically
375 query the list of deprecated commands using 'git
376 --list-cmds=deprecated' to avoid test failures when running with
377 'WITH_BREAKING_CHANGES' in a build directory that contains stale
378 executables of formerly deprecated commands.
379
380 * The code path that deals with relative paths in the diff-lib has
381 been cleaned up.
382
383 * The get_commit_action() function has been refactored to be a pure
384 predicate by moving the side-effecting line-level log range folding to
385 simplify_commit(). This ensures that evaluating a commit's action
386 before the walk reaches it does not prematurely mutate its tracked
387 line ranges, making it safer for potential lookahead evaluations.
388
389 * Synopsis and options in the documentation for 'git format-patch',
390 'git imap-send', 'git send-email', and 'git request-pull' have been
391 updated to the modern style.
392
393 * A new test helper commit_body() has been introduced to print the
394 message body of a commit, and various tests have been updated to use
395 it instead of spelling out the command pipeline manually and losing
396 the exit status of the 'git cat-file' command on the upstream of the
397 pipe.
398
399 * Tests for 'git merge-base --is-ancestor' have been added to cover
400 exit codes (0 for success, 1 for non-ancestor, 128 for errors) and
401 to ensure it cannot be combined with '--all'.
402
403 * The 'TRACE2_ANCESTRY' prerequisite in the 't0213' test script has been
404 refined to avoid failures under user-mode emulation by verifying that
405 the ancestry collector reports the expected process names rather than
406 the emulator binary name.
407
408 * Concurrent downloads of packfiles via packfile URIs and dumb HTTP are
409 safer by avoiding concurrent appends to the staging file. Opening in
410 read-write mode with separate file offsets prevents corruption and
411 preserves resumability. 'fetch-pack' now tolerates pre-existing
412 '.keep' files.
413
414 * The 'ssh-agent' tests in 't7528' have been fixed to work when the
415 user's login shell is csh-like, by explicitly passing '-s' to
416 'ssh-agent' to force Bourne shell syntax.
417
418 * A compatibility wrapper for writev(3p) has been reintroduced,
419 including fixes for CMake build and 'MAX_IO_SIZE' limits on NonStop.
420 Calls to write(3p) in send_sideband() and cat_blob() have been
421 refactored to use writev(3p) wrappers to reduce syscall overhead.
422
423 * The creation of the on-disk data structures for the object database
424 has been made pluggable, allowing future backends to customize their
425 setup. As part of this, the initialization of the object database
426 has been deferred, and the loading of the loose-object map has been
427 detangled from repository initialization.
428
429 * The 'struct odb_read_stream' and 'struct odb_write_stream'
430 structures have been consolidated into a single unified 'struct
431 odb_stream' structure, simplifying object database streaming APIs
432 and enabling streaming of arbitrary object types.
433
434 * The sequencer has been updated to release the object database before
435 spawning 'git commit'. This prevents open file handles from
436 blocking auto-maintenance tasks, such as repacking, on systems like
437 Windows where open files cannot be easily unlinked.
438
439 * The merge-base computation has been optimized by stopping the walk
440 early when one side's exclusive commits in the queue are exhausted,
441 yielding significant speedups for queries with one-sided histories.
442
443 * A handful of code paths have been corrected to check return values
444 from functions like curl_easy_duphandle(), deflateInit(), lseek(),
445 dup(), and strbuf_getline_lf(), resolving several Coverity warnings
446 about unchecked returns.
447
448 * The setting of a now-unused member '.pretty_given' in the sequencer
449 machinery has been removed.
450
451 * The performance of adding numerous new packfiles has been improved
452 by introducing a fast path for known-new packfiles to skip an
453 unnecessary traversal in packfile_list_append(), avoiding a
454 quadratic complexity regression on load.
455
456 * The unused name parameter in 'struct chdir_notify_entry' has been
457 removed from chdir_notify_register(), chdir_notify_unregister(), and
458 related callback signatures across several subsystems, simplifying the
459 API now that trace output no longer uses it.
460
461 * A heap-use-after-free bug in the object name parsing code when
462 reporting failures with a relative path to a sparse directory has
463 been corrected.
464
465 * The object database (odb) API has been refactored to distinguish
466 between missing objects and corrupt ones by returning more
467 descriptive error statuses. Both the packed and loose backends now
468 faithfully propagate error details using a generic strbuf error
469 mechanism, removing backend-specific leakage from central lookup
470 paths.
471
472 * The object database layer has been simplified by eagerly loading
473 alternate object directories upon initialization, instead of
474 deferring it to the first object lookup. This eliminates the need
475 for scattered lazy-loading calls throughout the codebase and paves
476 the way for integrating alternates with the pluggable backends.
477
478 * The threshold for geometric repacking to trigger based on loose
479 object count has been adjusted to match that of 'git gc --auto',
480 preventing over-aggressive repacking during concurrent writes.
481
482 * The 'git receive-pack' command has been updated to use a new ODB
483 transaction interface for writing incoming packfiles, making it more
484 backend-agnostic.
485
486 * The mechanism to generate a packfile corresponding to the result of
487 a fetch/push has been made pluggable through a set of object
488 database callback functions, removing hardcoded references to
489 'pack-objects' and enabling alternative ODBs to serve packfiles
490 themselves.
491
492 * The pack-objects command has been updated to record the total bytes
493 written to pack files in trace2 output, allowing performance
494 analysis of different compression settings by comparing the
495 resulting pack sizes.
496
497 * The global variable 'fetch_if_missing' has been moved to a member in
498 'struct repository', continuing the libification process and
499 allowing per-repository control (such as for submodules).
500
501 * The reftable code has been optimized to avoid an unnecessary
502 stat/reload of the stack when an addition already holds the
503 list_file lock, reducing the number of newfstatat syscalls from
504 linear to constant when writing refs.
505
506 * The application of the edited patch in 'git add -e' has been
507 refactored to use the internal apply API directly, avoiding the need
508 to spawn a 'git apply' subprocess.
509
510 * The memory ownership of argv elements passed to the revision
511 machinery has been made more robust by keeping logically "freed"
512 elements alive until the rev_info struct is released, preventing
513 use-after-free bugs when options store references to them.
514
515 * The object lookup machinery has been taught to gracefully recover
516 when a multi-pack-index points to an owning pack that was removed
517 during a concurrent geometric repack, and 'git replay' has been
518 fixed to not segfault when reading such missing objects.
519
520 * A collection of patches from Git for Windows has been upstreamed,
521 mostly focusing on simplifying and robustifying build configurations
522 for MinGW/MSYS2, dropping obsolete compatibility options, and allowing
523 the main 'git.exe' to be used directly without the extra wrapper
524 process on Windows.
525
526 * The process of downloading packfile URIs in protocol v2 has been
527 instrumented with a Trace2 region. This visibility allows tracking
528 the cumulative time spent downloading external packs and the number
529 of advertised URIs without emitting a separate event per pack.
530
531
532 Fixes since v2.55
533 -----------------
534
535 * A regression in the error diagnosis code for invalid .git files has
536 been fixed, avoiding a potential NULL-pointer crash when reporting
537 that a .git file does not point to a valid repository.
538 (merge 54a441bcea jk/setup-gitfile-diag-fix later to maint).
539
540 * Support for hashing loose or packed objects larger than 4GB on Windows
541 and other LLP64 platforms has been improved by converting object header
542 buffers and data-handling functions from 'unsigned long' to 'size_t'.
543 (merge d99e13d0be po/hash-object-size-t later to maint).
544
545 * The display of the rebase todo list in "git status" has been
546 improved to correctly abbreviate object IDs for more commands and
547 avoid misinterpreting refs as object IDs.
548 (merge 6f34e5f9e3 pw/status-rebase-todo later to maint).
549
550 * Reference backend configuration has been updated to load lazily to
551 avoid recursive calls during repository initialization when 'onbranch'
552 configuration conditions are evaluated. This has also fixed a memory
553 leak and allowed the unused `chdir_notify_reparent()` machinery to be
554 dropped.
555 (merge d6522d01df ps/refs-onbranch-fixes later to maint).
556
557 * The connectivity check has been refactored to search for promisor
558 objects in a generic way using the object database interface,
559 rather than iterating packfiles directly. This allows connectivity
560 checks to work properly in repositories that do not use packfiles.
561 (merge 66ee9cb930 ps/connected-generic-promisor-checks later to maint).
562
563 * A test checking interactions between git rebase --quit and
564 autostash in t3420-rebase-autostash.sh has been corrected to use
565 test_path_is_missing instead of ! grep on a file that shouldn't
566 exist in the conflicted state.
567 (merge eaad121fef sg/t3420-do-not-grep-in-missing-file later to maint).
568
569 * The GPG and SSH signature parsing code has been corrected to strip
570 carriage return characters only when they immediately precede line
571 feeds, instead of unconditionally stripping all carriage returns.
572 (merge 5dea8b690b ad/gpg-strip-cr-before-lf later to maint).
573
574 * A memory leak in the 'reftable_writer_new()' initialization function
575 has been fixed by delaying the allocation of 'struct reftable_writer'
576 until after input options are validated.
577 (merge c6fb3b9c3e jk/reftable-leakfix later to maint).
578
579 * A memory leak in the '--base' handling of 'git format-patch' has been
580 plugged, and the leak reporting of the test suite when running under a
581 TAP harness has been improved.
582 (merge 973a0373ff jk/format-patch-leakfix later to maint).
583
584 * A write file stream resource leak has been fixed as part of a code
585 cleanup.
586 (merge ebb4d2ffa3 jc/history-message-prep-fix later to maint).
587
588 * Various memory leaks in the Bloom-filter code paths that are exposed
589 when running tests with the 'GIT_TEST_COMMIT_GRAPH_CHANGED_PATHS=1'
590 environment variable have been plugged.
591 (merge 459088ec2e jk/bloom-leak-fixes later to maint).
592
593 * The wincred credential helper has been updated to avoid memory
594 corruption when erasing credentials and to prevent silent
595 credential loss when storing OAuth tokens, by correcting buffer
596 allocations and arguments passed to safe-CRT APIs.
597 (merge f635ab9ab4 js/wincred-fixes later to maint).
598
599 * Various code paths that initialize a cryptographic hash context but
600 bail out or finish without calling 'git_hash_final()' have been taught
601 to call 'git_hash_discard()' to release allocated resources, fixing
602 memory leaks when Git is built with non-default backends like
603 'OpenSSL' or 'libgcrypt'.
604 (merge 600588d2aa jk/hash-algo-leak-fixes later to maint).
605
606 * Various resource leaks, invalid file descriptor closures, and process
607 handle ownership issues flagged by Coverity have been fixed.
608 (merge 9184231173 js/coverity-fixes later to maint).
609
610 * Dockerized CI jobs running in private GitHub repositories have been
611 adjusted to use explicit process and file limits, preventing resource
612 exhaustion errors on private runners.
613 (merge bad766fbac js/ci-dockerized-pid-limit later to maint).
614
615 * Various test scripts have been updated to clean up large temporary
616 files and repositories, reducing peak disk usage during testing.
617 Also, expensive tests have been disabled on platforms that lack
618 sufficient resources (like 32-bit platforms and Windows CI runners),
619 and the long test suite has been enabled in GitLab CI.
620 (merge 84248444ad ps/t-fixes-for-git-test-long later to maint).
621
622 * The UTF-8 precomposition wrapper on macOS has been updated to use a
623 flexible array member to represent the name of a directory entry,
624 preventing fortified libc checks from failing when the name is
625 reallocated to be larger than 'NAME_MAX' bytes.
626 (merge 1eb281159f ih/precompose-flex-array later to maint).
627
628 * The 'git_hash_*()' wrappers have been updated to be used consistently
629 across the codebase instead of direct calls to members of 'struct
630 git_hash_algo', and 'git_hash_discard()' has been made idempotent to
631 simplify cleanups.
632 (merge 9e396aa553 jk/git-hash-cleanups later to maint).
633
634 * The sideband demultiplexer has been updated to recognize ANSI SGR
635 escape sequences that use colon-separated subfields (e.g., for
636 256-color or true-color codes).
637 (merge 3792b2aea4 mm/sideband-ansi-sgr-colon-fix later to maint).
638
639 * The 'reftable' code has been hardened against corrupted tables by
640 fixing out-of-bounds writes, out-of-bounds reads, and abort calls
641 during parsing.
642 (merge ca93c27328 ps/reftable-hardening later to maint).
643
644 * A description in the release notes for Git 2.55.0 has been
645 retroactively updated to clarify that Rust support is enabled by
646 default, but still optional, and will become mandatory in Git 3.0.
647 (merge 18b2009d14 jc/relnotes-2.55-rust-fix later to maint).
648
649 * The early-exit optimization in 'paint_down_to_common()' has been
650 gated on the queue being generation-ordered, fixing a bug where
651 'git merge-base' (without '--all') could return incorrect results
652 on repositories with v1 commit graphs and clock skew.
653 (merge ae68032a8d kk/commit-reach-find-all-fix later to maint).
654
655 * The client-side parser of the server-advertised bundle-URI list has
656 been updated to drain the remaining response in order to avoid
657 protocol desynchronization when the server sends a misconfigured list.
658 Also, the server-side has been taught to omit empty configuration
659 values instead of sending invalid key-value lines.
660 (merge 50de1169e4 tc/bundle-uri-empty-fix later to maint).
661
662 * The 'topo_levels' slab was propagated only to the topmost layer of a
663 split commit-graph chain, causing topological levels for commits in
664 base layers to be recomputed during incremental writes. This has been
665 corrected.
666
667 * The stream-based object signature verification path has been
668 corrected to avoid double-closing the stream on read errors.
669 (merge cfd52a74a0 ps/odb-stream-double-close-fix later to maint).
670
671 * The '-i' shorthand for the '--init' option, which was accepted by the
672 'git submodule update' command until it was broken in a modernization
673 of the option-parsing code, has been restored.
674 (merge ff1da37f58 dm/submodule-update-i-shorthand later to maint).
675
676 * An accidental use of the '%zu' format specifier in 'git
677 submodule--helper' has been corrected to use 'PRIuMAX' and cast the
678 value to 'uintmax_t' to avoid portability issues.
679 (merge 3279c13c00 jc/submodule-helper-avoid-zu later to maint).
680
681 * The rebase post-rewrite notes-copying logic has been corrected. When
682 a commit is dropped during rebase (e.g., because its changes are
683 already upstream), it is no longer recorded as rewritten, preventing
684 its notes from being copied to an unrelated commit.
685 (merge 42554b78fd pw/rebase-drop-notes-with-commit later to maint).
686
687 * A few memory problems in the Rust interface to C hash functions have
688 been corrected. The 'Clone' implementation of 'CryptoHasher' now
689 properly initializes the context before cloning, and its 'Drop'
690 implementation now discards the context to prevent leaks.
691
692 * The object ID shortening and linking in the 'commitdiff' view of
693 'gitweb' has been corrected to work even when the index line carries
694 a trailing file mode.
695 (merge fda513d6fe tl/gitweb-shorten-hashes-with-modes later to maint).
696
697 * When the push remote is specified as a URL, the fetch refspec of a
698 uniquely matching configured remote is now used to find and update
699 the remote-tracking branch (e.g., '@{push}').
700
701 * Traversals with '--exclude-first-parent-only' have been corrected
702 to properly stop after the first parent even when it has already
703 been marked as 'SEEN'.
704 (merge 47382f7398 jc/exclude-first-parent-seen later to maint).
705
706 * A segfault when 'git clone --revision' talks to a server that does not
707 support protocol v2 (falling back to protocol v0) has been corrected.
708 (merge 1034ad383f af/clone-revision-v0-segfault-fix later to maint).
709
710 * rewrites_release() in 'remote.c' has been updated to free 'struct
711 rewrite' instances, their '.instead_of' arrays, and their contents.
712 (merge dcef3bf041 jc/remote-insteadof-leakfix later to maint).
713
714 * The remote-matching logic for submodules has been corrected to resolve
715 'url.*.insteadOf' aliases before comparing the inventoried URL from
716 '.gitmodules' with the URLs of configured remotes.
717
718 * 'git diff --relative' running with '--cached' has been corrected to
719 avoid a segfault when encountering unmerged paths outside the
720 prefix.
721 (merge 447126ed7d jk/diff-relative-cached-unmerged later to maint).
722
723 * Two bugs in how 'git rebase' handles skipped 'fixup' and 'squash'
724 commands have been fixed. One bug caused an incorrect commit count to
725 be shown in the template message when multiple commands were skipped,
726 and another prevented the editor from opening when the final command
727 in a chain containing 'fixup -c' was skipped.
728
729 * Git for Windows has been updated to avoid auto-detecting the symlink
730 type if the target path starts with a slash, preventing NTLM
731 credential leaks when checking out repositories with crafted
732 symbolic links pointing to network shares.
733
734 * 'git cat-file --batch-command' that asked for 'contents' without
735 'type' segfaults, which has been corrected.
736 (merge 2abc7f0304 jk/cat-file-batch-wo-type-fix later to maint).
737
738 * A memory leak in 'git merge' when run without arguments (which
739 triggers the default-to-upstream path) has been fixed. A test has
740 been added to cover this case.
741 (merge 68cce04a02 tc/merge-default-to-upstream-leakfix later to maint).
742
743 * A boundary case check in reachability bitmap traversal has been
744 corrected to properly handle the object at position zero, which was
745 previously skipped, leading to redundant bitmap loading.
746 (merge b56b48301e dl/pack-bitmap-position-zero later to maint).
747
748 * A crash in the 'sparse-index' collapse code when encountering an
749 invalidated cache-tree node (due to an intent-to-add path) has been
750 fixed by avoiding collapsing such subtrees.
751 (merge eede1e69fe ds/sparse-index-ita-crash later to maint).
752
753 * Documentation for 'git replay' has been updated to refer to its
754 configuration variables.
755 (merge 48c0549f5c kh/doc-replay-config later to maint).
756
757 * Documentation for 'git interpret-trailers' has been updated to explain
758 the format of trailer keys (alphanumeric characters and hyphens),
759 replace outdated terminology, define key terms upfront, and document
760 how comment lines in the input are treated.
761 (merge 4515c86fd9 kh/doc-trailers later to maint).
762
763 * The 'pack-objects' and delta-encoding code paths have been updated to
764 use 'size_t' instead of 'unsigned long' for object sizes and offset
765 limits, avoiding potential truncation issues on 64-bit Windows.
766 (merge d50ac11724 js/pack-objects-delta-size-t later to maint).
767
768 * A client requesting the promisor-remote capability without a value
769 caused a null pointer dereference, which has been corrected by
770 rejecting a request without an argument.
771 (merge dd6b35ff71 en/serve-promisor-remote-fix later to maint).
772
773 * Various tests in 't7900-maintenance.sh' have been updated to use a
774 throwaway repository, and auto-detaching of maintenance tasks is now
775 disabled for these tests to fix flaky races with concurrent background
776 maintenance jobs.
777 (merge 2775d8bcd1 ps/t7900-deflake-maintenance later to maint).
778
779 * The help text for the '-l' option of 'git diff' has been updated.
780 (merge 764243bdf4 en/diff-l-opt-help later to maint).
781
782 * 'git -C <dir> diff fi<TAB>' did not complete 'file', which has
783 been corrected.
784 (merge 354d1bf3a0 jc/complete-diff-tracked-paths later to maint).
785
786 * 'git -C <dir> checkout fi<TAB>' did not complete 'file', which has
787 been corrected.
788 (merge 05e2ab1f31 jc/complete-checkout later to maint).
789
790 * The trailer parsing machinery has been updated to avoid mistaking
791 lines that begin with a URL (e.g., 'https://...') as trailer lines.
792 This prevents intended textual URLs from being mangled or mistakenly
793 treated as metadata keys.
794
795 * The instructions for deprecated commands emitted by
796 you_still_use_that() have been reworded to clarify that the removal
797 decision is final and to provide more assertive guidance on finding
798 a replacement.
799 (merge 8ace32221c jc/you-still-use-that later to maint).
800
801 * The zsh completion script (in 'contrib/') has been updated to
802 correctly locate the Git command after global options like '-C' by
803 properly skipping them, similar to how the bash completion does.
804
805 * The git worktree repair command failed to rewrite the .git file of
806 a working tree from a relative path to an absolute path when the
807 command was run in the working tree itself. The
808 read_gitfile_gently() function was modified to also return whether
809 the path originally recorded in the file was absolute, and this new
810 capability is used to correctly detect such mismatches.
811
812 * GitHub Actions CI workflow runs triggered by pull requests have
813 been configured to cancel older runs when a new push is made to the
814 same pull request.
815 (merge a251b1bd21 hn/ci-cancel-stale-pr-runs later to maint).
816
817 * The string extraction logic for the branch name and worktree name
818 from the given path in 'git worktree add' has been corrected and
819 simplified to avoid out-of-bounds reads and improper handling of
820 trailing slashes.
821 (merge 2e8a9d94b0 rs/worktree-add-basename-fixes later to maint).
822
823 * The CI job for Debian 11 has been updated to use Debian 12, as the
824 former is now out of the LTS period.
825 (merge 00fa850235 jk/ci-bump-debian-to-12 later to maint).
826
827 * The CI script to install dependencies for the documentation build
828 has been updated to install asciidoctor directly via the system
829 package manager instead of pinning to an older version via gem.
830 Additionally, an obsolete variable used for retired Azure Pipelines
831 environments has been removed.
832
833 * Teach 'am', 'revert', and 'rebase' that running 'commit --amend' or a
834 partial 'commit <paths>' makes no sense during operations that stop
835 and return control to the user to resolve conflicts left in the
836 working tree, just like 'cherry-pick' and 'merge' do.
837 (merge cc499d40e5 en/no-amend-during-conflicts later to maint).
838
839 * The error path in 'git submodule--helper' has been updated to plug a
840 memory leak when a repository handle could not be obtained,
841 leveraging an updated idempotent repo_clear().
842 (merge 2c03739705 jk/submodule-error-leak later to maint).
843
844 * Two members in "struct pathspec_item" were of type "char *", but
845 nobody updated the string through these pointers. They have been
846 made "const char *" instead.
847 (merge 88d06b1c91 jc/pathspec-match-const later to maint).
848
849 * The gitdatamodel documentation page has been linked from a handful
850 of key documentaiton pages.
851 (merge ec602484bd kh/doc-datamodel later to maint).
852
853 * Running "git history" in a corrupt repository can (unsurprisingly)
854 segfault when a necessary tree object is not found.
855 (merge 76621488e8 jc/history-missing-tree-errorfix later to maint).
856
857 * The development helper script to lint gitlink references in the
858 documentation has been updated to avoid a newer Perl regular
859 expression syntax that breaks on older Perl versions.
860 (merge 8a631963a9 ta/lint-gitlink-older-perl-fix later to maint).
861
862 * Other code cleanup, docfix, build fix, etc.
863 (merge 026636128f ss/submittingpatches-typofix later to maint).
864 (merge d2af22cc21 jc/rerere-doc-typofix later to maint).
865 (merge c486c1df72 hk/typofix later to maint).