at commit 1630431f

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