]> git.ipfire.org Git - thirdparty/git.git/blame - Documentation/RelNotes/2.45.0.txt
The fifteenth batch
[thirdparty/git.git] / Documentation / RelNotes / 2.45.0.txt
CommitLineData
a2082dbd
JH
1Git v2.45 Release Notes
2=======================
3
4Backward Compatibility Notes
5
6UI, Workflows & Features
7
8 * Integrate the reftable code into the refs framework as a backend.
9 With "git init --ref-format=reftable", hopefully it would be a lot
10 more efficient to manage a repository with many references.
11
12 * "git checkout -p" and friends learned that that "@" is a synonym
13 for "HEAD".
14
0f9d4d28
JH
15 * Variants of vimdiff learned to honor mergetool.<variant>.layout
16 settings.
17
b387623c
JH
18 * "git reflog" learned a "list" subcommand that enumerates known reflogs.
19
43072b4c
JH
20 * When a merge conflicted at a submodule, merge-ort backend used to
21 unconditionally give a lengthy message to suggest how to resolve
22 it. Now the message can be squelched as an advice message.
23
24 * "git for-each-ref" learned "--include-root-refs" option to show
25 even the stuff outside the 'refs/' hierarchy.
26
e09f1254
JH
27 * "git rev-list --missing=print" has learned to optionally take
28 "--allow-missing-tips", which allows the objects at the starting
29 points to be missing.
30
31 * "git merge-tree" has learned that the three trees involved in the
32 3-way merge only need to be trees, not necessarily commits.
33
34 * "git log --merge" learned to pay attention to CHERRY_PICK_HEAD and
35 other kinds of *_HEAD pseudorefs.
36
2953d95d
JH
37 * Platform specific tweaks for OS/390 has been added to
38 config.mak.uname.
39
11c821f2
JH
40 * Users with safe.bareRepository=explicit can still work from within
41 $GIT_DIR of a seconary worktree (which resides at .git/worktrees/$name/)
42 of the primary worktree without explicitly specifying the $GIT_DIR
43 environment variable or the --git-dir=<path> option.
44
45 * The output format for dates "iso-strict" has been tweaked to show
46 a time in the Zulu timezone with "Z" suffix, instead of "+00:00".
47
d6fd0437
JH
48 * "git diff" and friends learned two extra configuration variables,
49 diff.srcPrefix and diff.dstPrefix.
50
51 * The status.showUntrackedFiles configuration variable had a name
52 that tempts users to set a Boolean value expressed in our usual
53 "false", "off", and "0", but it only took "no". This has been
54 corrected so "true" and its synonyms are taken as "normal", while
55 "false" and its synonyms are taken as "no".
56
57 * Remove an ancient and not well maintained Hg-to-git migration
58 script from contrib/.
59
c2cbfbd2
JH
60 * Hints that suggest what to do after resolving conflicts can now be
61 squelched by disabling advice.mergeConflict.
62
7774cfed
JH
63 * Allow git-cherry-pick(1) to automatically drop redundant commits via
64 a new `--empty` option, similar to the `--empty` options for
65 git-rebase(1) and git-am(1). Includes a soft deprecation of
66 `--keep-redundant-commits` as well as some related docs changes and
67 sequencer code cleanup.
68
19981dae
JH
69 * "git config" learned "--comment=<message>" option to leave a
70 comment immediately after the "variable = value" on the same line
71 in the configuration file.
72
73 * core.commentChar used to be limited to a single byte, but has been
74 updated to allow an arbitrary multi-byte sequence.
75
a2082dbd
JH
76
77Performance, Internal Implementation, Development Support etc.
78
79 * The code to iterate over refs with the reftable backend has seen
80 some optimization.
81
82 * More tests that are marked as "ref-files only" have been updated to
83 improve test coverage of reftable backend.
84
0f9d4d28
JH
85 * Some parts of command line completion script (in contrib/) have
86 been micro-optimized.
87
b387623c
JH
88 * The way placeholders are to be marked-up in documentation have been
89 specified; use "_<placeholder>_" to typeset the word inside a pair
90 of <angle-brakets> emphasized.
91
e09f1254
JH
92 * "git --no-lazy-fetch cmd" allows to run "cmd" while disabling lazy
93 fetching of objects from the promisor remote, which may be handy
94 for debugging.
95
4f9b731b
JH
96 * The implementation in "git clean" that makes "-n" and "-i" ignore
97 clean.requireForce has been simplified, together with the
98 documentation.
99
100 * The code to iterate over refs with the reftable backend has seen
101 some optimization.
102
2953d95d
JH
103 * Uses of xwrite() helper have been audited and updated for better
104 error checking and simpler code.
105
3bd955d2
JH
106 * Some trace2 events that lacked def_param have learned to show it,
107 enriching the output.
108
11c821f2
JH
109 * The parse-options code that deals with abbreviated long option
110 names have been cleaned up.
111
112 * The code in reftable backend that creates new table files works
113 better with the tempfile framework to avoid leaving cruft after a
114 failure.
115
116 * The reftable code has its own custom binary search function whose
117 comparison callback has an unusual interface, which caused the
118 binary search to degenerate into a linear search, which has been
119 corrected.
120
121 * The code to iterate over reflogs in the reftable has been optimized
122 to reduce memory allocation and deallocation.
123
d6fd0437
JH
124 * Work to support a repository that work with both SHA-1 and SHA-256
125 hash algorithms has started.
126
127 * A new fuzz target that exercises config parsing code has been
128 added.
129
c2cbfbd2
JH
130 * Fix the way recently added tests interpolate variables defined
131 outside them, and document the best practice to help future
132 developers.
133
7774cfed
JH
134 * Introduce an experimental protocol for contributors to propose the
135 topic description to be used in the "What's cooking" report, the
136 merge commit message for the topic, and in the release notes and
137 document it in the SubmittingPatches document.
138
139 * The t/README file now gives a hint on running individual tests in
140 the "t/" directory with "make t<num>-*.sh t<num>-*.sh".
141 (merge 8d383806fc pb/test-scripts-are-build-targets later to maint).
142
a2082dbd
JH
143
144Fixes since v2.44
145-----------------
146
147 * "git apply" on a filesystem without filemode support have learned
148 to take a hint from what is in the index for the path, even when
149 not working with the "--index" or "--cached" option, when checking
150 the executable bit match what is required by the preimage in the
151 patch.
152 (merge 45b625142d cp/apply-core-filemode later to maint).
153
154 * "git column" has been taught to reject negative padding value, as
155 it would lead to nonsense behaviour including division by zero.
156 (merge 76fb807faa kh/column-reject-negative-padding later to maint).
157
0f9d4d28
JH
158 * "git am --help" now tells readers what actions are available in
159 "git am --whitespace=<action>", in addition to saying that the
160 option is passed through to the underlying "git apply".
161 (merge a171dac734 jc/am-whitespace-doc later to maint).
162
163 * "git tag --column" failed to check the exit status of its "git
164 column" invocation, which has been corrected.
165 (merge 92e66478fc rj/tag-column-fix later to maint).
166
167 * Credential helper based on libsecret (in contrib/) has been updated
168 to handle an empty password correctly.
169 (merge 8f1f2023b7 mh/libsecret-empty-password-fix later to maint).
170
b387623c
JH
171 * "git difftool --dir-diff" learned to honor the "--trust-exit-code"
172 option; it used to always exit with 0 and signalled success.
173 (merge eb84c8b6ce ps/difftool-dir-diff-exit-code later to maint).
174
43072b4c
JH
175 * The code incorrectly attempted to use textconv cache when asked,
176 even when we are not running in a repository, which has been
177 corrected.
178 (merge affe355fe7 jk/textconv-cache-outside-repo-fix later to maint).
179
180 * Remove an empty file that shouldn't have been added in the first
181 place.
182 (merge 4f66942215 js/remove-cruft-files later to maint).
183
184 * The logic to access reflog entries by date and number had ugly
185 corner cases at the boundaries, which have been cleaned up.
186 (merge 5edd126720 jk/reflog-special-cases-fix later to maint).
187
188 * An error message from "git upload-pack", which responds to "git
189 fetch" requests, had a trialing NUL in it, which has been
190 corrected.
191 (merge 3f4c7a0805 sg/upload-pack-error-message-fix later to maint).
192
193 * Clarify wording in the CodingGuidelines that requires <git-compat-util.h>
194 to be the first header file.
195 (merge 4e89f0e07c jc/doc-compat-util later to maint).
196
e09f1254
JH
197 * "git commit -v --cleanup=scissors" used to add the scissors line
198 twice in the log message buffer, which has been corrected.
199 (merge e90cc075cc jt/commit-redundant-scissors-fix later to maint).
200
201 * A custom remote helper no longer cannot access the newly created
202 repository during "git clone", which is a regression in Git 2.44.
203 This has been corrected.
204 (merge 199f44cb2e ps/remote-helper-repo-initialization-fix later to maint).
205
206 * Various parts of upload-pack has been updated to bound the resource
207 consumption relative to the size of the repository to protect from
208 abusive clients.
209 (merge 6cd05e768b jk/upload-pack-bounded-resources later to maint).
210
211 * The upload-pack program, when talking over v2, accepted the
212 packfile-uris protocol extension from the client, even if it did
213 not advertise the capability, which has been corrected.
214 (merge a922bfa3b5 jk/upload-pack-v2-capability-cleanup later to maint).
215
94511502
JH
216 * Make sure failure return from merge_bases_many() is properly caught.
217 (merge 25fd20eb44 js/merge-base-with-missing-commit later to maint).
218
4f9b731b
JH
219 * FSMonitor client code was confused when FSEvents were given in a
220 different case on a case-insensitive filesystem, which has been
221 corrected.
222 (merge 29c139ce78 jh/fsmonitor-icase-corner-case-fix later to maint).
223
224 * The "core.commentChar" configuration variable only allows an ASCII
225 character, which was not clearly documented, which has been
226 corrected.
227 (merge fb7c556f58 kh/doc-commentchar-is-a-byte later to maint).
228
229 * With release 2.44 we got rid of all uses of test_i18ngrep and there
230 is no in-flight topic that adds a new use of it. Make a call to
231 test_i18ngrep a hard failure, so that we can remove it at the end
232 of this release cycle.
233 (merge 381a83dfa3 jc/test-i18ngrep later to maint).
234
235 * The command line completion script (in contrib/) learned to
236 complete "git reflog" better.
237 (merge 1284f9cc11 rj/complete-reflog later to maint).
238
239 * The logic to complete the command line arguments to "git worktree"
240 subcommand (in contrib/) has been updated to correctly honor things
241 like "git -C dir" etc.
242 (merge 3574816d98 rj/complete-worktree-paths-fix later to maint).
243
2953d95d
JH
244 * When git refuses to create a branch because the proposed branch
245 name is not a valid refname, an advice message is given to refer
246 the user to exact naming rules.
247 (merge 8fbd903e58 kh/branch-ref-syntax-advice later to maint).
248
3bd955d2
JH
249 * Code simplification by getting rid of code that sets an environment
250 variable that is no longer used.
251 (merge 72a8d3f027 pw/rebase-i-ignore-cherry-pick-help-environment later to maint).
252
11c821f2
JH
253 * The code to find the effective end of log message can fall into an
254 endless loop, which has been corrected.
255 (merge 2541cba2d6 fs/find-end-of-log-message-fix later to maint).
256
257 * Mark-ups used in the documentation has been improved for
258 consistency.
259 (merge 45d5ed3e50 ja/doc-markup-fixes later to maint).
260
261 * The status.showUntrackedFiles configuration variable was
262 incorrectly documented to accept "false", which has been corrected.
263
c75fd8d8
JH
264 * Leaks from "git restore" have been plugged.
265 (merge 2f64da0790 rj/restore-plug-leaks later to maint).
266
267 * "git bugreport --no-suffix" was not supported and instead
268 segfaulted, which has been corrected.
269 (merge b3b57c69da js/bugreport-no-suffix-fix later to maint).
270
271 * The documentation for "%(trailers[:options])" placeholder in the
272 "--pretty" option of commands in the "git log" family has been
273 updated.
274 (merge bff85a338c bl/doc-key-val-sep-fix later to maint).
275
c2cbfbd2
JH
276 * "git checkout --conflict=bad" reported a bad conflictStyle as if it
277 were given to a configuration variable; it has been corrected to
278 report that the command line option is bad.
279 (merge 5a99c1ac1a pw/checkout-conflict-errorfix later to maint).
280
281 * Code clean-up in the "git log" machinery that implements custom log
282 message formatting.
283 (merge 1c10b8e5b0 jk/pretty-subject-cleanup later to maint).
284
285 * "git config" corrupted literal HT characters written in the
286 configuration file as part of a value, which has been corrected.
287 (merge e6895c3f97 ds/config-internal-whitespace-fix later to maint).
288
289 * A unit test for reftable code tried to enumerate all files in a
290 directory after reftable operations and expected to see nothing but
291 the files it wanted to leave there, but was fooled by .nfs* cruft
292 files left, which has been corrected.
293 (merge 0068aa7946 ps/reftable-unit-test-nfs-workaround later to maint).
294
7774cfed
JH
295 * The implementation and documentation of "object-format" option
296 exchange between the Git itself and its remote helpers did not
297 quite match, which has been corrected.
298
299 * The "--pretty=<shortHand>" option of the commands in the "git log"
300 family, defined as "[pretty] shortHand = <expansion>" should have
301 been looked up case insensitively, but was not, which has been
302 corrected.
303 (merge f999d5188b bl/pretty-shorthand-config-fix later to maint).
304
a2082dbd
JH
305 * Other code cleanup, docfix, build fix, etc.
306 (merge f0e578c69c rs/use-xstrncmpz later to maint).
0f9d4d28
JH
307 (merge 83e6eb7d7a ba/credential-test-clean-fix later to maint).
308 (merge 64562d784d jb/doc-interactive-singlekey-do-not-need-perl later to maint).
b387623c
JH
309 (merge c431a235e2 cp/t9146-use-test-path-helpers later to maint).
310 (merge 82d75402d5 ds/doc-send-email-capitalization later to maint).
311 (merge 41bff66e35 jc/doc-add-placeholder-fix later to maint).
312 (merge 6835f0efe9 jw/remote-doc-typofix later to maint).
313 (merge 244001aa20 hs/rebase-not-in-progress later to maint).
43072b4c
JH
314 (merge 2ca6c07db2 jc/no-include-of-compat-util-from-headers later to maint).
315 (merge 87bd7fbb9c rs/fetch-simplify-with-starts-with later to maint).
316 (merge f39addd0d9 rs/name-rev-with-mempool later to maint).
317 (merge 9a97b43e03 rs/submodule-prefix-simplify later to maint).
318 (merge 40b8076462 ak/rebase-autosquash later to maint).
e09f1254 319 (merge 3223204456 eg/add-uflags later to maint).
94511502 320 (merge 5f78d52dce es/config-doc-sort-sections later to maint).
2953d95d 321 (merge 781fb7b4c2 as/option-names-in-messages later to maint).
3bd955d2 322 (merge 51d41dc243 jk/doc-remote-helpers-markup-fix later to maint).
11c821f2 323 (merge e1aaf309db pb/ci-win-artifact-names-fix later to maint).
c75fd8d8
JH
324 (merge ad538c61da jc/index-pack-fsck-levels later to maint).
325 (merge 67471bc704 ja/doc-formatting-fix later to maint).
326 (merge 86f9ce7dd6 bl/doc-config-fixes later to maint).
7774cfed
JH
327 (merge 0d527842b7 az/grep-group-error-message-update later to maint).
328 (merge 7c43bdf07b rs/strbuf-expand-bad-format later to maint).