Merge branch 'fc/doc-drop-custom-callout-format'
[alt-git.git] / Documentation / RelNotes / 2.41.0.txt
blobe2aa9720f37187caefe254fca00e25fdf377c9b0
1 Git v2.41 Release Notes
2 =======================
4 UI, Workflows & Features
6  * Allow information carried on the WWW-AUthenticate header to be
7    passed to the credential helpers.
9  * A new "fetch.hideRefs" option can be used to exclude specified refs
10    from "rev-list --objects --stdin --not --all" traversal for
11    checking object connectivity, most useful when there are many
12    unrelated histories in a single repository.
14  * "git push" has been taught to allow deletion of refs with one-level
15    names to help repairing a repository who acquired such a ref by
16    mistake.  In general, we don't encourage use of such a ref, and
17    creation or update to such a ref is rejected as before.
19  * Allow "git bisect reset" to check out the original branch when the
20    branch is already checked out in a different worktree linked to the
21    same repository.
23  * A few subcommands have been taught to stop users from working on a
24    branch that is being used in another worktree linked to the same
25    repository.
27  * "git format-patch" learned to write a log-message only output file
28    for empty commits.
30  * "git format-patch" honors the src/dst prefixes set to nonstandard
31    values with configuration variables like "diff.noprefix", causing
32    receiving end of the patch that expects the standard -p1 format to
33    break.  "format-patch" has been taught to ignore end-user configuration
34    and always use the standard prefixes.
36    This is a backward compatibility breaking change.
38  * Lift the limitation that colored prompts can only be used with
39    PROMPT_COMMAND mode.
41  * "git blame --contents=<file> <rev> -- <path>" used to be forbidden,
42    but now it finds the origins of lines starting at <file> contents
43    through the history that leads to <rev>.
45  * "git pack-redundant" gave a warning when run, as the command has
46    outlived its usefulness long ago and is nominated for future
47    removal.  Now we escalate to give an error.
49  * "git clone" from an empty repository learned to propagate the
50    choice of the hash algorithm from the source repository to the
51    newly created repository.
53  * "git mergetool" and "git difftool" learns a new configuration
54    guiDefault to optionally favor configured guitool over non-gui-tool
55    automatically when $DISPLAY is set.
57  * "git branch -d origin/master" would say "no such branch", but it is
58    likely a missed "-r" if refs/remotes/origin/master exists.  The
59    command has been taught to give such a hint in its error message.
61  * Clean-up of the code path that deals with merge strategy option
62    handling in "git rebase".
64  * "git clone --local" stops copying from an original repository that
65    has symbolic links inside its $GIT_DIR; an error message when that
66    happens has been updated.
68  * "git branch --format=..." and "git format-patch --format=..."
69    learns "--omit-empty" to hide refs that whose formatting result
70    becomes an empty string from the output.
72  * The sendemail-validate validate hook learned to pass the total
73    number of input files and where in the sequence each invocation is
74    via environment variables.
76  * When "gc" needs to retain unreachable objects, packing them into
77    cruft packs (instead of exploding them into loose object files) has
78    been offered as a more efficient option for some time.  Now the use
79    of cruft packs has been made the default and no longer considered
80    an experimental feature.
82  * The output given by "git blame" that attributes a line to contents
83    taken from the file specified by the "--contents" option shows it
84    differently from a line attributed to the working tree file.
87 Performance, Internal Implementation, Development Support etc.
89  * Code clean-up to clarify directory traversal API.
91  * Code clean-up to clarify the rule that "git-compat-util.h" must be
92    the first to be included.
94  * More work towards -Wunused.
96  * Instead of forcing each command to choose to honor GPG related
97    configuration variables, make the subsystem lazily initialize
98    itself.
100  * Remove workaround for ancient versions of DocBook to make it work
101    correctly with groff, which has not been necessary since docbook
102    1.76 from 2010.
104  * Code clean-up to include and/or uninclude parse-options.h file as
105    needed.
107  * The code path that reports what "git fetch" did to each ref has
108    been cleaned up.
110  * Assorted config API updates.
112  * A few configuration variables to tell the cURL library that
113    different types of ssl-cert and ssl-key are in use have been added.
115  * Split key function and data structure definitions out of cache.h to
116    new header files and adjust the users.
118  * "git fetch --all" does not have to download and handle the same
119    bundleURI over and over, which has been corrected.
121  * "git sparse-checkout" command learns a debugging aid for the sparse
122    rule definitions.
124  * "git write-tree" learns to work better with sparse-index.
126  * The on-disk reverse index that allows mapping from the pack offset
127    to the object name for the object stored at the offset has been
128    enabled by default.
130  * "git fsck" learned to validate the on-disk pack reverse index files.
132  * strtok() and strtok_r() are banned in this codebase.
134  * The detect-compilers script to help auto-tweaking the build system
135    had trouble working with compilers whose version number has extra
136    suffixes.  The script has been taught that certain suffixes (like
137    "-win32" in "gcc 10-win32") can be safely stripped as they share
138    the same features and bugs with the version without the suffix.
141 Fixes since v2.40
142 -----------------
144  * "git fsck" learned to check the index files in other worktrees,
145    just like "git gc" honors them as anchoring points.
146    (merge 8d3e7eac52 jk/fsck-indices-in-worktrees later to maint).
148  * Fix a segfaulting loop.  The function and its caller may need
149    further clean-up.
150    (merge c5773dc078 ew/commit-reach-clean-up-flags-fix later to maint).
152  * "git restore" supports options like "--ours" that are only
153    meaningful during a conflicted merge, but these options are only
154    meaningful when updating the working tree files.  These options are
155    marked to be incompatible when both "--staged" and "--worktree" are
156    in effect.
157    (merge ee8a88826a ak/restore-both-incompatible-with-conflicts later to maint).
159  * Simplify UI to control progress meter given by "git bundle" command.
160    (merge 8b95521edb jk/bundle-progress later to maint).
162  * "git bundle" learned that "-" is a common way to say that the input
163    comes from the standard input and/or the output goes to the
164    standard output.  It used to work only for output and only from the
165    root level of the working tree.
166    (merge 0bbe10313e jk/bundle-use-dash-for-stdfiles later to maint).
168  * Once we start running, we assumed that the list of alternate object
169    databases would never change.  Hook into the machinery used to
170    update the list of packfiles during runtime to update this list as
171    well.
172    (merge e2d003dbed ds/reprepare-alternates-when-repreparing-packfiles later to maint).
174  * The code to parse "git rebase -X<opt>" was not prepared to see an
175    unparsable option string, which has been corrected.
176    (merge 15a4cc912e ab/fix-strategy-opts-parsing later to maint).
178  * "git add -p" while the index is unmerged sometimes failed to parse
179    the diff output it internally produces and died, which has been
180    corrected.
181    (merge 28d1122f9c jk/add-p-unmerged-fix later to maint).
183  * Fix for a "ls-files --format="%(path)" that produced nonsense
184    output, which was a bug in 2.38.
185    (merge cfb62dd006 aj/ls-files-format-fix later to maint).
187  * "git receive-pack" that responds to "git push" requests failed to
188    clean a stale lockfile when killed in the middle, which has been
189    corrected.
190    (merge c55c30669c ps/receive-pack-unlock-before-die later to maint).
192  * "git rev-parse --quiet foo@{u}", or anything that asks @{u} to be
193    parsed with GET_OID_QUIETLY option, did not quietly fail, which has
194    been corrected.
195    (merge dfbfdc521d fc/oid-quietly-parse-upstream later to maint).
197  * Transports that do not support protocol v2 did not correctly fall
198    back to protocol v0 under certain conditions, which has been
199    corrected.
200    (merge eaa0fd6584 jk/fix-proto-downgrade-to-v0 later to maint).
202  * time(2) on glib 2.31+, especially on Linux, goes out of sync with
203    higher resolution timers used for gettimeofday(2) and by the
204    filesystem.  Replace all calls to it with a git_time() wrapper and
205    (merge 370ddcbc89 pe/time-use-gettimeofday later to maint).
207  * Code clean-up to use designated initializers in parse-options API.
208    (merge 353e6d4554 sg/parse-options-h-initializers later to maint).
210  * A recent-ish change to allow unicode character classes to be used
211    with "grep -P" triggered a JIT bug in older pcre2 libraries.
212    The problematic change in Git built with these older libraries has
213    been disabled to work around the bug.
214    (merge 14b9a04479 mk/workaround-pcre-jit-ucp-bug later to maint).
216  * The wildmatch library code unlearns exponential behaviour it
217    acquired some time ago since it was borrowed from rsync.
218    (merge 3dc0b7f0dc pw/wildmatch-fixes later to maint).
220  * The index files can become corrupt under certain conditions when
221    the split-index feature is in use, especially together with
222    fsmonitor, which have been corrected.
223    (merge 061dd722dc js/split-index-fixes later to maint).
225  * Document what the pathname-looking strings in "rev-list --object"
226    output are for and what they mean.
227    (merge 15364d2a3c jk/document-rev-list-object-name later to maint).
229  * Fix unnecessary truncation of generation numbers used in-core.
230    (merge d3af1c193d ps/ahead-behind-truncation-fix later to maint).
232  * Code clean-up around the use of the_repository.
233    (merge 4a93b899c1 ab/remove-implicit-use-of-the-repository later to maint).
235  * Consistently spell "Message-ID" as such, not "Message-Id".
236    (merge ba4324c4e1 jc/spell-id-in-both-caps-in-message-id later to maint).
238  * Correct use of an uninitialized structure member.
239    (merge dc12ee77ab jx/cap-object-info-uninitialized-fix later to maint).
241  * Tests had a few places where we ignored PERL_PATH and blindly used
242    /usr/bin/perl, which have been corrected.
243    (merge c1917156a0 jk/use-perl-path-consistently later to maint).
245  * Documentation mark-up fix.
246    (merge 78b6369e67 la/mfc-markup-fix later to maint).
248  * Doc toolchain update to remove old workaround for AsciiDoc.
249    (merge 8806120de6 fc/remove-header-workarounds-for-asciidoc later to maint).
251  * The userdiff regexp patterns for various filetypes that are built
252    into the system have been updated to avoid triggering regexp errors
253    from UTF-8 aware regex engines.
254    (merge be39144954 rs/userdiff-multibyte-regex later to maint).
256  * The approxidate() API has been simplified by losing an extra
257    function that did the same thing as another one.
258    (merge 8a7f0b666f rs/remove-approxidate-relative later to maint).
260  * Code clean-up to replace a hardcoded constant with a CPP macro.
261    (merge c870de6502 rs/get-tar-commit-id-use-defined-const later to maint).
263  * Doc build simplification.
264    (merge 9a09ed3229 fc/doc-stop-using-manversion later to maint).
266  * "git archive" run from a subdirectory mishandled attributes and
267    paths outside the current directory.
268    (merge 92b1dd1b9e rs/archive-from-subdirectory-fixes later to maint).
270  * The code to parse capability list for v0 on-wire protocol fell into
271    an infinite loop when a capability appears multiple times, which
272    has been corrected.
274  * Geometric repacking ("git repack --geometric=<n>") in a repository
275    that borrows from an alternate object database had various corner
276    case bugs, which have been corrected.
277    (merge d85cd18777 ps/fix-geom-repack-with-alternates later to maint).
279  * The "%GT" placeholder for the "--format" option of "git log" and
280    friends caused BUG() to trigger on a commit signed with an unknown
281    key, which has been corrected.
282    (merge 7891e46585 jk/gpg-trust-level-fix later to maint).
284  * The completion script used to use bare "read" without the "-r"
285    option to read the contents of various state files, which risked
286    getting confused with backslashes in them.  This has been
287    corrected.
288    (merge 197152098a ek/completion-use-read-r-to-read-literally later to maint).
290  * A small API fix to the ort merge strategy backend.
291    (merge 000c4ceca7 en/ort-finalize-after-0-merges-fix later to maint).
293  * The commit object parser has been taught to be a bit more lenient
294    to parse timestamps on the author/committer line with a malformed
295    author/committer ident.
296    (merge 90ef0f14eb jk/parse-commit-with-malformed-ident later to maint).
298  * Retitle a test script with an overly narrow name.
299    (merge 8bb19c14fb ob/t3501-retitle later to maint).
301  * Other code cleanup, docfix, build fix, etc.
302    (merge f7111175df as/doc-markup-fix later to maint).
303    (merge 90ff7c9898 fc/test-aggregation-clean-up later to maint).
304    (merge 9b0c7f308a jc/am-doc-refer-to-format-patch later to maint).
305    (merge b10cbdac4c bb/unicode-width-table-15 later to maint).
306    (merge 3457b50e8c ab/retire-scripted-add-p later to maint).
307    (merge d52fcf493b ds/p2000-fix-grep-sparse later to maint).
308    (merge ec063d2591 ss/hashmap-typofix later to maint).
309    (merge 1aaed69d11 rs/archive-mtime later to maint).
310    (merge 2da2cc9b28 ob/rollback-after-commit-lock-failure later to maint).
311    (merge 54dbd0933b ob/sequencer-save-head-simplify later to maint).
312    (merge a93cbe8d78 ar/test-cleanup-unused-file-creation later to maint).
313    (merge cc48ddd937 jk/chainlint-fixes later to maint).
314    (merge 4833b08426 ow/ref-format-remove-unused-member later to maint).
315    (merge d0ea2ca1cf dw/doc-submittingpatches-grammofix later to maint).
316    (merge fd72637423 ar/t2024-checkout-output-fix later to maint).
317    (merge d45cbe3fe0 ob/sequencer-i18n-fix later to maint).
318    (merge b734fe49fd ob/messages-capitalize-exception later to maint).