Merge branch 'pw/patience-diff-clean-up'
[git] / Documentation / RelNotes / 2.32.0.txt
1 Git 2.32 Release Notes
2 ======================
3
4 Backward compatibility notes
5 ----------------------------
6
7  * ".gitattributes", ".gitignore", and ".mailmap" files that are
8    symbolic links are ignored.
9
10  * "git apply --3way" used to first attempt a straight application,
11    and only fell back to the 3-way merge algorithm when the stright
12    application failed.  Starting with this version, the command will
13    first try the 3-way merge algorithm and only when it fails (either
14    resulting with conflict or the base versions of blobs are missing),
15    falls back to the usual patch application.
16
17
18 Updates since v2.31
19 -------------------
20
21 UI, Workflows & Features
22
23  * It does not make sense to make ".gitattributes", ".gitignore" and
24    ".mailmap" symlinks, as they are supposed to be usable from the
25    object store (think: bare repositories where HEAD:.mailmap etc. are
26    used).  When these files are symbolic links, we used to read the
27    contents of the files pointed by them by mistake, which has been
28    corrected.
29
30  * "git stash show" learned to optionally show untracked part of the
31    stash.
32
33  * "git log --format='...'" learned "%(describe)" placeholder.
34
35  * "git repack" so far has been only capable of repacking everything
36    under the sun into a single pack (or split by size).  A cleverer
37    strategy to reduce the cost of repacking a repository has been
38    introduced.
39
40  * The http codepath learned to let the credential layer to cache the
41    password used to unlock a certificate that has successfully been
42    used.
43
44  * "git commit --fixup=<commit>", which was to tweak the changes made
45    to the contents while keeping the original log message intact,
46    learned "--fixup=(amend|reword):<commit>", that can be used to
47    tweak both the message and the contents, and only the message,
48    respectively.
49
50  * When accessing a server with a URL like https://user:pass@site/, we
51    did not to fall back to the basic authentication with the
52    credential material embedded in the URL after the "Negotiate"
53    authentication failed.  Now we do.
54
55  * "git send-email" learned to honor the core.hooksPath configuration.
56
57  * "git format-patch -v<n>" learned to allow a reroll count that is
58    not an integer.
59
60  * "git commit" learned "--trailer <key>[=<value>]" option; together
61    with the interpret-trailers command, this will make it easier to
62    support custom trailers.
63
64  * "git clone --reject-shallow" option fails the clone as soon as we
65    notice that we are cloning from a shallow repository.
66
67  * A configuration variable has been added to force tips of certain
68    refs to be given a reachability bitmap.
69
70  * "gitweb" learned "e-mail privacy" feature to redact strings that
71    look like e-mail addresses on various pages.
72
73  * "git apply --3way" has always been "to fall back to 3-way merge
74    only when straight application fails". Swap the order of falling
75    back so that 3-way is always attempted first (only when the option
76    is given, of course) and then straight patch application is used as
77    a fallback when it fails.
78
79  * "git apply" now takes "--3way" and "--cached" at the same time, and
80    work and record results only in the index.
81
82  * The command line completion (in contrib/) has learned that
83    CHERRY_PICK_HEAD is a possible pseudo-ref.
84
85  * Userdiff patterns for "Scheme" has been added.
86
87  * "git log" learned "--diff-merges=<style>" option, with an
88    associated configuration variable log.diffMerges.
89
90  * "git log --format=..." placeholders learned %ah/%ch placeholders to
91    request the --date=human output.
92
93  * Replace GIT_CONFIG_NOSYSTEM mechanism to decline from reading the
94    system-wide configuration file with GIT_CONFIG_SYSTEM that lets
95    users specify from which file to read the system-wide configuration
96    (setting it to an empty file would essentially be the same as
97    setting NOSYSTEM), and introduce GIT_CONFIG_GLOBAL to override the
98    per-user configuration in $HOME/.gitconfig.
99
100  * "git add" and "git rm" learned not to touch those paths that are
101    outside of sparse checkout.
102
103  * "git rev-list" learns the "--filter=object:type=<type>" option,
104    which can be used to exclude objects of the given kind from the
105    packfile generated by pack-objects.
106
107  * The command line completion (in contrib/) for "git stash" has been
108    updated.
109
110  * "git subtree" updates.
111
112  * It is now documented that "format-patch" skips merges.
113
114  * Options to "git pack-objects" that take numeric values like
115    --window and --depth should not accept negative values; the input
116    validation has been tightened.
117
118  * The way the command line specified by the trailer.<token>.command
119    configuration variable receives the end-user supplied value was
120    both error prone and misleading.  An alternative to achieve the
121    same goal in a safer and more intuitive way has been added, as
122    the trailer.<token>.cmd configuration variable, to replace it.
123
124
125 Performance, Internal Implementation, Development Support etc.
126
127  * Rename detection rework continues.
128
129  * GIT_TEST_FAIL_PREREQS is a mechanism to skip test pieces with
130    prerequisites to catch broken tests that depend on the side effects
131    of optional pieces, but did not work at all when negative
132    prerequisites were involved.
133    (merge 27d578d904 jk/fail-prereq-testfix later to maint).
134
135  * "git diff-index" codepath has been taught to trust fsmonitor status
136    to reduce number of lstat() calls.
137    (merge 7e5aa13d2c nk/diff-index-fsmonitor later to maint).
138
139  * Reorganize Makefile to allow building git.o and other essential
140    objects without extra stuff needed only for testing.
141
142  * Preparatory API changes for parallel checkout.
143
144  * A simple IPC interface gets introduced to build services like
145    fsmonitor on top.
146
147  * Fsck API clean-up.
148
149  * SECURITY.md that is facing individual contributors and end users
150    has been introduced.  Also a procedure to follow when preparing
151    embargoed releases has been spelled out.
152    (merge 09420b7648 js/security-md later to maint).
153
154  * Optimize "rev-list --use-bitmap-index --objects" corner case that
155    uses negative tags as the stopping points.
156
157  * CMake update for vsbuild.
158
159  * An on-disk reverse-index to map the in-pack location of an object
160    back to its object name across multiple packfiles is introduced.
161
162  * Generate [ec]tags under $(QUIET_GEN).
163
164  * Clean-up codepaths that implements "git send-email --validate"
165    option and improves the message from it.
166
167  * The last remnant of gettext-poison has been removed.
168
169  * The test framework has been taught to optionally turn the default
170    merge strategy to "ort" throughout the system where we use
171    three-way merges internally, like cherry-pick, rebase etc.,
172    primarily to enhance its test coverage (the strategy has been
173    available as an explicit "-s ort" choice).
174
175  * A bit of code clean-up and a lot of test clean-up around userdiff
176    area.
177
178  * Handling of "promisor packs" that allows certain objects to be
179    missing and lazily retrievable has been optimized (a bit).
180
181  * When packet_write() fails, we gave an extra error message
182    unnecessarily, which has been corrected.
183
184  * The checkout machinery has been taught to perform the actual
185    write-out of the files in parallel when able.
186
187  * Show errno in the trace output in the error codepath that calls
188    read_raw_ref method.
189
190  * Effort to make the command line completion (in contrib/) safe with
191    "set -u" continues.
192
193  * Tweak a few tests for "log --format=..." that show timestamps in
194    various formats.
195
196  * The reflog expiry machinery has been taught to emit trace events.
197
198
199 Fixes since v2.31
200 -----------------
201
202  * The fsmonitor interface read from its input without making sure
203    there is something to read from.  This bug is new in 2.31
204    timeframe.
205
206  * The data structure used by fsmonitor interface was not properly
207    duplicated during an in-core merge, leading to use-after-free etc.
208
209  * "git bisect" reimplemented more in C during 2.30 timeframe did not
210    take an annotated tag as a good/bad endpoint well.  This regression
211    has been corrected.
212
213  * Fix macros that can silently inject unintended null-statements.
214
215  * CALLOC_ARRAY() macro replaces many uses of xcalloc().
216
217  * Update insn in Makefile comments to run fuzz-all target.
218
219  * Fix a corner case bug in "git mv" on case insensitive systems,
220    which was introduced in 2.29 timeframe.
221
222  * We had a code to diagnose and die cleanly when a required
223    clean/smudge filter is missing, but an assert before that
224    unnecessarily fired, hiding the end-user facing die() message.
225    (merge 6fab35f748 mt/cleanly-die-upon-missing-required-filter later to maint).
226
227  * Update C code that sets a few configuration variables when a remote
228    is configured so that it spells configuration variable names in the
229    canonical camelCase.
230    (merge 0f1da600e6 ab/remote-write-config-in-camel-case later to maint).
231
232  * A new configuration variable has been introduced to allow choosing
233    which version of the generation number gets used in the
234    commit-graph file.
235    (merge 702110aac6 ds/commit-graph-generation-config later to maint).
236
237  * Perf test update to work better in secondary worktrees.
238    (merge 36e834abc1 jk/perf-in-worktrees later to maint).
239
240  * Updates to memory allocation code around the use of pcre2 library.
241    (merge c1760352e0 ab/grep-pcre2-allocfix later to maint).
242
243  * "git -c core.bare=false clone --bare ..." would have segfaulted,
244    which has been corrected.
245    (merge 75555676ad bc/clone-bare-with-conflicting-config later to maint).
246
247  * When "git checkout" removes a path that does not exist in the
248    commit it is checking out, it wasn't careful enough not to follow
249    symbolic links, which has been corrected.
250    (merge fab78a0c3d mt/checkout-remove-nofollow later to maint).
251
252  * A few option description strings started with capital letters,
253    which were corrected.
254    (merge 5ee90326dc cc/downcase-opt-help later to maint).
255
256  * Plug or annotate remaining leaks that trigger while running the
257    very basic set of tests.
258    (merge 68ffe095a2 ah/plugleaks later to maint).
259
260  * The hashwrite() API uses a buffering mechanism to avoid calling
261    write(2) too frequently. This logic has been refactored to be
262    easier to understand.
263    (merge ddaf1f62e3 ds/clarify-hashwrite later to maint).
264
265  * "git cherry-pick/revert" with or without "--[no-]edit" did not spawn
266    the editor as expected (e.g. "revert --no-edit" after a conflict
267    still asked to edit the message), which has been corrected.
268    (merge 39edfd5cbc en/sequencer-edit-upon-conflict-fix later to maint).
269
270  * "git daemon" has been tightened against systems that take backslash
271    as directory separator.
272    (merge 9a7f1ce8b7 rs/daemon-sanitize-dir-sep later to maint).
273
274  * A NULL-dereference bug has been corrected in an error codepath in
275    "git for-each-ref", "git branch --list" etc.
276    (merge c685450880 jk/ref-filter-segfault-fix later to maint).
277
278  * Streamline the codepath to fix the UTF-8 encoding issues in the
279    argv[] and the prefix on macOS.
280    (merge c7d0e61016 tb/precompose-prefix-simplify later to maint).
281
282  * The command-line completion script (in contrib/) had a couple of
283    references that would have given a warning under the "-u" (nounset)
284    option.
285    (merge c5c0548d79 vs/completion-with-set-u later to maint).
286
287  * When "git pack-objects" makes a literal copy of a part of existing
288    packfile using the reachability bitmaps, its update to the progress
289    meter was broken.
290    (merge 8e118e8490 jk/pack-objects-bitmap-progress-fix later to maint).
291
292  * The dependencies for config-list.h and command-list.h were broken
293    when the former was split out of the latter, which has been
294    corrected.
295    (merge 56550ea718 sg/bugreport-fixes later to maint).
296
297  * "git push --quiet --set-upstream" was not quiet when setting the
298    upstream branch configuration, which has been corrected.
299    (merge f3cce896a8 ow/push-quiet-set-upstream later to maint).
300
301  * The prefetch task in "git maintenance" assumed that "git fetch"
302    from any remote would fetch all its local branches, which would
303    fetch too much if the user is interested in only a subset of
304    branches there.
305    (merge 32f67888d8 ds/maintenance-prefetch-fix later to maint).
306
307  * Clarify that pathnames recorded in Git trees are most often (but
308    not necessarily) encoded in UTF-8.
309    (merge 9364bf465d ab/pathname-encoding-doc later to maint).
310
311  * "git --config-env var=val cmd" weren't accepted (only
312    --config-env=var=val was).
313    (merge c331551ccf ps/config-env-option-with-separate-value later to maint).
314
315  * When the reachability bitmap is in effect, the "do not lose
316    recently created objects and those that are reachable from them"
317    safety to protect us from races were disabled by mistake, which has
318    been corrected.
319    (merge 2ba582ba4c jk/prune-with-bitmap-fix later to maint).
320
321  * Cygwin pathname handling fix.
322    (merge bccc37fdc7 ad/cygwin-no-backslashes-in-paths later to maint).
323
324  * "git rebase --[no-]reschedule-failed-exec" did not work well with
325    its configuration variable, which has been corrected.
326    (merge e5b32bffd1 ab/rebase-no-reschedule-failed-exec later to maint).
327
328  * Portability fix for command line completion script (in contrib/).
329    (merge f2acf763e2 si/zsh-complete-comment-fix later to maint).
330
331  * "git repack -A -d" in a partial clone unnecessarily loosened
332    objects in promisor pack.
333
334  * "git bisect skip" when custom words are used for new/old did not
335    work, which has been corrected.
336
337  * A few variants of informational message "Already up-to-date" has
338    been rephrased.
339    (merge ad9322da03 js/merge-already-up-to-date-message-reword later to maint).
340
341  * "git submodule update --quiet" did not propagate the quiet option
342    down to underlying "git fetch", which has been corrected.
343    (merge 62af4bdd42 nc/submodule-update-quiet later to maint).
344
345  * Document that our test can use "local" keyword.
346    (merge a84fd3bcc6 jc/test-allows-local later to maint).
347
348  * Other code cleanup, docfix, build fix, etc.
349    (merge f451960708 dl/cat-file-doc-cleanup later to maint).
350    (merge 12604a8d0c sv/t9801-test-path-is-file-cleanup later to maint).
351    (merge ea7e63921c jr/doc-ignore-typofix later to maint).
352    (merge 23c781f173 ps/update-ref-trans-hook-doc later to maint).
353    (merge 42efa1231a jk/filter-branch-sha256 later to maint).
354    (merge 4c8e3dca6e tb/push-simple-uses-branch-merge-config later to maint).
355    (merge 6534d436a2 bs/asciidoctor-installation-hints later to maint).
356    (merge 47957485b3 ab/read-tree later to maint).
357    (merge 2be927f3d1 ab/diff-no-index-tests later to maint).
358    (merge 76593c09bb ab/detox-gettext-tests later to maint).
359    (merge 28e29ee38b jc/doc-format-patch-clarify later to maint).
360    (merge fc12b6fdde fm/user-manual-use-preface later to maint).
361    (merge dba94e3a85 cc/test-helper-bloom-usage-fix later to maint).
362    (merge 61a7660516 hn/reftable-tables-doc-update later to maint).
363    (merge 81ed96a9b2 jt/fetch-pack-request-fix later to maint).
364    (merge 151b6c2dd7 jc/doc-do-not-capitalize-clarification later to maint).
365    (merge 9160068ac6 js/access-nul-emulation-on-windows later to maint).
366    (merge 7a14acdbe6 po/diff-patch-doc later to maint).