1 Git v2.37 Release Notes
2 =======================
4 UI, Workflows & Features
6 * "vimdiff[123]" mergetool drivers have been reimplemented with a
7 more generic layout mechanism.
9 * "git -v" and "git -h" are now understood as "git --version" and
12 * The temporary files fed to external diff command are now generated
13 inside a new temporary directory under the same basename.
15 * "git log --since=X" will stop traversal upon seeing a commit that
16 is older than X, but there may be commits behind it that is younger
17 than X when the commit was created with a faulty clock. A new
18 option is added to keep digging without stopping, and instead
19 filter out commits with timestamp older than X.
21 * "git -c branch.autosetupmerge=simple branch $A $B" will set the $B
22 as $A's upstream only when $A and $B shares the same name, and "git
23 -c push.default=simple" on branch $A would push to update the
24 branch $A at the remote $B came from. Also more places use the
25 sole remote, if exists, before defaulting to 'origin'.
27 * A new doc has been added that lists tips for tools to work with
30 * "git remote -v" now shows the list-objects-filter used during
31 fetching from the remote, if available.
33 * With the new http.curloptResolve configuration, the CURLOPT_RESOLVE
34 mechanism that allows cURL based applications to use pre-resolved
35 IP addresses for the requests is exposed to the scripts.
37 * "git add -i" was rewritten in C some time ago and has been in
38 testing; the reimplementation is now exposed to general public by
41 * Deprecate non-cone mode of the sparse-checkout feature.
43 * Introduce a filesystem-dependent mechanism to optimize the way the
44 bits for many loose object files are ensured to hit the disk
47 * The "do not remove the directory the user started Git in" logic,
48 when Git cannot tell where that directory is, is disabled. Earlier
49 we refused to run in such a case.
51 * A mechanism to pack unreachable objects into a "cruft pack",
52 instead of ejecting them into loose form to be reclaimed later, has
55 * Update the doctype written in gitweb output to xhtml5.
58 Performance, Internal Implementation, Development Support etc.
60 * The performance of the "untracked cache" feature has been improved
61 when "--untracked-files=<mode>" and "status.showUntrackedFiles"
64 * "git stash" works better with sparse index entries.
66 * "git show :<path>" learned to work better with the sparse-index
69 * Introduce and apply coccinelle rule to discourage an explicit
70 comparison between a pointer and NULL, and applies the clean-up to
71 the maintenance track.
73 * Preliminary code refactoring around transport and bundle code.
75 * "sparse-checkout" learns to work better with the sparse-index
78 * A workflow change for translators are being proposed. git.pot is
79 no longer version controlled and it is local responsibility of
80 translaters to generate it.
82 * Plug the memory leaks from the trickiest API of all, the revision
85 * Rename .env_array member to .env in the child_process structure.
87 * More fsmonitor--daemon.
89 * A new bug() and BUG_if_bug() API is introduced to make it easier to
90 uniformly log "detect multiple bugs and abort in the end" pattern.
96 * "git submodule update" without pathspec should silently skip an
97 uninitialized submodule, but it started to become noisy by mistake.
98 (merge 4f1ccef87c gc/submodule-update-part2 later to maint).
100 * "diff-tree --stdin" has been broken for about a year, but 2.36
101 release broke it even worse by breaking running the command with
102 <pathspec>, which in turn broke "gitk" and got noticed. This has
103 been corrected by aligning its behaviour to that of "log".
104 (merge f8781bfda3 jc/diff-tree-stdin-fix later to maint).
106 * Regression fix for 2.36 where "git name-rev" started to sometimes
107 reference strings after they are freed.
108 (merge 45a14f578e rs/name-rev-fix-free-after-use later to maint).
110 * "git show <commit1> <commit2>... -- <pathspec>" lost the pathspec
111 when showing the second and subsequent commits, which has been
113 (merge 5cdb38458e jc/show-pathspec-fix later to maint).
115 * "git fast-export -- <pathspec>" lost the pathspec when showing the
116 second and subsequent commits, which has been corrected.
117 (merge d1c25272f5 rs/fast-export-pathspec-fix later to maint).
119 * "git format-patch <args> -- <pathspec>" lost the pathspec when
120 showing the second and subsequent commits, which has been
122 (merge 91f8f7e46f rs/format-patch-pathspec-fix later to maint).
124 * "git clone --origin X" leaked piece of memory that held value read
125 from the clone.defaultRemoteName configuration variable, which has
127 (merge 6dfadc8981 jc/clone-remote-name-leak-fix later to maint).
129 * Get rid of a bogus and over-eager coccinelle rule.
130 (merge 08bdd3a185 jc/cocci-xstrdup-or-null-fix later to maint).
132 * The path taken by "git multi-pack-index" command from the end user
133 was compared with path internally prepared by the tool withut first
134 normalizing, which lead to duplicated paths not being noticed,
135 which has been corrected.
136 (merge 11f9e8de3d ds/midx-normalize-pathname-before-comparison later to maint).
138 * Correct choices of C compilers used in various CI jobs.
139 (merge 3506cae04f ab/cc-package-fixes later to maint).
141 * Various cleanups to "git p4".
142 (merge 4ff0108d9e jh/p4-various-fixups later to maint).
144 * The progress meter of "git blame" was showing incorrect numbers
145 when processing only parts of the file.
146 (merge e5f5d7d42e ea/progress-partial-blame later to maint).
148 * "git rebase --keep-base <upstream> <branch-to-rebase>" computed the
149 commit to rebase onto incorrectly, which has been corrected.
150 (merge 9e5ebe9668 ah/rebase-keep-base-fix later to maint).
152 * Fix a leak of FILE * in an error codepath.
153 (merge c0befa0c03 kt/commit-graph-plug-fp-leak-on-error later to maint).
155 * Avoid problems from interaction between malloc_check and address
157 (merge 067109a5e7 pw/test-malloc-with-sanitize-address later to maint).
159 * The commit summary shown after making a commit is matched to what
160 is given in "git status" not to use the break-rewrite heuristics.
161 (merge 84792322ed rs/commit-summary-wo-break-rewrite later to maint).
163 * Update a few end-user facing messages around eol conversion.
164 (merge c970d30c2c ah/convert-warning-message later to maint).
166 * Trace2 documentation updates.
167 (merge a6c80c313c js/trace2-doc-fixes later to maint).
169 * Build procedure fixup.
170 (merge 1fbfd96f50 mg/detect-compiler-in-c-locale later to maint).
172 * "git pull" without "--recurse-submodules=<arg>" made
173 submodule.recurse take precedence over fetch.recurseSubmodules by
174 mistake, which has been corrected.
175 (merge 5819417365 gc/pull-recurse-submodules later to maint).
177 * "git bisect" was too silent before it is ready to start computing
178 the actual bisection, which has been corrected.
179 (merge f11046e6de cd/bisect-messages-from-pre-flight-states later to maint).
181 * macOS CI jobs have been occasionally flaky due to tentative version
182 skew between perforce and the homebrew packager. Instead of
183 failing the whole CI job, just let it skip the p4 tests when this
185 (merge f15e00b463 cb/ci-make-p4-optional later to maint).
187 * A bit of test framework fixes with a few fixes to issues found by
189 (merge 7c898554d7 ab/valgrind-fixes later to maint).
191 * "git archive --add-file=<path>" picked up the raw permission bits
192 from the path and propagated to zip output in some cases, without
193 normalization, which has been corrected (tar output did not have
195 (merge 6a61661967 jc/archive-add-file-normalize-mode later to maint).
197 * "make coverage-report" without first running "make coverage" did
198 not produce any meaningful result, which has been corrected.
199 (merge 96ddfecc5b ep/coverage-report-wants-test-to-have-run later to maint).
201 * The "--current" option of "git show-branch" should have been made
202 incompatible with the "--reflog" mode, but this was not enforced,
203 which has been corrected.
204 (merge 41c64ae0e7 jc/show-branch-g-current later to maint).
206 * "git fetch" unnecessarily failed when an unexpected optional
207 section appeared in the output, which has been corrected.
208 (merge 7709acf7be jt/fetch-peek-optional-section later to maint).
210 * The way "git fetch" without "--update-head-ok" ensures that HEAD in
211 no worktree points at any ref being updated was too wasteful, which
212 has been optimized a bit.
213 (merge f7400da800 os/fetch-check-not-current-branch later to maint).
215 * "git fetch --recurse-submodules" from multiple remotes (either from
216 a remote group, or "--all") used to make one extra "git fetch" in
217 the submodules, which has been corrected.
218 (merge 0353c68818 jc/avoid-redundant-submodule-fetch later to maint).
220 * With a recent update to refuse access to repositories of other
221 people by default, "sudo make install" and "sudo git describe"
222 stopped working. This series intends to loosen it while keeping
224 (merge b9063afda1 cb/path-owner-check-with-sudo later to maint).
226 * The tests that ensured merges stop when interfering local changes
227 are present did not make sure that local changes are preserved; now
229 (merge 4b317450ce jc/t6424-failing-merge-preserve-local-changes later to maint).
231 * Some real problems noticed by gcc 12 have been fixed, while false
232 positives have been worked around.
234 * Update the version of FreeBSD image used in Cirrus CI.
235 (merge c58bebd4c6 pb/use-freebsd-12.3-in-cirrus-ci later to maint).
237 * The multi-pack-index code did not protect the packfile it is going
238 to depend on from getting removed while in use, which has been
240 (merge 4090511e40 tb/midx-race-in-pack-objects later to maint).
242 * Teach "git repack --geometric" work better with "--keep-pack" and
243 avoid corrupting the repository when packsize limit is used.
244 (merge 66731ff921 tb/geom-repack-with-keep-and-max later to maint).
246 * The documentation on the interaction between "--add-file" and
247 "--prefix" options of "git archive" has been improved.
248 (merge a75910602a rs/document-archive-prefix later to maint).
250 * A git subcommand like "git add -p" spawns a separate git process
251 while relaying its command line arguments. A pathspec with only
252 negative elements was mistakenly passed with an empty string, which
254 (merge b02fdbc80a jc/all-negative-pathspec later to maint).
256 * With a more targetted workaround in http.c in another topic, we may
257 be able to lift this blanket "GCC12 dangling-pointer warning is
258 broken and unsalvageable" workaround.
259 (merge 419141e495 cb/buggy-gcc-12-workaround later to maint).
261 * A misconfigured 'branch..remote' led to a bug in configuration
263 (merge f1dfbd9ee0 gc/zero-length-branch-config-fix later to maint).
265 * Other code cleanup, docfix, build fix, etc.
266 (merge e6b2582da3 cm/reftable-0-length-memset later to maint).
267 (merge 0b75e5bf22 ab/misc-cleanup later to maint).
268 (merge 52e1ab8a76 ea/rebase-code-simplify later to maint).
269 (merge 756d15923b sg/safe-directory-tests-and-docs later to maint).
270 (merge d097a23bfa ds/do-not-call-bug-on-bad-refs later to maint).
271 (merge c36c27e75c rs/t7812-pcre2-ws-bug-test later to maint).
272 (merge 1da312742d gf/unused-includes later to maint).
273 (merge 465b30a92d pb/submodule-recurse-mode-enum later to maint).
274 (merge 82b28c4ed8 km/t3501-use-test-helpers later to maint).
275 (merge 72315e431b sa/t1011-use-helpers later to maint).
276 (merge 95b3002201 cg/vscode-with-gdb later to maint).
277 (merge fbe5f6b804 tk/p4-utf8-bom later to maint).
278 (merge 17f273ffba tk/p4-with-explicity-sync later to maint).
279 (merge 944db25c60 kf/p4-multiple-remotes later to maint).
280 (merge b014cee8de jc/update-ozlabs-url later to maint).
281 (merge 4ec5008062 pb/ggg-in-mfc-doc later to maint).
282 (merge af845a604d tb/receive-pack-code-cleanup later to maint).
283 (merge 2acf4cf001 js/ci-gcc-12-fixes later to maint).
284 (merge 05e280c0a6 jc/http-clear-finished-pointer later to maint).
285 (merge 8c49d704ef fh/transport-push-leakfix later to maint).