Merge branch 'dc/complete-restore'
[alt-git.git] / Documentation / RelNotes / 2.36.0.txt
blobf1449eb9266d6f1ed25b80da8d05c186941117b6
1 Git 2.36 Release Notes
2 ======================
4 Updates since Git 2.35
5 ----------------------
7 Backward compatibility warts
9  * "git name-rev --stdin" has been deprecated and issues a warning
10    when used; use "git name-rev --annotate-stdin" instead.
12  * "git clone --filter=... --recurse-submodules" only makes the
13    top-level a partial clone, while submodules are fully cloned.  This
14    behaviour is changed to pass the same filter down to the submodules.
17 Note to those who build from the source
19  * Since Git 2.31, our source assumed that the compiler you use to
20    build Git supports variadic macros, with an easy-to-use escape
21    hatch to allow compilation without variadic macros with an request
22    to report that you had to use the escape hatch to the list.
23    Because we haven't heard from anybody who actually needed to use
24    the escape hatch, it has been removed, making support of variadic
25    macros a hard requirement.
28 UI, Workflows & Features
30  * Assorted updates to "git cat-file", especially "-h".
32  * The command line completion (in contrib/) learns to complete
33    arguments to give to "git sparse-checkout" command.
35  * "git log --remerge-diff" shows the difference from mechanical merge
36    result and the result that is actually recorded in a merge commit.
38  * "git log" and friends learned an option --exclude-first-parent-only
39    to propagate UNINTERESTING bit down only along the first-parent
40    chain, just like --first-parent option shows commits that lack the
41    UNINTERESTING bit only along the first-parent chain.
43  * The command line completion script (in contrib/) learned to
44    complete all Git subcommands, including the ones that are normally
45    hidden, when GIT_COMPLETION_SHOW_ALL_COMMANDS is used.
47  * "git branch" learned the "--recurse-submodules" option.
49  * A not-so-common mistake is to write a script to feed "git bisect
50    run" without making it executable, in which case all tests will
51    exit with 126 or 127 error codes, even on revisions that are marked
52    as good.  Try to recognize this situation and stop iteration early.
54  * When "index-pack" dies due to incoming data exceeding the maximum
55    allowed input size, include the value of the limit in the error
56    message.
58  * The error message given by "git switch HEAD~4" has been clarified
59    to suggest the "--detach" option that is required.
61  * In sparse-checkouts, files mis-marked as missing from the working tree
62    could lead to later problems.  Such files were hard to discover, and
63    harder to correct.  Automatically detecting and correcting the marking
64    of such files has been added to avoid these problems.
66  * "git cat-file" learns "--batch-command" mode, which is a more
67    flexible interface than the existing "--batch" or "--batch-check"
68    modes, to allow different kinds of inquiries made.
70  * The level of verbose output from the ort backend during inner merge
71    has been aligned to that of the recursive backend.
73  * "git remote rename A B", depending on the number of remote-tracking
74    refs involved, takes long time renaming them.  The command has been
75    taught to show progress bar while making the user wait.
77  * Bundle file format gets extended to allow a partial bundle,
78    filtered by similar criteria you would give when making a
79    partial/lazy clone.
82 Performance, Internal Implementation, Development Support etc.
84  * "git apply" (ab)used the util pointer of the string-list to keep
85    track of how each symbolic link needs to be handled, which has been
86    simplified by using strset.
88  * Fix a hand-rolled alloca() imitation that may have violated
89    alignment requirement of data being sorted in compatibility
90    implementation of qsort_s() and stable qsort().
92  * Use the parse-options API in "git reflog" command.
94  * The conditional inclusion mechanism of configuration files using
95    "[includeIf <condition>]" learns to base its decision on the
96    URL of the remote repository the repository interacts with.
97    (merge 399b198489 jt/conditional-config-on-remote-url later to maint).
99  * "git name-rev --stdin" does not behave like usual "--stdin" at
100    all.  Start the process of renaming it to "--annotate-stdin".
101    (merge a2585719b3 jc/name-rev-stdin later to maint).
103  * "git update-index", "git checkout-index", and "git clean" are
104    taught to work better with the sparse checkout feature.
106  * Use an internal call to reset_head() helper function instead of
107    spawning "git checkout" in "rebase", and update code paths that are
108    involved in the change.
110  * Messages "ort" merge backend prepares while dealing with conflicted
111    paths were unnecessarily confusing since it did not differentiate
112    inner merges and outer merges.
114  * Small modernization of the rerere-train script (in contrib/).
116  * Use designated initializers we started using in mid 2017 in more
117    parts of the codebase that are relatively quiescent.
119  * Improve failure case behaviour of xdiff library when memory
120    allocation fails.
122  * General clean-up in reftable implementation, including
123    clarification of the API documentation, tightening the code to
124    honor documented length limit, etc.
126  * Remove the escape hatch we added when we introduced the weather
127    balloon to use variadic macros unconditionally, to make it official
128    that we now have a hard dependency on the feature.
130  * Makefile refactoring with a bit of suffixes rule stripping to
131    optimize the runtime overhead.
133  * "git stash drop" is reimplemented as an internal call to
134    reflog_delete() function, instead of invoking "git reflog delete"
135    via run_command() API.
137  * Count string_list items in size_t, not "unsigned int".
139  * The single-key interactive operation used by "git add -p" has been
140    made more robust.
142  * Remove unneeded <meta http-equiv=content-type...> from gitweb
143    output.
146 Fixes since v2.35
147 -----------------
149  * "rebase" and "stash" in secondary worktrees are broken in
150    Git 2.35.0, which has been corrected.
152  * "git pull --rebase" ignored the rebase.autostash configuration
153    variable when the remote history is a descendant of our history,
154    which has been corrected.
155    (merge 3013d98d7a pb/pull-rebase-autostash-fix later to maint).
157  * "git update-index --refresh" has been taught to deal better with
158    racy timestamps (just like "git status" already does).
159    (merge 2ede073fd2 ms/update-index-racy later to maint).
161  * Avoid tests that are run under GIT_TRACE2 set from failing
162    unnecessarily.
163    (merge 944d808e42 js/test-unset-trace2-parents later to maint).
165  * The merge-ort misbehaved when merge.renameLimit configuration is
166    set too low and failed to find all renames.
167    (merge 9ae39fef7f en/merge-ort-restart-optim-fix later to maint).
169  * We explain that revs come first before the pathspec among command
170    line arguments, but did not spell out that dashed options come
171    before other args, which has been corrected.
172    (merge c11f95010c tl/doc-cli-options-first later to maint).
174  * "git add -p" rewritten in C regressed hunk splitting in some cases,
175    which has been corrected.
176    (merge 7008ddc645 pw/add-p-hunk-split-fix later to maint).
178  * "git fetch --negotiate-only" is an internal command used by "git
179    push" to figure out which part of our history is missing from the
180    other side.  It should never recurse into submodules even when
181    fetch.recursesubmodules configuration variable is set, nor it
182    should trigger "gc".  The code has been tightened up to ensure it
183    only does common ancestry discovery and nothing else.
184    (merge de4eaae63a gc/fetch-negotiate-only-early-return later to maint).
186  * The code path that verifies signatures made with ssh were made to
187    work better on a system with CRLF line endings.
188    (merge caeef01ea7 fs/ssh-signing-crlf later to maint).
190  * "git sparse-checkout init" failed to write into $GIT_DIR/info
191    directory when the repository was created without one, which has
192    been corrected to auto-create it.
193    (merge 7f44842ac1 jt/sparse-checkout-leading-dir-fix later to maint).
195  * Cloning from a repository that does not yet have any branches or
196    tags but has other refs resulted in a "remote transport reported
197    error", which has been corrected.
198    (merge dccea605b6 jt/clone-not-quite-empty later to maint).
200  * Mark in various places in the code that the sparse index and the
201    split index features are mutually incompatible.
202    (merge 451b66c533 js/sparse-vs-split-index later to maint).
204  * Update the logic to compute alignment requirement for our mem-pool.
205    (merge e38bcc66d8 jc/mem-pool-alignment later to maint).
207  * Pick a better random number generator and use it when we prepare
208    temporary filenames.
209    (merge 47efda967c bc/csprng-mktemps later to maint).
211  * Update the contributor-facing documents on proposed log messages.
212    (merge cdba0295b0 jc/doc-log-messages later to maint).
214  * When "git fetch --prune" failed to prune the refs it wanted to
215    prune, the command issued error messages but exited with exit
216    status 0, which has been corrected.
217    (merge c9e04d905e tg/fetch-prune-exit-code-fix later to maint).
219  * Problems identified by Coverity in the reftable code have been
220    corrected.
221    (merge 01033de49f hn/reftable-coverity-fixes later to maint).
223  * A bug that made multi-pack bitmap and the object order out-of-sync,
224    making the .midx data corrupt, has been fixed.
225    (merge f8b60cf99b tb/midx-bitmap-corruption-fix later to maint).
227  * The build procedure has been taught to notice older version of zlib
228    and enable our replacement uncompress2() automatically.
229    (merge 07564773c2 ab/auto-detect-zlib-compress2 later to maint).
231  * Interaction between fetch.negotiationAlgorithm and
232    feature.experimental configuration variables has been corrected.
233    (merge 714edc620c en/fetch-negotiation-default-fix later to maint).
235  * "git diff --diff-filter=aR" is now parsed correctly.
236    (merge 75408ca949 js/diff-filter-negation-fix later to maint).
238  * When "git subtree" wants to create a merge, it used "git merge" and
239    let it be affected by end-user's "merge.ff" configuration, which
240    has been corrected.
241    (merge 9158a3564a tk/subtree-merge-not-ff-only later to maint).
243  * Unlike "git apply", "git patch-id" did not handle patches with
244    hunks that has only 1 line in either preimage or postimage, which
245    has been corrected.
246    (merge 757e75c81e jz/patch-id-hunk-header-parsing-fix later to maint).
248  * "receive-pack" checks if it will do any ref updates (various
249    conditions could reject a push) before received objects are taken
250    out of the temporary directory used for quarantine purposes, so
251    that a push that is known-to-fail will not leave crufts that a
252    future "gc" needs to clean up.
253    (merge 5407764069 cb/clear-quarantine-early-on-all-ref-update-errors later to maint).
255  * Because a deletion of ref would need to remove it from both the
256    loose ref store and the packed ref store, a delete-ref operation
257    that logically removes one ref may end up invoking ref-transaction
258    hook twice, which has been corrected.
259    (merge 2ed1b64ebd ps/avoid-unnecessary-hook-invocation-with-packed-refs later to maint).
261  * When there is no object to write .bitmap file for, "git
262    multi-pack-index" triggered an error, instead of just skipping,
263    which has been corrected.
264    (merge eb57277ba3 tb/midx-no-bitmap-for-no-objects later to maint).
266  * "git cmd -h" outside a repository should error out cleanly for many
267    commands, but instead it hit a BUG(), which has been corrected.
268    (merge 87ad07d735 js/short-help-outside-repo-fix later to maint).
270  * "working tree" and "per-worktree ref" were in glossary, but
271    "worktree" itself wasn't, which has been corrected.
272    (merge 2df5387ed0 jc/glossary-worktree later to maint).
274  * L10n support for a few error messages.
275    (merge 3d3c23b3a7 bs/forbid-i18n-of-protocol-token-in-fetch-pack later to maint).
277  * Test modernization.
278    (merge d4fe066e4b sy/t0001-use-path-is-helper later to maint).
280  * "git log --graph --graph" used to leak a graph structure, and there
281    was no way to countermand "--graph" that appear earlier on the
282    command line.  A "--no-graph" option has been added and resource
283    leakage has been plugged.
285  * Error output given in response to an ambiguous object name has been
286    improved.
287    (merge 3a73c1dfaf ab/ambiguous-object-name later to maint).
289  * "git sparse-checkout" wants to work with per-worktree configuration,
290    but did not work well in a worktree attached to a bare repository.
291    (merge 3ce1138272 ds/sparse-checkout-requires-per-worktree-config later to maint).
293  * Setting core.untrackedCache to true failed to add the untracked
294    cache extension to the index.
296  * Workaround we have for versions of PCRE2 before their version 10.36
297    were in effect only for their versions newer than 10.36 by mistake,
298    which has been corrected.
299    (merge 97169fc361 rs/pcre-invalid-utf8-fix-fix later to maint).
301  * Document Taylor as a new member of Git PLC at SFC.  Welcome.
302    (merge e8d56ca863 tb/coc-plc-update later to maint).
304  * "git checkout -b branch/with/multi/level/name && git stash" only
305    recorded the last level component of the branch name, which has
306    been corrected.
308  * "git fetch" can make two separate fetches, but ref updates coming
309    from them were in two separate ref transactions under "--atomic",
310    which has been corrected.
312  * Check the return value from parse_tree_indirect() to turn segfaults
313    into calls to die().
314    (merge 8d2eaf649a gc/parse-tree-indirect-errors later to maint).
316  * Newer version of GPGSM changed its output in a backward
317    incompatible way to break our code that parses its output.  It also
318    added more processes our tests need to kill when cleaning up.
319    Adjustments have been made to accommodate these changes.
320    (merge b0b70d54c4 fs/gpgsm-update later to maint).
322  * The untracked cache newly computed weren't written back to the
323    on-disk index file when there is no other change to the index,
324    which has been corrected.
326  * "git config -h" did not describe the "--type" option correctly.
327    (merge 5445124fad mf/fix-type-in-config-h later to maint).
329  * The way generation number v2 in the commit-graph files are
330    (not) handled has been corrected.
331    (merge 6dbf4b8172 ds/commit-graph-gen-v2-fixes later to maint).
333  * The method to trigger malloc check used in our tests no longer work
334    with newer versions of glibc.
335    (merge baedc59543 ep/test-malloc-check-with-glibc-2.34 later to maint).
337  * Other code cleanup, docfix, build fix, etc.
338    (merge cfc5cf428b jc/find-header later to maint).
339    (merge 40e7cfdd46 jh/p4-fix-use-of-process-error-exception later to maint).
340    (merge 727e6ea350 jh/p4-spawning-external-commands-cleanup later to maint).
341    (merge 0a6adc26e2 rs/grep-expr-cleanup later to maint).
342    (merge 4ed7dfa713 po/readme-mention-contributor-hints later to maint).
343    (merge 6046f7a91c en/plug-leaks-in-merge later to maint).
344    (merge 8c591dbfce bc/clarify-eol-attr later to maint).
345    (merge 518e15db74 rs/parse-options-lithelp-help later to maint).
346    (merge cbac0076ef gh/doc-typos later to maint).
347    (merge ce14de03db ab/no-errno-from-resolve-ref-unsafe later to maint).
348    (merge 2826ffad8c rc/negotiate-only-typofix later to maint).
349    (merge 0f03f04c5c en/sparse-checkout-leakfix later to maint).
350    (merge 74f3390dde sy/diff-usage-typofix later to maint).
351    (merge 45d0212a71 ll/doc-mktree-typofix later to maint).
352    (merge e9b272e4c1 js/no-more-legacy-stash later to maint).
353    (merge 6798b08e84 ab/do-not-hide-failures-in-git-dot-pm later to maint).
354    (merge 9325285df4 po/doc-check-ignore-markup-fix later to maint).
355    (merge cd26cd6c7c sy/modernize-t-lib-read-tree-m-3way later to maint).
356    (merge d17294a05e ab/hash-object-leakfix later to maint).
357    (merge b8403129d3 jd/t0015-modernize later to maint).
358    (merge 332acc248d ds/mailmap later to maint).
359    (merge 04bf052eef ab/grep-patterntype later to maint).
360    (merge 6ee36364eb ab/diff-free-more later to maint).
361    (merge 63a36017fe nj/read-tree-doc-reffix later to maint).
362    (merge eed36fce38 sm/no-git-in-upstream-of-pipe-in-tests later to maint).