Merge branch 'master' of github.com:Softcatala/git-po
[alt-git.git] / Documentation / RelNotes / 2.32.0.txt
blobb47d569dc9b5093295eafdf6312d596471f3aa19
1 Git 2.32 Release Notes
2 ======================
4 Backward compatibility notes
5 ----------------------------
7  * ".gitattributes", ".gitignore", and ".mailmap" files that are
8    symbolic links are ignored.
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.
18 Updates since v2.31
19 -------------------
21 UI, Workflows & Features
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.
30  * "git stash show" learned to optionally show untracked part of the
31    stash.
33  * "git log --format='...'" learned "%(describe)" placeholder.
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.
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.
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.
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.
55  * "git send-email" learned to honor the core.hooksPath configuration.
57  * "git format-patch -v<n>" learned to allow a reroll count that is
58    not an integer.
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.
64  * "git clone --reject-shallow" option fails the clone as soon as we
65    notice that we are cloning from a shallow repository.
67  * A configuration variable has been added to force tips of certain
68    refs to be given a reachability bitmap.
70  * "gitweb" learned "e-mail privacy" feature to redact strings that
71    look like e-mail addresses on various pages.
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.
79  * "git apply" now takes "--3way" and "--cached" at the same time, and
80    work and record results only in the index.
82  * The command line completion (in contrib/) has learned that
83    CHERRY_PICK_HEAD is a possible pseudo-ref.
85  * Userdiff patterns for "Scheme" has been added.
87  * "git log" learned "--diff-merges=<style>" option, with an
88    associated configuration variable log.diffMerges.
90  * "git log --format=..." placeholders learned %ah/%ch placeholders to
91    request the --date=human output.
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.
100  * "git add" and "git rm" learned not to touch those paths that are
101    outside of sparse checkout.
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.
107  * The command line completion (in contrib/) for "git stash" has been
108    updated.
110  * "git subtree" updates.
112  * It is now documented that "format-patch" skips merges.
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.
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.
124  * "git add -i --dry-run" does not dry-run, which was surprising.  The
125    combination of options has taught to error out.
127  * "git push" learns to discover common ancestor with the receiving
128    end over protocol v2.  This will hopefully make "git push" as
129    efficient as "git fetch" in avoiding objects from getting
130    transferred unnecessarily.
132  * "git mailinfo" (hence "git am") learned the "--quoted-cr" option to
133    control how lines ending with CRLF wrapped in base64 or qp are
134    handled.
137 Performance, Internal Implementation, Development Support etc.
139  * Rename detection rework continues.
141  * GIT_TEST_FAIL_PREREQS is a mechanism to skip test pieces with
142    prerequisites to catch broken tests that depend on the side effects
143    of optional pieces, but did not work at all when negative
144    prerequisites were involved.
145    (merge 27d578d904 jk/fail-prereq-testfix later to maint).
147  * "git diff-index" codepath has been taught to trust fsmonitor status
148    to reduce number of lstat() calls.
149    (merge 7e5aa13d2c nk/diff-index-fsmonitor later to maint).
151  * Reorganize Makefile to allow building git.o and other essential
152    objects without extra stuff needed only for testing.
154  * Preparatory API changes for parallel checkout.
156  * A simple IPC interface gets introduced to build services like
157    fsmonitor on top.
159  * Fsck API clean-up.
161  * SECURITY.md that is facing individual contributors and end users
162    has been introduced.  Also a procedure to follow when preparing
163    embargoed releases has been spelled out.
164    (merge 09420b7648 js/security-md later to maint).
166  * Optimize "rev-list --use-bitmap-index --objects" corner case that
167    uses negative tags as the stopping points.
169  * CMake update for vsbuild.
171  * An on-disk reverse-index to map the in-pack location of an object
172    back to its object name across multiple packfiles is introduced.
174  * Generate [ec]tags under $(QUIET_GEN).
176  * Clean-up codepaths that implements "git send-email --validate"
177    option and improves the message from it.
179  * The last remnant of gettext-poison has been removed.
181  * The test framework has been taught to optionally turn the default
182    merge strategy to "ort" throughout the system where we use
183    three-way merges internally, like cherry-pick, rebase etc.,
184    primarily to enhance its test coverage (the strategy has been
185    available as an explicit "-s ort" choice).
187  * A bit of code clean-up and a lot of test clean-up around userdiff
188    area.
190  * Handling of "promisor packs" that allows certain objects to be
191    missing and lazily retrievable has been optimized (a bit).
193  * When packet_write() fails, we gave an extra error message
194    unnecessarily, which has been corrected.
196  * The checkout machinery has been taught to perform the actual
197    write-out of the files in parallel when able.
199  * Show errno in the trace output in the error codepath that calls
200    read_raw_ref method.
202  * Effort to make the command line completion (in contrib/) safe with
203    "set -u" continues.
205  * Tweak a few tests for "log --format=..." that show timestamps in
206    various formats.
208  * The reflog expiry machinery has been taught to emit trace events.
210  * Over-the-wire protocol learns a new request type to ask for object
211    sizes given a list of object names.
214 Fixes since v2.31
215 -----------------
217  * The fsmonitor interface read from its input without making sure
218    there is something to read from.  This bug is new in 2.31
219    timeframe.
221  * The data structure used by fsmonitor interface was not properly
222    duplicated during an in-core merge, leading to use-after-free etc.
224  * "git bisect" reimplemented more in C during 2.30 timeframe did not
225    take an annotated tag as a good/bad endpoint well.  This regression
226    has been corrected.
228  * Fix macros that can silently inject unintended null-statements.
230  * CALLOC_ARRAY() macro replaces many uses of xcalloc().
232  * Update insn in Makefile comments to run fuzz-all target.
234  * Fix a corner case bug in "git mv" on case insensitive systems,
235    which was introduced in 2.29 timeframe.
237  * We had a code to diagnose and die cleanly when a required
238    clean/smudge filter is missing, but an assert before that
239    unnecessarily fired, hiding the end-user facing die() message.
240    (merge 6fab35f748 mt/cleanly-die-upon-missing-required-filter later to maint).
242  * Update C code that sets a few configuration variables when a remote
243    is configured so that it spells configuration variable names in the
244    canonical camelCase.
245    (merge 0f1da600e6 ab/remote-write-config-in-camel-case later to maint).
247  * A new configuration variable has been introduced to allow choosing
248    which version of the generation number gets used in the
249    commit-graph file.
250    (merge 702110aac6 ds/commit-graph-generation-config later to maint).
252  * Perf test update to work better in secondary worktrees.
253    (merge 36e834abc1 jk/perf-in-worktrees later to maint).
255  * Updates to memory allocation code around the use of pcre2 library.
256    (merge c1760352e0 ab/grep-pcre2-allocfix later to maint).
258  * "git -c core.bare=false clone --bare ..." would have segfaulted,
259    which has been corrected.
260    (merge 75555676ad bc/clone-bare-with-conflicting-config later to maint).
262  * When "git checkout" removes a path that does not exist in the
263    commit it is checking out, it wasn't careful enough not to follow
264    symbolic links, which has been corrected.
265    (merge fab78a0c3d mt/checkout-remove-nofollow later to maint).
267  * A few option description strings started with capital letters,
268    which were corrected.
269    (merge 5ee90326dc cc/downcase-opt-help later to maint).
271  * Plug or annotate remaining leaks that trigger while running the
272    very basic set of tests.
273    (merge 68ffe095a2 ah/plugleaks later to maint).
275  * The hashwrite() API uses a buffering mechanism to avoid calling
276    write(2) too frequently. This logic has been refactored to be
277    easier to understand.
278    (merge ddaf1f62e3 ds/clarify-hashwrite later to maint).
280  * "git cherry-pick/revert" with or without "--[no-]edit" did not spawn
281    the editor as expected (e.g. "revert --no-edit" after a conflict
282    still asked to edit the message), which has been corrected.
283    (merge 39edfd5cbc en/sequencer-edit-upon-conflict-fix later to maint).
285  * "git daemon" has been tightened against systems that take backslash
286    as directory separator.
287    (merge 9a7f1ce8b7 rs/daemon-sanitize-dir-sep later to maint).
289  * A NULL-dereference bug has been corrected in an error codepath in
290    "git for-each-ref", "git branch --list" etc.
291    (merge c685450880 jk/ref-filter-segfault-fix later to maint).
293  * Streamline the codepath to fix the UTF-8 encoding issues in the
294    argv[] and the prefix on macOS.
295    (merge c7d0e61016 tb/precompose-prefix-simplify later to maint).
297  * The command-line completion script (in contrib/) had a couple of
298    references that would have given a warning under the "-u" (nounset)
299    option.
300    (merge c5c0548d79 vs/completion-with-set-u later to maint).
302  * When "git pack-objects" makes a literal copy of a part of existing
303    packfile using the reachability bitmaps, its update to the progress
304    meter was broken.
305    (merge 8e118e8490 jk/pack-objects-bitmap-progress-fix later to maint).
307  * The dependencies for config-list.h and command-list.h were broken
308    when the former was split out of the latter, which has been
309    corrected.
310    (merge 56550ea718 sg/bugreport-fixes later to maint).
312  * "git push --quiet --set-upstream" was not quiet when setting the
313    upstream branch configuration, which has been corrected.
314    (merge f3cce896a8 ow/push-quiet-set-upstream later to maint).
316  * The prefetch task in "git maintenance" assumed that "git fetch"
317    from any remote would fetch all its local branches, which would
318    fetch too much if the user is interested in only a subset of
319    branches there.
320    (merge 32f67888d8 ds/maintenance-prefetch-fix later to maint).
322  * Clarify that pathnames recorded in Git trees are most often (but
323    not necessarily) encoded in UTF-8.
324    (merge 9364bf465d ab/pathname-encoding-doc later to maint).
326  * "git --config-env var=val cmd" weren't accepted (only
327    --config-env=var=val was).
328    (merge c331551ccf ps/config-env-option-with-separate-value later to maint).
330  * When the reachability bitmap is in effect, the "do not lose
331    recently created objects and those that are reachable from them"
332    safety to protect us from races were disabled by mistake, which has
333    been corrected.
334    (merge 2ba582ba4c jk/prune-with-bitmap-fix later to maint).
336  * Cygwin pathname handling fix.
337    (merge bccc37fdc7 ad/cygwin-no-backslashes-in-paths later to maint).
339  * "git rebase --[no-]reschedule-failed-exec" did not work well with
340    its configuration variable, which has been corrected.
341    (merge e5b32bffd1 ab/rebase-no-reschedule-failed-exec later to maint).
343  * Portability fix for command line completion script (in contrib/).
344    (merge f2acf763e2 si/zsh-complete-comment-fix later to maint).
346  * "git repack -A -d" in a partial clone unnecessarily loosened
347    objects in promisor pack.
349  * "git bisect skip" when custom words are used for new/old did not
350    work, which has been corrected.
352  * A few variants of informational message "Already up-to-date" has
353    been rephrased.
354    (merge ad9322da03 js/merge-already-up-to-date-message-reword later to maint).
356  * "git submodule update --quiet" did not propagate the quiet option
357    down to underlying "git fetch", which has been corrected.
358    (merge 62af4bdd42 nc/submodule-update-quiet later to maint).
360  * Document that our test can use "local" keyword.
361    (merge a84fd3bcc6 jc/test-allows-local later to maint).
363  * The word-diff mode has been taught to work better with a word
364    regexp that can match an empty string.
365    (merge 0324e8fc6b pw/word-diff-zero-width-matches later to maint).
367  * "git p4" learned to find branch points more efficiently.
368    (merge 6b79818bfb jk/p4-locate-branch-point-optim later to maint).
370  * When "git update-ref -d" removes a ref that is packed, it left
371    empty directories under $GIT_DIR/refs/ for
372    (merge 5f03e5126d wc/packed-ref-removal-cleanup later to maint).
374  * Other code cleanup, docfix, build fix, etc.
375    (merge f451960708 dl/cat-file-doc-cleanup later to maint).
376    (merge 12604a8d0c sv/t9801-test-path-is-file-cleanup later to maint).
377    (merge ea7e63921c jr/doc-ignore-typofix later to maint).
378    (merge 23c781f173 ps/update-ref-trans-hook-doc later to maint).
379    (merge 42efa1231a jk/filter-branch-sha256 later to maint).
380    (merge 4c8e3dca6e tb/push-simple-uses-branch-merge-config later to maint).
381    (merge 6534d436a2 bs/asciidoctor-installation-hints later to maint).
382    (merge 47957485b3 ab/read-tree later to maint).
383    (merge 2be927f3d1 ab/diff-no-index-tests later to maint).
384    (merge 76593c09bb ab/detox-gettext-tests later to maint).
385    (merge 28e29ee38b jc/doc-format-patch-clarify later to maint).
386    (merge fc12b6fdde fm/user-manual-use-preface later to maint).
387    (merge dba94e3a85 cc/test-helper-bloom-usage-fix later to maint).
388    (merge 61a7660516 hn/reftable-tables-doc-update later to maint).
389    (merge 81ed96a9b2 jt/fetch-pack-request-fix later to maint).
390    (merge 151b6c2dd7 jc/doc-do-not-capitalize-clarification later to maint).
391    (merge 9160068ac6 js/access-nul-emulation-on-windows later to maint).
392    (merge 7a14acdbe6 po/diff-patch-doc later to maint).
393    (merge f91371b948 pw/patience-diff-clean-up later to maint).
394    (merge 3a7f0908b6 mt/clean-clean later to maint).
395    (merge d4e2d15a8b ab/streaming-simplify later to maint).
396    (merge 0e59f7ad67 ah/merge-ort-i18n later to maint).
397    (merge e6f68f62e0 ls/typofix later to maint).