1 Git v2.38 Release Notes
2 =======================
4 UI, Workflows & Features
6 * "git remote show [-n] frotz" now pays attention to negative
9 * "git push" sometimes perform poorly when reachability bitmaps are
10 used, even in a repository where other operations are helped by
11 bitmaps. The push.useBitmaps configuration variable is introduced
12 to allow disabling use of reachability bitmaps only for "git push".
14 * "git grep -m<max-hits>" is a way to limit the hits shown per file.
16 * "git merge-tree" learned a new mode where it takes two commits and
17 computes a tree that would result in the merge commit, if the
18 histories leading to these two commits were to be merged.
20 * "git mv A B" in a sparsely populated working tree can be asked to
21 move a path between directories that are "in cone" (i.e. expected
22 to be materialized in the working tree) and "out of cone"
23 (i.e. expected to be hidden). The handling of such cases has been
26 * Earlier, HTTP transport clients learned to tell the server side
27 what locale they are in by sending Accept-Language HTTP header, but
28 this was done only for some requests but not others.
30 * Introduce a discovery.barerepository configuration variable that
31 allows users to forbid discovery of bare repositories.
33 * Various messages that come from the pack-bitmap codepaths have been
36 * "git rebase -i" learns to update branches whose tip appear in the
37 rebased range with "--update-refs" option.
39 * "git ls-files" learns the "--format" option to tweak its output.
41 * "git cat-file" learned an option to use the mailmap when showing
42 commit and tag objects.
44 * When "git merge" finds that it cannot perform a merge, it should
45 restore the working tree to the state before the command was
46 initiated, but in some corner cases it didn't.
48 * Operating modes like "--batch" of "git cat-file" command learned to
49 take NUL-terminated input, instead of one-item-per-line.
52 Performance, Internal Implementation, Development Support etc.
54 * Collection of what is referenced by objects in promisor packs have
55 been optimized to inspect these objects in the in-pack order.
57 * Introduce a helper to see if a branch is already being worked on
58 (hence should not be newly checked out in a working tree), which
59 performs much better than the existing find_shared_symref() to
60 replace many uses of the latter.
62 * Teach "git archive" to (optionally and then by default) avoid
63 spawning an external "gzip" process when creating ".tar.gz" (and
66 * Allow large objects read from a packstream to be streamed into a
67 loose object file straight, without having to keep it in-core as a
70 * Further preparation to turn git-submodule.sh into a builtin
73 * Apply Coccinelle rule to turn raw memmove() into MOVE_ARRAY() cpp
74 macro, which would improve maintainability and readability.
76 * Teach "make all" to build gitweb as well.
78 * Tweak tests so that they still work when the "git init" template
79 did not create .git/info directory.
81 * Add Coccinelle rules to detect the pattern of initializing and then
82 finalizing a structure without using it in between at all, which
83 happens after code restructuring and the compilers fail to
84 recognize as an unused variable.
86 * The code to convert between GPG trust level strings and internal
87 constants we use to represent them have been cleaned up.
89 * Support for libnettle as SHA256 implementation has been added.
91 * The way "git multi-pack" uses parse-options API has been improved.
93 * A coccinelle rule (in contrib/) to encourage use of COPY_ARRAY
94 macro has been improved.
96 * API tweak to make it easier to run fuzz testing on commit-graph parser.
98 * Omit fsync-related trace2 entries when their values are all zero.
100 * The codepath to write multi-pack index has been taught to release a
101 large chunk of memory that holds an array of objects in the packs,
102 as soon as it is done with the array, to reduce memory consumption.
104 * Add a level of redirection to array allocation API in xdiff part,
105 to make it easier to share with the libgit2 project.
107 * "git fetch" client logs the partial clone filter used in the trace2
114 * Rewrite of "git add -i" in C that appeared in Git 2.25 didn't
115 correctly record a removed file to the index, which was fixed.
117 * Certain diff options are currently ignored when combined-diff is
118 shown; mark them as incompatible with the feature.
120 * Adjust technical/bitmap-format to be formatted by AsciiDoc, and
121 add some missing information to the documentation.
123 * Fixes for tests when the source directory has unusual characters in
124 its path, e.g. whitespaces, double-quotes, etc.
126 * "git mktree --missing" lazily fetched objects that are missing from
127 the local object store, which was totally unnecessary for the purpose
128 of creating the tree object(s) from its input.
130 * Give _() markings to fatal/warning/usage: labels that are shown in
131 front of these messages.
133 * References to commands-to-be-typed-literally in "git rebase"
134 documentation mark-up have been corrected.
136 * In a non-bare repository, the behavior of Git when the
137 core.worktree configuration variable points at a directory that has
138 a repository as its subdirectory, regressed in Git 2.27 days.
140 * Recent update to vimdiff layout code has been made more robust
141 against different end-user vim settings.
143 * Plug various memory leaks.
144 (merge ece3974ba6 ab/leakfix later to maint).
146 * Plug various memory leaks in test-tool commands.
147 (merge f40a693450 ab/test-tool-leakfix later to maint).
149 * Fixes a long-standing corner case bug around directory renames in
150 the merge-ort strategy.
152 * The resolve-undo information in the index was not protected against
153 GC, which has been corrected.
155 * A corner case bug where lazily fetching objects from a promisor
156 remote resulted in infinite recursion has been corrected.
158 * "git clone" from a repository with some ref whose HEAD is unborn
159 did not set the HEAD in the resulting repository correctly, which
162 * An earlier attempt to plug leaks placed a clean-up label to jump to
163 at a bogus place, which as been corrected.
165 * Variable quoting fix in the vimdiff driver of "git mergetool"
167 * "git shortlog -n" relied on the underlying qsort() to be stable,
168 which shouldn't have. Fixed.
170 * A fix for a regression in test framework.
172 * mkstemp() emulation on Windows has been improved.
174 * Add missing documentation for "include" and "includeIf" features in
175 "git config" file format, which incidentally teaches the command
176 line completion to include them in its offerings.
178 * Avoid "white/black-list" in documentation and code comments.
180 * Workaround for a compiler warning against use of die() in
181 osx-keychain (in contrib/).
183 * Workaround for a false positive compiler warning.
185 * "git p4" working on UTF-16 files on Windows did not implement
186 CRLF-to-LF conversion correctly, which has been corrected.
188 * "git p4" did not handle non-ASCII client name well, which has been
191 * "rerere-train" script (in contrib/) used to honor commit.gpgSign
192 while recreating the throw-away merges.
194 * "git checkout" miscounted the paths it updated, which has been
197 * Fix for a bug that makes write-tree to fail to write out a
198 non-existent index as a tree, introduced in 2.37.
200 * There was a bug in the codepath to upgrade generation information
201 in commit-graph from v1 to v2 format, which has been corrected.
203 * Gitweb had legacy URL shortener that is specific to the way
204 projects hosted on kernel.org used to (but no longer) work, which
206 (merge 75707da4fa jr/gitweb-title-shortening later to maint).
208 * Fix build procedure for Windows that uses CMake so that it can pick
209 up the shell interpreter from local installation location.
210 (merge 476e54b1c6 ca/unignore-local-installation-on-windows later to maint).
212 * Conditionally allow building Python interpreter on Windows
213 (merge 2f0623aaa7 js/mingw-with-python later to maint).
215 * Fix to lstat() emulation on Windows.
216 (merge 82ba1191ff js/lstat-mingw-enotdir-fix later to maint).
218 * Older gcc with -Wall complains about the universal zero initializer
219 "struct s = { 0 };" idiom, which makes developers' lives
220 inconvenient (as -Werror is enabled by DEVELOPER=YesPlease). The
221 build procedure has been tweaked to help these compilers.
222 (merge b53a5f2416 jk/struct-zero-init-with-older-gcc later to maint).
224 * Plug memory leaks in the failure code path in the "merge-ort" merge
226 (merge 1250dff32b js/ort-clean-up-after-failed-merge later to maint).
228 * "git symbolic-ref symref non..sen..se" is now diagnosed as an error.
229 (merge 04ede97211 lt/symbolic-ref-sanity later to maint).
231 * Other code cleanup, docfix, build fix, etc.
232 (merge 94955d576b gc/git-reflog-doc-markup later to maint).