Commit
13c7afec212fc97ce257d15601659314c6673d6c
The 8th batch
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Junio C Hamano <gitster@pobox.com> · 2026-07-27 16:08 UTC
1 file changed,
+51
−0
modified Documentation/RelNotes/2.56.0.adoc
| @@ -56,6 +56,11 @@ UI, Workflows & Features | |||
| 56 | 56 | standardized to make them consistent with each other and with other | |
| 57 | 57 | commands. | |
| 58 | 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 | + | ||
| 59 | 64 | ||
| 60 | 65 | Performance, Internal Implementation, Development Support etc. | |
| 61 | 66 | -------------------------------------------------------------- | |
| @@ -206,6 +211,36 @@ Performance, Internal Implementation, Development Support etc. | |||
| 206 | 211 | pathspec filtering, which was lost when the streaming walk was | |
| 207 | 212 | refactored. | |
| 208 | 213 | ||
| 214 | + | * The ref subsystem and the worktree API have been refactored to pass a | |
| 215 | + | repository pointer down the call chain, allowing them to drop | |
| 216 | + | references to the global 'the_repository' variable. As part of this, | |
| 217 | + | the handling of the 'core.packedRefsTimeout' configuration has been | |
| 218 | + | moved into the per-repository ref store structure. | |
| 219 | + | ||
| 220 | + | * 'git branch --contains' and 'git for-each-ref --contains' have been | |
| 221 | + | optimized to use the memoized commit traversal previously used only by | |
| 222 | + | 'git tag --contains', significantly speeding up connectivity checks | |
| 223 | + | across many candidate refs with shared history. | |
| 224 | + | ||
| 225 | + | * The passing of push destination specifications in the 'remote-curl' | |
| 226 | + | helper has been simplified by removing the explicit 'count' parameter | |
| 227 | + | and relying on the NULL-termination of the array. | |
| 228 | + | ||
| 229 | + | * The dependency on the global 'the_repository' variable in the | |
| 230 | + | 'refspec.c' API has been removed by passing the hash algorithm | |
| 231 | + | explicitly to refspec-parsing functions and storing it in 'struct | |
| 232 | + | refspec'. | |
| 233 | + | ||
| 234 | + | * The enumeration of untracked and ignored files in 'git status' has | |
| 235 | + | been optimized by avoiding quadratic complexity when inserting into | |
| 236 | + | string lists, reducing the construction cost from O(n^2) to O(n log | |
| 237 | + | n). | |
| 238 | + | ||
| 239 | + | * The copy_file() and copy_file_with_time() functions have been | |
| 240 | + | refactored to take a repository parameter, allowing the removal of the | |
| 241 | + | implicit dependency on the global 'the_repository' variable in | |
| 242 | + | 'copy.c'. | |
| 243 | + | ||
| 209 | 244 | ||
| 210 | 245 | Fixes since v2.55 | |
| 211 | 246 | ----------------- | |
| @@ -350,3 +385,19 @@ Fixes since v2.55 | |||
| 350 | 385 | 'git submodule update' command until it was broken in a modernization | |
| 351 | 386 | of the option-parsing code, has been restored. | |
| 352 | 387 | (merge ff1da37f58 dm/submodule-update-i-shorthand later to maint). | |
| 388 | + | ||
| 389 | + | * An accidental use of the '%zu' format specifier in 'git | |
| 390 | + | submodule--helper' has been corrected to use 'PRIuMAX' and cast the | |
| 391 | + | value to 'uintmax_t' to avoid portability issues. | |
| 392 | + | (merge 3279c13c00 jc/submodule-helper-avoid-zu later to maint). | |
| 393 | + | ||
| 394 | + | * The rebase post-rewrite notes-copying logic has been corrected. When | |
| 395 | + | a commit is dropped during rebase (e.g., because its changes are | |
| 396 | + | already upstream), it is no longer recorded as rewritten, preventing | |
| 397 | + | its notes from being copied to an unrelated commit. | |
| 398 | + | (merge 42554b78fd pw/rebase-drop-notes-with-commit later to maint). | |
| 399 | + | ||
| 400 | + | * A few memory problems in the Rust interface to C hash functions have | |
| 401 | + | been corrected. The 'Clone' implementation of 'CryptoHasher' now | |
| 402 | + | properly initializes the context before cloning, and its 'Drop' | |
| 403 | + | implementation now discards the context to prevent leaks. | |