reftable/block: reuse `zstream` state on inflation
[alt-git.git] / Documentation / RelNotes / 2.45.0.txt
blob1be72e2e5cae2d194212841579778803569ca04e
1 Git v2.45 Release Notes
2 =======================
4 Backward Compatibility Notes
6 UI, Workflows & Features
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.
12  * "git checkout -p" and friends learned that that "@" is a synonym
13    for "HEAD".
15  * Variants of vimdiff learned to honor mergetool.<variant>.layout
16    settings.
18  * "git reflog" learned a "list" subcommand that enumerates known reflogs.
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.
24  * "git for-each-ref" learned "--include-root-refs" option to show
25    even the stuff outside the 'refs/' hierarchy.
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.
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.
34  * "git log --merge" learned to pay attention to CHERRY_PICK_HEAD and
35    other kinds of *_HEAD pseudorefs.
37  * Platform specific tweaks for OS/390 has been added to
38    config.mak.uname.
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.
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".
48  * "git diff" and friends learned two extra configuration variables,
49    diff.srcPrefix and diff.dstPrefix.
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".
57  * Remove an ancient and not well maintained Hg-to-git migration
58    script from contrib/.
60  * Hints that suggest what to do after resolving conflicts can now be
61    squelched by disabling advice.mergeConflict.
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.
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.
73  * core.commentChar used to be limited to a single byte, but has been
74    updated to allow an arbitrary multi-byte sequence.
76  * "git add -p" and other "interactive hunk selection" UI has learned to
77    skip showing the hunk immediately after it has already been shown, and
78    an additional action to explicitly ask to reshow the current hunk.
80  * "git pack-refs" learned the "--auto" option, which is a useful
81    addition to be triggered from "git gc --auto".
83 Performance, Internal Implementation, Development Support etc.
85  * The code to iterate over refs with the reftable backend has seen
86    some optimization.
88  * More tests that are marked as "ref-files only" have been updated to
89    improve test coverage of reftable backend.
91  * Some parts of command line completion script (in contrib/) have
92    been micro-optimized.
94  * The way placeholders are to be marked-up in documentation have been
95    specified; use "_<placeholder>_" to typeset the word inside a pair
96    of <angle-brakets> emphasized.
98  * "git --no-lazy-fetch cmd" allows to run "cmd" while disabling lazy
99    fetching of objects from the promisor remote, which may be handy
100    for debugging.
102  * The implementation in "git clean" that makes "-n" and "-i" ignore
103    clean.requireForce has been simplified, together with the
104    documentation.
106  * The code to iterate over refs with the reftable backend has seen
107    some optimization.
109  * Uses of xwrite() helper have been audited and updated for better
110    error checking and simpler code.
112  * Some trace2 events that lacked def_param have learned to show it,
113    enriching the output.
115  * The parse-options code that deals with abbreviated long option
116    names have been cleaned up.
118  * The code in reftable backend that creates new table files works
119    better with the tempfile framework to avoid leaving cruft after a
120    failure.
122  * The reftable code has its own custom binary search function whose
123    comparison callback has an unusual interface, which caused the
124    binary search to degenerate into a linear search, which has been
125    corrected.
127  * The code to iterate over reflogs in the reftable has been optimized
128    to reduce memory allocation and deallocation.
130  * Work to support a repository that work with both SHA-1 and SHA-256
131    hash algorithms has started.
133  * A new fuzz target that exercises config parsing code has been
134    added.
136  * Fix the way recently added tests interpolate variables defined
137    outside them, and document the best practice to help future
138    developers.
140  * Introduce an experimental protocol for contributors to propose the
141    topic description to be used in the "What's cooking" report, the
142    merge commit message for the topic, and in the release notes and
143    document it in the SubmittingPatches document.
145  * The t/README file now gives a hint on running individual tests in
146    the "t/" directory with "make t<num>-*.sh t<num>-*.sh".
147    (merge 8d383806fc pb/test-scripts-are-build-targets later to maint).
149  * The "hint:" messages given by the advice mechanism, when given a
150    message with a blank line, left a line with trailing whitespace,
151    which has been cleansed.
153  * Documentation rules has been explicitly described how to mark-up
154    literal parts and a few manual pages have been updated as examples.
156  * The .editorconfig file has been taught that a Makefile uses HT
157    indentation.
159  * t-prio-queue test has been cleaned up by using C99 compound
160    literals; this is meant to also serve as a weather-balloon to smoke
161    out folks with compilers who have trouble compiling code that uses
162    the feature.
165 Fixes since v2.44
166 -----------------
168  * "git apply" on a filesystem without filemode support have learned
169    to take a hint from what is in the index for the path, even when
170    not working with the "--index" or "--cached" option, when checking
171    the executable bit match what is required by the preimage in the
172    patch.
173    (merge 45b625142d cp/apply-core-filemode later to maint).
175  * "git column" has been taught to reject negative padding value, as
176    it would lead to nonsense behaviour including division by zero.
177    (merge 76fb807faa kh/column-reject-negative-padding later to maint).
179  * "git am --help" now tells readers what actions are available in
180    "git am --whitespace=<action>", in addition to saying that the
181    option is passed through to the underlying "git apply".
182    (merge a171dac734 jc/am-whitespace-doc later to maint).
184  * "git tag --column" failed to check the exit status of its "git
185    column" invocation, which has been corrected.
186    (merge 92e66478fc rj/tag-column-fix later to maint).
188  * Credential helper based on libsecret (in contrib/) has been updated
189    to handle an empty password correctly.
190    (merge 8f1f2023b7 mh/libsecret-empty-password-fix later to maint).
192  * "git difftool --dir-diff" learned to honor the "--trust-exit-code"
193    option; it used to always exit with 0 and signalled success.
194    (merge eb84c8b6ce ps/difftool-dir-diff-exit-code later to maint).
196  * The code incorrectly attempted to use textconv cache when asked,
197    even when we are not running in a repository, which has been
198    corrected.
199    (merge affe355fe7 jk/textconv-cache-outside-repo-fix later to maint).
201  * Remove an empty file that shouldn't have been added in the first
202    place.
203    (merge 4f66942215 js/remove-cruft-files later to maint).
205  * The logic to access reflog entries by date and number had ugly
206    corner cases at the boundaries, which have been cleaned up.
207    (merge 5edd126720 jk/reflog-special-cases-fix later to maint).
209  * An error message from "git upload-pack", which responds to "git
210    fetch" requests, had a trialing NUL in it, which has been
211    corrected.
212    (merge 3f4c7a0805 sg/upload-pack-error-message-fix later to maint).
214  * Clarify wording in the CodingGuidelines that requires <git-compat-util.h>
215    to be the first header file.
216    (merge 4e89f0e07c jc/doc-compat-util later to maint).
218  * "git commit -v --cleanup=scissors" used to add the scissors line
219    twice in the log message buffer, which has been corrected.
220    (merge e90cc075cc jt/commit-redundant-scissors-fix later to maint).
222  * A custom remote helper no longer cannot access the newly created
223    repository during "git clone", which is a regression in Git 2.44.
224    This has been corrected.
225    (merge 199f44cb2e ps/remote-helper-repo-initialization-fix later to maint).
227  * Various parts of upload-pack has been updated to bound the resource
228    consumption relative to the size of the repository to protect from
229    abusive clients.
230    (merge 6cd05e768b jk/upload-pack-bounded-resources later to maint).
232  * The upload-pack program, when talking over v2, accepted the
233    packfile-uris protocol extension from the client, even if it did
234    not advertise the capability, which has been corrected.
235    (merge a922bfa3b5 jk/upload-pack-v2-capability-cleanup later to maint).
237  * Make sure failure return from merge_bases_many() is properly caught.
238    (merge 25fd20eb44 js/merge-base-with-missing-commit later to maint).
240  * FSMonitor client code was confused when FSEvents were given in a
241    different case on a case-insensitive filesystem, which has been
242    corrected.
243    (merge 29c139ce78 jh/fsmonitor-icase-corner-case-fix later to maint).
245  * The "core.commentChar" configuration variable only allows an ASCII
246    character, which was not clearly documented, which has been
247    corrected.
248    (merge fb7c556f58 kh/doc-commentchar-is-a-byte later to maint).
250  * With release 2.44 we got rid of all uses of test_i18ngrep and there
251    is no in-flight topic that adds a new use of it.  Make a call to
252    test_i18ngrep a hard failure, so that we can remove it at the end
253    of this release cycle.
254    (merge 381a83dfa3 jc/test-i18ngrep later to maint).
256  * The command line completion script (in contrib/) learned to
257    complete "git reflog" better.
258    (merge 1284f9cc11 rj/complete-reflog later to maint).
260  * The logic to complete the command line arguments to "git worktree"
261    subcommand (in contrib/) has been updated to correctly honor things
262    like "git -C dir" etc.
263    (merge 3574816d98 rj/complete-worktree-paths-fix later to maint).
265  * When git refuses to create a branch because the proposed branch
266    name is not a valid refname, an advice message is given to refer
267    the user to exact naming rules.
268    (merge 8fbd903e58 kh/branch-ref-syntax-advice later to maint).
270  * Code simplification by getting rid of code that sets an environment
271    variable that is no longer used.
272    (merge 72a8d3f027 pw/rebase-i-ignore-cherry-pick-help-environment later to maint).
274  * The code to find the effective end of log message can fall into an
275    endless loop, which has been corrected.
276    (merge 2541cba2d6 fs/find-end-of-log-message-fix later to maint).
278  * Mark-ups used in the documentation has been improved for
279    consistency.
280    (merge 45d5ed3e50 ja/doc-markup-fixes later to maint).
282  * The status.showUntrackedFiles configuration variable was
283    incorrectly documented to accept "false", which has been corrected.
285  * Leaks from "git restore" have been plugged.
286    (merge 2f64da0790 rj/restore-plug-leaks later to maint).
288  * "git bugreport --no-suffix" was not supported and instead
289    segfaulted, which has been corrected.
290    (merge b3b57c69da js/bugreport-no-suffix-fix later to maint).
292  * The documentation for "%(trailers[:options])" placeholder in the
293    "--pretty" option of commands in the "git log" family has been
294    updated.
295    (merge bff85a338c bl/doc-key-val-sep-fix later to maint).
297  * "git checkout --conflict=bad" reported a bad conflictStyle as if it
298    were given to a configuration variable; it has been corrected to
299    report that the command line option is bad.
300    (merge 5a99c1ac1a pw/checkout-conflict-errorfix later to maint).
302  * Code clean-up in the "git log" machinery that implements custom log
303    message formatting.
304    (merge 1c10b8e5b0 jk/pretty-subject-cleanup later to maint).
306  * "git config" corrupted literal HT characters written in the
307    configuration file as part of a value, which has been corrected.
308    (merge e6895c3f97 ds/config-internal-whitespace-fix later to maint).
310  * A unit test for reftable code tried to enumerate all files in a
311    directory after reftable operations and expected to see nothing but
312    the files it wanted to leave there, but was fooled by .nfs* cruft
313    files left, which has been corrected.
314    (merge 0068aa7946 ps/reftable-unit-test-nfs-workaround later to maint).
316  * The implementation and documentation of "object-format" option
317    exchange between the Git itself and its remote helpers did not
318    quite match, which has been corrected.
320  * The "--pretty=<shortHand>" option of the commands in the "git log"
321    family, defined as "[pretty] shortHand = <expansion>" should have
322    been looked up case insensitively, but was not, which has been
323    corrected.
324    (merge f999d5188b bl/pretty-shorthand-config-fix later to maint).
326  * "git apply" failed to extract the filename the patch applied to,
327    when the change was about an empty file created in or deleted from
328    a directory whose name ends with a SP, which has been corrected.
329    (merge 776ffd1a30 jc/apply-parse-diff-git-header-names-fix later to maint).
331  * Update a more recent tutorial doc.
332    (merge 95ab557b4b dg/myfirstobjectwalk-updates later to maint).
334  * The test script had an incomplete and ineffective attempt to avoid
335    clobbering the testing user's real crontab (and its equivalents),
336    which has been completed.
337    (merge 73cb87773b es/test-cron-safety later to maint).
339  * Use advice_if_enabled() API to rewrite a simple pattern to
340    call advise() after checking advice_enabled().
341    (merge 6412d01527 rj/use-adv-if-enabled later to maint).
343  * Another "set -u" fix for the bash prompt (in contrib/) script.
344    (merge d7805bc743 vs/complete-with-set-u-fix later to maint).
346  * "git checkout/switch --detach foo", after switching to the detached
347    HEAD state, gave the tracking information for the 'foo' branch,
348    which was pointless.
350  * Other code cleanup, docfix, build fix, etc.
351    (merge f0e578c69c rs/use-xstrncmpz later to maint).
352    (merge 83e6eb7d7a ba/credential-test-clean-fix later to maint).
353    (merge 64562d784d jb/doc-interactive-singlekey-do-not-need-perl later to maint).
354    (merge c431a235e2 cp/t9146-use-test-path-helpers later to maint).
355    (merge 82d75402d5 ds/doc-send-email-capitalization later to maint).
356    (merge 41bff66e35 jc/doc-add-placeholder-fix later to maint).
357    (merge 6835f0efe9 jw/remote-doc-typofix later to maint).
358    (merge 244001aa20 hs/rebase-not-in-progress later to maint).
359    (merge 2ca6c07db2 jc/no-include-of-compat-util-from-headers later to maint).
360    (merge 87bd7fbb9c rs/fetch-simplify-with-starts-with later to maint).
361    (merge f39addd0d9 rs/name-rev-with-mempool later to maint).
362    (merge 9a97b43e03 rs/submodule-prefix-simplify later to maint).
363    (merge 40b8076462 ak/rebase-autosquash later to maint).
364    (merge 3223204456 eg/add-uflags later to maint).
365    (merge 5f78d52dce es/config-doc-sort-sections later to maint).
366    (merge 781fb7b4c2 as/option-names-in-messages later to maint).
367    (merge 51d41dc243 jk/doc-remote-helpers-markup-fix later to maint).
368    (merge e1aaf309db pb/ci-win-artifact-names-fix later to maint).
369    (merge ad538c61da jc/index-pack-fsck-levels later to maint).
370    (merge 67471bc704 ja/doc-formatting-fix later to maint).
371    (merge 86f9ce7dd6 bl/doc-config-fixes later to maint).
372    (merge 0d527842b7 az/grep-group-error-message-update later to maint).
373    (merge 7c43bdf07b rs/strbuf-expand-bad-format later to maint).
374    (merge 8b68b48d5c ds/typofix-core-config-doc later to maint).
375    (merge 39bb692152 rs/imap-send-use-xsnprintf later to maint).