The 2nd batch for Git 2.56

Signed-off-by: Junio C Hamano <gitster@pobox.com>

Junio C Hamano committed Jul 13, 2026 at 08:27 UTC 55526a18268bbc1ddaf8a6b7850c33d984eac9e9
1 file changed +29
Documentation/RelNotes/2.56.0.adoc
+29
@@ -27,6 +27,10 @@ UI, Workflows & Features
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
35 Performance, Internal Implementation, Development Support etc.
36 --------------------------------------------------------------
@@ -74,6 +78,16 @@ Performance, Internal Implementation, Development Support etc.
78 a default limit of at most one reroll per day to give reviewers across
79 different time zones enough time to participate.
80
81 + * The lazy priority queue optimization pattern (deferring actual removal
82 + in 'prio_queue_get()' to allow get+put fusion) has been folded
83 + directly into 'prio_queue' itself, speeding up commit traversal
84 + workflows and simplifying callers.
85 +
86 + * The 'reprepare()' callback for object database sources has been
87 + generalized into a 'prepare()' callback with an optional flush cache
88 + flag, and a new 'odb_prepare()' wrapper has been introduced to allow
89 + pre-opening object database sources.
90 +
91
92 Fixes since v2.55
93 -----------------
@@ -111,3 +125,18 @@ Fixes since v2.55
125 test_path_is_missing instead of ! grep on a file that shouldn't
126 exist in the conflicted state.
127 (merge eaad121fef sg/t3420-do-not-grep-in-missing-file later to maint).
128 +
129 + * The GPG and SSH signature parsing code has been corrected to strip
130 + carriage return characters only when they immediately precede line
131 + feeds, instead of unconditionally stripping all carriage returns.
132 + (merge 5dea8b690b ad/gpg-strip-cr-before-lf later to maint).
133 +
134 + * A memory leak in the 'reftable_writer_new()' initialization function
135 + has been fixed by delaying the allocation of 'struct reftable_writer'
136 + until after input options are validated.
137 + (merge c6fb3b9c3e jk/reftable-leakfix later to maint).
138 +
139 + * A memory leak in the '--base' handling of 'git format-patch' has been
140 + plugged, and the leak reporting of the test suite when running under a
141 + TAP harness has been improved.
142 + (merge 973a0373ff jk/format-patch-leakfix later to maint).