at commit b8242b09

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
148 Performance, Internal Implementation, Development Support etc.
149 --------------------------------------------------------------
150
151 * The refactoring of 'setup.c' has been continued to drop remaining
152 global state (`git_work_tree_cfg`, `is_bare_repository_cfg`), updating
153 `is_bare_repository()` to no longer implicitly rely on
154 `the_repository`.
155
156 * Project-specific configuration for b4 has been introduced, and the
157 documentation has been updated to recommend using it as a
158 streamlined method for submitting patches.
159
160 * The default format path of git cat-file --batch has been optimized
161 to use strbuf_add_oid_hex() and strbuf_add_uint() instead of
162 strbuf_addf(), yielding a noticeable speedup.
163
164 * Commands that list branches and tags (like git branch and git tag)
165 have been optimized to pass the namespace prefix when initializing
166 their ref iterator, avoiding a loose-ref scaling regression in
167 repositories with many unrelated loose references.
168
169 * The packed object source has been refactored into a proper struct
170 odb_source.
171
172 * The global configuration variables protect_hfs and protect_ntfs have
173 been migrated into struct repo_config_values to tie them to
174 per-repository configuration state.
175
176 * The trailer sections in SubmittingPatches have been updated to
177 encourage use of standard trailers.
178
179 * The documentation in SubmittingPatches has been updated to clarify how
180 patch contributors should respond to design and viability critiques,
181 and how the resolution of such critiques should be recorded in the
182 final commit messages.
183
184 * The pack-objects command has been updated to support reachability
185 bitmaps and delta-islands concurrently with the `--path-walk` option,
186 allowing faster packaging by falling back to path-walk when bitmaps
187 cannot fully satisfy the request.
188
189 * Documentation on community contribution guidelines has been updated to
190 encourage replying to review comments before rerolling, and to advise
191 a default limit of at most one reroll per day to give reviewers across
192 different time zones enough time to participate.
193
194 * The lazy priority queue optimization pattern (deferring actual removal
195 in 'prio_queue_get()' to allow get+put fusion) has been folded
196 directly into 'prio_queue' itself, speeding up commit traversal
197 workflows and simplifying callers.
198
199 * The 'reprepare()' callback for object database sources has been
200 generalized into a 'prepare()' callback with an optional flush cache
201 flag, and a new 'odb_prepare()' wrapper has been introduced to allow
202 pre-opening object database sources.
203
204 * The 'whence' field in 'struct object_info' has been removed. The
205 backend-specific object information retrieval has been refactored into
206 an opt-in 'struct object_info_source' structure.
207
208 * A racy build failure under Meson has been corrected by ensuring that
209 the generated header file 'hook-list.h' is built before compiling
210 files in 'builtin_sources' that depend on it.
211
212 * The repository discovery and repository configuration phases, which
213 were previously intertwined in 'setup.c', have been split. Repository
214 discovery has been updated to populate a 'struct repo_discovery'
215 without modifying the repository state, which is then taken by
216 repository configuration to initialize the repository, paving the way
217 for clean unification of repository configuration.
218
219 * The 'SubmittingPatches' document has been updated to explicitly
220 describe the expectation for contributors to retract or abandon their
221 patch series when they are no longer pursuing it.
222
223 * The contributor guide has been updated to advise new contributors to
224 trim irrelevant quoted text when replying to review comments, matching
225 the existing advice given to reviewers.
226
227 * The build system has been updated to support building universal macOS
228 binaries when 'Rust' is enabled, by compiling separate static archives
229 for each target triple listed in 'RUST_TARGETS' and combining them
230 using the macOS 'lipo' tool. The 'git-credential-osxkeychain' helper
231 has been updated to link against '$(RUST_LIB)' when 'Rust' is enabled.
232
233 * The test suite has been updated to use the 'test_grep' helper instead
234 of bare 'grep' for test assertions, allowing file contents to be
235 printed on failure for easier debugging. A new 'greplint' linter has
236 been introduced to detect and prevent new bare 'grep' assertions from
237 being added to the test suite.
238
239 * The pipelines in 't1410-reflog.sh' have been replaced with the
240 'test_stdout_line_count' helper to avoid suppressing the exit code of
241 'git' commands, ensuring failures are not hidden from the test suite.
242
243 * The cache-scanning loop in 'next_cache_entry()' has been optimized
244 to avoid rescanning already-unpacked index entries, preventing a
245 quadratic performance slow-down when diffing the working tree
246 against a commit with a pathspec matching early index entries.
247
248 * The global configuration variable 'ignore_case' (representing the
249 'core.ignorecase' configuration) has been migrated into 'struct
250 repo_config_values' to tie it to a specific repository instance.
251
252 * The performance of ref updates and reads using the 'reftable' backend
253 in the presence of many deletion tombstone records has been optimized
254 by removing the tombstone suppression flag from the merged iterator
255 and instead skipping tombstones at higher-level call sites where
256 iteration bounds are known.
257
258 * Various code paths have been hardened against potential NULL-pointer
259 dereferences and invalid file descriptor accesses flagged by
260 Coverity.
261
262 * The in-tree 'b4' cover letter template has been updated to include the
263 'change-id' trailer, ensuring that sent tags generated by 'b4' contain
264 the required tracking information for subsequent runs.
265
266 * 'git receive-pack' has been refactored to use ODB transaction
267 interfaces instead of directly managing 'tmp_objdir' for staging
268 incoming objects, bringing it closer to being ODB backend agnostic.
269
270 * The test script 't/t9811-git-p4-label-import.sh' has been
271 modernized to use 'test_path_is_file' and 'test_path_is_missing'
272 instead of raw 'test -f' and '! test -f' calls.
273
274 * A redundant strbuf_reset() call in the 'HAVE_GETDELIM' path of
275 strbuf_getwholeline() has been removed, as getdelim() overwrites the
276 buffer and the length is updated afterward.
277
278 * The object database enumeration interface odb_for_each_object() has
279 been taught to accept object filters, allowing the underlying backends
280 to optimize the traversal by using reachability bitmaps when
281 available. 'git cat-file --batch-all-objects' has been updated to use
282 this generic interface, simplifying its code and avoiding direct
283 access to ODB backend internals.
284
285 * The test script 't/t1100-commit-tree-options.sh' has been modernized
286 by converting test cases to the modern style (using single quotes and
287 tab indentation) and moving the creation of the expected file inside
288 the setup test so it runs under the protection of the test harness.
289
290 * The test script 't/t7614-merge-signoff.sh' has been updated to avoid
291 suppressing the exit code of 'git' commands in a pipe.
292
293 * The 'git rev-list --no-walk' command has been corrected to restore
294 pathspec filtering, which was lost when the streaming walk was
295 refactored.
296
297 * The ref subsystem and the worktree API have been refactored to pass a
298 repository pointer down the call chain, allowing them to drop
299 references to the global 'the_repository' variable. As part of this,
300 the handling of the 'core.packedRefsTimeout' configuration has been
301 moved into the per-repository ref store structure.
302
303 * 'git branch --contains' and 'git for-each-ref --contains' have been
304 optimized to use the memoized commit traversal previously used only by
305 'git tag --contains', significantly speeding up connectivity checks
306 across many candidate refs with shared history.
307
308 * The passing of push destination specifications in the 'remote-curl'
309 helper has been simplified by removing the explicit 'count' parameter
310 and relying on the NULL-termination of the array.
311
312 * The dependency on the global 'the_repository' variable in the
313 'refspec.c' API has been removed by passing the hash algorithm
314 explicitly to refspec-parsing functions and storing it in 'struct
315 refspec'.
316
317 * The enumeration of untracked and ignored files in 'git status' has
318 been optimized by avoiding quadratic complexity when inserting into
319 string lists, reducing the construction cost from O(n^2) to O(n log
320 n).
321
322 * The copy_file() and copy_file_with_time() functions have been
323 refactored to take a repository parameter, allowing the removal of the
324 implicit dependency on the global 'the_repository' variable in
325 'copy.c'.
326
327 * The tempfile and lockfile APIs have been refactored to stop depending
328 on the 'the_repository' global variable, and their callers have been
329 updated to use the repository-aware variants.
330
331 * The 'trust_executable_bit' (coming from the 'core.filemode'
332 configuration) has been migrated into 'struct repo_config_values' to
333 tie it to a specific repository instance.
334
335 * The 'excludes_file' and various other global configuration variables
336 (including 'editor_program', 'pager_program', 'askpass_program', and
337 'push_default') have been migrated into the per-repository structure.
338
339 * The 'git stash push' command has been optimized to avoid unnecessary
340 sparse index expansion when pathspecs are wholly inside the
341 sparse-checkout cone. Also, a potential out-of-bounds read in the
342 sparse-index expansion check helper pathspec_needs_expanded_index()
343 has been fixed by consistently using the parsed, prefixed path.
344
345 * The logic to write loose objects has been refactored and moved from
346 'object-file.c' to the loose backend source file 'odb/source-loose.c',
347 making the loose backend more self-contained. This is achieved by
348 first refactoring force_object_loose() to use generic ODB write
349 interfaces instead of loose-backend internals.
350
351 * Object database housekeeping in 'git gc' and 'git maintenance' has
352 been refactored to be pluggable. The files-backend-specific logic,
353 including incremental and geometric repacking as well as object
354 pruning, has been moved out of the command implementation and into the
355 files object database source, enabling future alternative object
356 database backends to implement their own housekeeping services.
357
358 * The image version used by the static-analysis CI job has been bumped
359 to ubuntu-latest (Ubuntu 24.04), which brings in a newer Coccinelle
360 version that resolves a severe performance regression. A false
361 positive warning from the 'CHECK_ASSERTION_SIDE_EFFECTS' build with
362 GCC 15 in the Bloom filter code has also been silenced to facilitate
363 the image upgrade.
364
365 * The alias tests in 't/t0014-alias.sh' have been updated to dynamically
366 query the list of deprecated commands using 'git
367 --list-cmds=deprecated' to avoid test failures when running with
368 'WITH_BREAKING_CHANGES' in a build directory that contains stale
369 executables of formerly deprecated commands.
370
371 * The code path that deals with relative paths in the diff-lib has
372 been cleaned up.
373
374 * The get_commit_action() function has been refactored to be a pure
375 predicate by moving the side-effecting line-level log range folding to
376 simplify_commit(). This ensures that evaluating a commit's action
377 before the walk reaches it does not prematurely mutate its tracked
378 line ranges, making it safer for potential lookahead evaluations.
379
380 * Synopsis and options in the documentation for 'git format-patch',
381 'git imap-send', 'git send-email', and 'git request-pull' have been
382 updated to the modern style.
383
384 * A new test helper commit_body() has been introduced to print the
385 message body of a commit, and various tests have been updated to use
386 it instead of spelling out the command pipeline manually and losing
387 the exit status of the 'git cat-file' command on the upstream of the
388 pipe.
389
390 * Tests for 'git merge-base --is-ancestor' have been added to cover
391 exit codes (0 for success, 1 for non-ancestor, 128 for errors) and
392 to ensure it cannot be combined with '--all'.
393
394 * The 'TRACE2_ANCESTRY' prerequisite in the 't0213' test script has been
395 refined to avoid failures under user-mode emulation by verifying that
396 the ancestry collector reports the expected process names rather than
397 the emulator binary name.
398
399 * Concurrent downloads of packfiles via packfile URIs and dumb HTTP are
400 safer by avoiding concurrent appends to the staging file. Opening in
401 read-write mode with separate file offsets prevents corruption and
402 preserves resumability. 'fetch-pack' now tolerates pre-existing
403 '.keep' files.
404
405 * The 'ssh-agent' tests in 't7528' have been fixed to work when the
406 user's login shell is csh-like, by explicitly passing '-s' to
407 'ssh-agent' to force Bourne shell syntax.
408
409 * A compatibility wrapper for writev(3p) has been reintroduced,
410 including fixes for CMake build and 'MAX_IO_SIZE' limits on NonStop.
411 Calls to write(3p) in send_sideband() and cat_blob() have been
412 refactored to use writev(3p) wrappers to reduce syscall overhead.
413
414 * The creation of the on-disk data structures for the object database
415 has been made pluggable, allowing future backends to customize their
416 setup. As part of this, the initialization of the object database
417 has been deferred, and the loading of the loose-object map has been
418 detangled from repository initialization.
419
420 * The 'struct odb_read_stream' and 'struct odb_write_stream'
421 structures have been consolidated into a single unified 'struct
422 odb_stream' structure, simplifying object database streaming APIs
423 and enabling streaming of arbitrary object types.
424
425 * The sequencer has been updated to release the object database before
426 spawning 'git commit'. This prevents open file handles from
427 blocking auto-maintenance tasks, such as repacking, on systems like
428 Windows where open files cannot be easily unlinked.
429
430 * The merge-base computation has been optimized by stopping the walk
431 early when one side's exclusive commits in the queue are exhausted,
432 yielding significant speedups for queries with one-sided histories.
433
434 * A handful of code paths have been corrected to check return values
435 from functions like curl_easy_duphandle(), deflateInit(), lseek(),
436 dup(), and strbuf_getline_lf(), resolving several Coverity warnings
437 about unchecked returns.
438
439 * The setting of a now-unused member '.pretty_given' in the sequencer
440 machinery has been removed.
441
442 * The performance of adding numerous new packfiles has been improved
443 by introducing a fast path for known-new packfiles to skip an
444 unnecessary traversal in packfile_list_append(), avoiding a
445 quadratic complexity regression on load.
446
447 * The unused name parameter in 'struct chdir_notify_entry' has been
448 removed from chdir_notify_register(), chdir_notify_unregister(), and
449 related callback signatures across several subsystems, simplifying the
450 API now that trace output no longer uses it.
451
452 * A heap-use-after-free bug in the object name parsing code when
453 reporting failures with a relative path to a sparse directory has
454 been corrected.
455
456 * The object database (odb) API has been refactored to distinguish
457 between missing objects and corrupt ones by returning more
458 descriptive error statuses. Both the packed and loose backends now
459 faithfully propagate error details using a generic strbuf error
460 mechanism, removing backend-specific leakage from central lookup
461 paths.
462
463 * The object database layer has been simplified by eagerly loading
464 alternate object directories upon initialization, instead of
465 deferring it to the first object lookup. This eliminates the need
466 for scattered lazy-loading calls throughout the codebase and paves
467 the way for integrating alternates with the pluggable backends.
468
469 * The threshold for geometric repacking to trigger based on loose
470 object count has been adjusted to match that of 'git gc --auto',
471 preventing over-aggressive repacking during concurrent writes.
472
473 * The 'git receive-pack' command has been updated to use a new ODB
474 transaction interface for writing incoming packfiles, making it more
475 backend-agnostic.
476
477 * The mechanism to generate a packfile corresponding to the result of
478 a fetch/push has been made pluggable through a set of object
479 database callback functions, removing hardcoded references to
480 'pack-objects' and enabling alternative ODBs to serve packfiles
481 themselves.
482
483 * The pack-objects command has been updated to record the total bytes
484 written to pack files in trace2 output, allowing performance
485 analysis of different compression settings by comparing the
486 resulting pack sizes.
487
488 * The global variable 'fetch_if_missing' has been moved to a member in
489 'struct repository', continuing the libification process and
490 allowing per-repository control (such as for submodules).
491
492 * The reftable code has been optimized to avoid an unnecessary
493 stat/reload of the stack when an addition already holds the
494 list_file lock, reducing the number of newfstatat syscalls from
495 linear to constant when writing refs.
496
497 * The application of the edited patch in 'git add -e' has been
498 refactored to use the internal apply API directly, avoiding the need
499 to spawn a 'git apply' subprocess.
500
501
502 Fixes since v2.55
503 -----------------
504
505 * A regression in the error diagnosis code for invalid .git files has
506 been fixed, avoiding a potential NULL-pointer crash when reporting
507 that a .git file does not point to a valid repository.
508 (merge 54a441bcea jk/setup-gitfile-diag-fix later to maint).
509
510 * Support for hashing loose or packed objects larger than 4GB on Windows
511 and other LLP64 platforms has been improved by converting object header
512 buffers and data-handling functions from 'unsigned long' to 'size_t'.
513 (merge d99e13d0be po/hash-object-size-t later to maint).
514
515 * The display of the rebase todo list in "git status" has been
516 improved to correctly abbreviate object IDs for more commands and
517 avoid misinterpreting refs as object IDs.
518 (merge 6f34e5f9e3 pw/status-rebase-todo later to maint).
519
520 * Reference backend configuration has been updated to load lazily to
521 avoid recursive calls during repository initialization when 'onbranch'
522 configuration conditions are evaluated. This has also fixed a memory
523 leak and allowed the unused `chdir_notify_reparent()` machinery to be
524 dropped.
525 (merge d6522d01df ps/refs-onbranch-fixes later to maint).
526
527 * The connectivity check has been refactored to search for promisor
528 objects in a generic way using the object database interface,
529 rather than iterating packfiles directly. This allows connectivity
530 checks to work properly in repositories that do not use packfiles.
531 (merge 66ee9cb930 ps/connected-generic-promisor-checks later to maint).
532
533 * A test checking interactions between git rebase --quit and
534 autostash in t3420-rebase-autostash.sh has been corrected to use
535 test_path_is_missing instead of ! grep on a file that shouldn't
536 exist in the conflicted state.
537 (merge eaad121fef sg/t3420-do-not-grep-in-missing-file later to maint).
538
539 * The GPG and SSH signature parsing code has been corrected to strip
540 carriage return characters only when they immediately precede line
541 feeds, instead of unconditionally stripping all carriage returns.
542 (merge 5dea8b690b ad/gpg-strip-cr-before-lf later to maint).
543
544 * A memory leak in the 'reftable_writer_new()' initialization function
545 has been fixed by delaying the allocation of 'struct reftable_writer'
546 until after input options are validated.
547 (merge c6fb3b9c3e jk/reftable-leakfix later to maint).
548
549 * A memory leak in the '--base' handling of 'git format-patch' has been
550 plugged, and the leak reporting of the test suite when running under a
551 TAP harness has been improved.
552 (merge 973a0373ff jk/format-patch-leakfix later to maint).
553
554 * A write file stream resource leak has been fixed as part of a code
555 cleanup.
556 (merge ebb4d2ffa3 jc/history-message-prep-fix later to maint).
557
558 * Various memory leaks in the Bloom-filter code paths that are exposed
559 when running tests with the 'GIT_TEST_COMMIT_GRAPH_CHANGED_PATHS=1'
560 environment variable have been plugged.
561 (merge 459088ec2e jk/bloom-leak-fixes later to maint).
562
563 * The wincred credential helper has been updated to avoid memory
564 corruption when erasing credentials and to prevent silent
565 credential loss when storing OAuth tokens, by correcting buffer
566 allocations and arguments passed to safe-CRT APIs.
567 (merge f635ab9ab4 js/wincred-fixes later to maint).
568
569 * Various code paths that initialize a cryptographic hash context but
570 bail out or finish without calling 'git_hash_final()' have been taught
571 to call 'git_hash_discard()' to release allocated resources, fixing
572 memory leaks when Git is built with non-default backends like
573 'OpenSSL' or 'libgcrypt'.
574 (merge 600588d2aa jk/hash-algo-leak-fixes later to maint).
575
576 * Various resource leaks, invalid file descriptor closures, and process
577 handle ownership issues flagged by Coverity have been fixed.
578 (merge 9184231173 js/coverity-fixes later to maint).
579
580 * Dockerized CI jobs running in private GitHub repositories have been
581 adjusted to use explicit process and file limits, preventing resource
582 exhaustion errors on private runners.
583 (merge bad766fbac js/ci-dockerized-pid-limit later to maint).
584
585 * Various test scripts have been updated to clean up large temporary
586 files and repositories, reducing peak disk usage during testing.
587 Also, expensive tests have been disabled on platforms that lack
588 sufficient resources (like 32-bit platforms and Windows CI runners),
589 and the long test suite has been enabled in GitLab CI.
590 (merge 84248444ad ps/t-fixes-for-git-test-long later to maint).
591
592 * The UTF-8 precomposition wrapper on macOS has been updated to use a
593 flexible array member to represent the name of a directory entry,
594 preventing fortified libc checks from failing when the name is
595 reallocated to be larger than 'NAME_MAX' bytes.
596 (merge 1eb281159f ih/precompose-flex-array later to maint).
597
598 * The 'git_hash_*()' wrappers have been updated to be used consistently
599 across the codebase instead of direct calls to members of 'struct
600 git_hash_algo', and 'git_hash_discard()' has been made idempotent to
601 simplify cleanups.
602 (merge 9e396aa553 jk/git-hash-cleanups later to maint).
603
604 * The sideband demultiplexer has been updated to recognize ANSI SGR
605 escape sequences that use colon-separated subfields (e.g., for
606 256-color or true-color codes).
607 (merge 3792b2aea4 mm/sideband-ansi-sgr-colon-fix later to maint).
608
609 * The 'reftable' code has been hardened against corrupted tables by
610 fixing out-of-bounds writes, out-of-bounds reads, and abort calls
611 during parsing.
612 (merge ca93c27328 ps/reftable-hardening later to maint).
613
614 * A description in the release notes for Git 2.55.0 has been
615 retroactively updated to clarify that Rust support is enabled by
616 default, but still optional, and will become mandatory in Git 3.0.
617 (merge 18b2009d14 jc/relnotes-2.55-rust-fix later to maint).
618
619 * The early-exit optimization in 'paint_down_to_common()' has been
620 gated on the queue being generation-ordered, fixing a bug where
621 'git merge-base' (without '--all') could return incorrect results
622 on repositories with v1 commit graphs and clock skew.
623 (merge ae68032a8d kk/commit-reach-find-all-fix later to maint).
624
625 * The client-side parser of the server-advertised bundle-URI list has
626 been updated to drain the remaining response in order to avoid
627 protocol desynchronization when the server sends a misconfigured list.
628 Also, the server-side has been taught to omit empty configuration
629 values instead of sending invalid key-value lines.
630 (merge 50de1169e4 tc/bundle-uri-empty-fix later to maint).
631
632 * The 'topo_levels' slab was propagated only to the topmost layer of a
633 split commit-graph chain, causing topological levels for commits in
634 base layers to be recomputed during incremental writes. This has been
635 corrected.
636
637 * The stream-based object signature verification path has been
638 corrected to avoid double-closing the stream on read errors.
639 (merge cfd52a74a0 ps/odb-stream-double-close-fix later to maint).
640
641 * The '-i' shorthand for the '--init' option, which was accepted by the
642 'git submodule update' command until it was broken in a modernization
643 of the option-parsing code, has been restored.
644 (merge ff1da37f58 dm/submodule-update-i-shorthand later to maint).
645
646 * An accidental use of the '%zu' format specifier in 'git
647 submodule--helper' has been corrected to use 'PRIuMAX' and cast the
648 value to 'uintmax_t' to avoid portability issues.
649 (merge 3279c13c00 jc/submodule-helper-avoid-zu later to maint).
650
651 * The rebase post-rewrite notes-copying logic has been corrected. When
652 a commit is dropped during rebase (e.g., because its changes are
653 already upstream), it is no longer recorded as rewritten, preventing
654 its notes from being copied to an unrelated commit.
655 (merge 42554b78fd pw/rebase-drop-notes-with-commit later to maint).
656
657 * A few memory problems in the Rust interface to C hash functions have
658 been corrected. The 'Clone' implementation of 'CryptoHasher' now
659 properly initializes the context before cloning, and its 'Drop'
660 implementation now discards the context to prevent leaks.
661
662 * The object ID shortening and linking in the 'commitdiff' view of
663 'gitweb' has been corrected to work even when the index line carries
664 a trailing file mode.
665 (merge fda513d6fe tl/gitweb-shorten-hashes-with-modes later to maint).
666
667 * When the push remote is specified as a URL, the fetch refspec of a
668 uniquely matching configured remote is now used to find and update
669 the remote-tracking branch (e.g., '@{push}').
670
671 * Traversals with '--exclude-first-parent-only' have been corrected
672 to properly stop after the first parent even when it has already
673 been marked as 'SEEN'.
674 (merge 47382f7398 jc/exclude-first-parent-seen later to maint).
675
676 * A segfault when 'git clone --revision' talks to a server that does not
677 support protocol v2 (falling back to protocol v0) has been corrected.
678 (merge 1034ad383f af/clone-revision-v0-segfault-fix later to maint).
679
680 * rewrites_release() in 'remote.c' has been updated to free 'struct
681 rewrite' instances, their '.instead_of' arrays, and their contents.
682 (merge dcef3bf041 jc/remote-insteadof-leakfix later to maint).
683
684 * The remote-matching logic for submodules has been corrected to resolve
685 'url.*.insteadOf' aliases before comparing the inventoried URL from
686 '.gitmodules' with the URLs of configured remotes.
687
688 * 'git diff --relative' running with '--cached' has been corrected to
689 avoid a segfault when encountering unmerged paths outside the
690 prefix.
691 (merge 447126ed7d jk/diff-relative-cached-unmerged later to maint).
692
693 * Two bugs in how 'git rebase' handles skipped 'fixup' and 'squash'
694 commands have been fixed. One bug caused an incorrect commit count to
695 be shown in the template message when multiple commands were skipped,
696 and another prevented the editor from opening when the final command
697 in a chain containing 'fixup -c' was skipped.
698
699 * Git for Windows has been updated to avoid auto-detecting the symlink
700 type if the target path starts with a slash, preventing NTLM
701 credential leaks when checking out repositories with crafted
702 symbolic links pointing to network shares.
703
704 * 'git cat-file --batch-command' that asked for 'contents' without
705 'type' segfaults, which has been corrected.
706 (merge 2abc7f0304 jk/cat-file-batch-wo-type-fix later to maint).
707
708 * A memory leak in 'git merge' when run without arguments (which
709 triggers the default-to-upstream path) has been fixed. A test has
710 been added to cover this case.
711 (merge 68cce04a02 tc/merge-default-to-upstream-leakfix later to maint).
712
713 * A boundary case check in reachability bitmap traversal has been
714 corrected to properly handle the object at position zero, which was
715 previously skipped, leading to redundant bitmap loading.
716 (merge b56b48301e dl/pack-bitmap-position-zero later to maint).
717
718 * A crash in the 'sparse-index' collapse code when encountering an
719 invalidated cache-tree node (due to an intent-to-add path) has been
720 fixed by avoiding collapsing such subtrees.
721 (merge eede1e69fe ds/sparse-index-ita-crash later to maint).
722
723 * Documentation for 'git replay' has been updated to refer to its
724 configuration variables.
725 (merge 48c0549f5c kh/doc-replay-config later to maint).
726
727 * Documentation for 'git interpret-trailers' has been updated to explain
728 the format of trailer keys (alphanumeric characters and hyphens),
729 replace outdated terminology, define key terms upfront, and document
730 how comment lines in the input are treated.
731 (merge 4515c86fd9 kh/doc-trailers later to maint).
732
733 * The 'pack-objects' and delta-encoding code paths have been updated to
734 use 'size_t' instead of 'unsigned long' for object sizes and offset
735 limits, avoiding potential truncation issues on 64-bit Windows.
736 (merge d50ac11724 js/pack-objects-delta-size-t later to maint).
737
738 * A client requesting the promisor-remote capability without a value
739 caused a null pointer dereference, which has been corrected by
740 rejecting a request without an argument.
741 (merge dd6b35ff71 en/serve-promisor-remote-fix later to maint).
742
743 * Various tests in 't7900-maintenance.sh' have been updated to use a
744 throwaway repository, and auto-detaching of maintenance tasks is now
745 disabled for these tests to fix flaky races with concurrent background
746 maintenance jobs.
747 (merge 2775d8bcd1 ps/t7900-deflake-maintenance later to maint).
748
749 * The help text for the '-l' option of 'git diff' has been updated.
750 (merge 764243bdf4 en/diff-l-opt-help later to maint).
751
752 * 'git -C <dir> diff fi<TAB>' did not complete 'file', which has
753 been corrected.
754 (merge 354d1bf3a0 jc/complete-diff-tracked-paths later to maint).
755
756 * 'git -C <dir> checkout fi<TAB>' did not complete 'file', which has
757 been corrected.
758 (merge 05e2ab1f31 jc/complete-checkout later to maint).
759
760 * The trailer parsing machinery has been updated to avoid mistaking
761 lines that begin with a URL (e.g., 'https://...') as trailer lines.
762 This prevents intended textual URLs from being mangled or mistakenly
763 treated as metadata keys.
764
765 * The instructions for deprecated commands emitted by
766 you_still_use_that() have been reworded to clarify that the removal
767 decision is final and to provide more assertive guidance on finding
768 a replacement.
769 (merge 8ace32221c jc/you-still-use-that later to maint).
770
771 * The zsh completion script (in 'contrib/') has been updated to
772 correctly locate the Git command after global options like '-C' by
773 properly skipping them, similar to how the bash completion does.
774
775 * The git worktree repair command failed to rewrite the .git file of
776 a working tree from a relative path to an absolute path when the
777 command was run in the working tree itself. The
778 read_gitfile_gently() function was modified to also return whether
779 the path originally recorded in the file was absolute, and this new
780 capability is used to correctly detect such mismatches.
781
782 * Other code cleanup, docfix, build fix, etc.
783 (merge 026636128f ss/submittingpatches-typofix later to maint).
784 (merge d2af22cc21 jc/rerere-doc-typofix later to maint).