at commit fa7f9290

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