Autogenerated HTML docs for v2.46.2-673-ga116a
[git-htmldocs.git] / RelNotes / 2.47.0.txt
blob41ba7cfd91d3b94cce7a8d4079e779e93fb6dca7
1 Git v2.47 Release Notes
2 =======================
4 UI, Workflows & Features
5 ------------------------
7  * Many Porcelain commands that internally use the merge machinery
8    were taught to consistently honor the diff.algorithm configuration.
10  * A few descriptions in "git show-ref -h" have been clarified.
12  * A 'P' command to "git add -p" that passes the patch hunk to the
13    pager has been added.
15  * "git grep -W" omits blank lines that follow the found function at
16    the end of the file, just like it omits blank lines before the next
17    function.
19  * The value of http.proxy can have "path" at the end for a socks
20    proxy that listens to a unix-domain socket, but we started to
21    discard it when we taught proxy auth code path to use the
22    credential helpers, which has been corrected.
24  * The code paths to compact multiple reftable files have been updated
25    to correctly deal with multiple compaction triggering at the same
26    time.
28  * Support to specify ref backend for submodules has been enhanced.
30  * "git svn" has been taught about svn:global-ignores property
31    recent versions of Subversion has.
33  * The default object hash and ref backend format used to be settable
34    only with explicit command line option to "git init" and
35    environment variables, but now they can be configured in the user's
36    global and system wide configuration.
38  * "git send-email" learned "--translate-aliases" option that reads
39    addresses from the standard input and emits the result of applying
40    aliases on them to the standard output.
42  * 'git for-each-ref' learned a new "--format" atom to find the branch
43    that the history leading to a given commit "%(is-base:<commit>)" is
44    likely based on.
46  * The command line prompt support used to be littered with bash-isms,
47    which has been corrected to work with more shells.
49  * Support for the RUNTIME_PREFIX feature has been added to z/OS port.
51  * "git send-email" learned "--mailmap" option to allow rewriting the
52    recipient addresses.
54  * "git mergetool" learned to use VSCode as a merge backend.
56  * "git pack-redundant" has been marked for removal in Git 3.0.
58  * One-line messages to "die" and other helper functions will get LF
59    added by these helper functions, but many existing messages had an
60    unnecessary LF at the end, which have been corrected.
62  * The "scalar clone" command learned the "--no-tags" option.
64  * The environment GIT_ADVICE has been intentionally kept undocumented
65    to discourage its use by interactive users.  Add documentation to
66    help tool writers.
68  * "git apply --3way" learned to take "--ours" and other options.
71 Performance, Internal Implementation, Development Support etc.
72 --------------------------------------------------------------
74  * A build tweak knob has been simplified by not setting the value
75    that is already the default; another unused one has been removed.
77  * A CI job that use clang-format to check coding style issues in new
78    code has been added.
80  * The reviewing guidelines document now explicitly encourages people
81    to give positive reviews and how.
83  * Test script linter has been updated to catch an attempt to use
84    one-shot export construct "VAR=VAL func" for shell functions (which
85    does not work for some shells) better.
87  * Some project conventions have been added to CodingGuidelines.
89  * In the refs subsystem, implicit reliance of the_repository has been
90    eliminated; the repository associated with the ref store object is
91    used instead.
93  * Various tests in reftable library have been rewritten using the unit test
94    framework.
96  * A test that fails on an unusually slow machine was found, and made
97    less likely to cause trouble by lengthening the expiry value it
98    uses.
100  * An existing test of hashmap API has been rewritten with the
101    unit-test framework.
103  * A policy document that describes platform support levels and
104    expectation on platform stakeholders has been introduced.
106  * The refs API has been taught to give symref target information to
107    the users of ref iterators, allowing for-each-ref and friends to
108    avoid an extra ref_resolve_* API call per a symbolic ref.
110  * Unit-test framework has learned a simple control structure to allow
111    embedding test statements in-line instead of having to create a new
112    function to contain them.
114  * Incremental updates of multi-pack index files is getting worked on.
116  * Use of API functions that implicitly depend on the_repository
117    object in the config subsystem has been rewritten to pass a
118    repository object through the callchain.
120  * Unused parameters have been either marked as UNUSED to squelch
121    -Wunused warnings or dropped from many functions..
123  * The code in the reftable library has been cleaned up by discarding
124    unused "generic" interface.
126  * The underlying machinery for "git diff-index" has long been made to
127    expand the sparse index as needed, but the command fully expanded
128    the sparse index upfront, which now has been taught not to do.
130  * More trace2 events at key points on push and fetch code paths have
131    been added.
133  * Make our codebase compilable with the -Werror=unused-parameter
134    option.
136  * "git cat-file" works well with the sparse-index, and gets marked as
137    such.
139  * CI started failing completely for linux32 jobs, as the step to
140    upload failed test directory uses GitHub actions that is deprecated
141    and is now disabled.
143  * Import clar unit tests framework libgit2 folks invented for our
144    use.
146  * The error messages from the test script checker have been improved.
148  * The convention to calling into built-in command implementation has
149    been updated to pass the repository, if known, together with the
150    prefix value.
152  * "git apply" had custom buffer management code that predated before
153    use of strbuf got widespread, which has been updated to use strbuf,
154    which also plugged some memory leaks.
156  * The reftable backend learned to more efficiently handle exclude
157    patterns while enumerating the refs.
160 Fixes since v2.46
161 -----------------
163  * "git add -p" by users with diff.suppressBlankEmpty set to true
164    failed to parse the patch that represents an unmodified empty line
165    with an empty line (not a line with a single space on it), which
166    has been corrected.
168  * "git checkout --ours" (no other arguments) complained that the
169    option is incompatible with branch switching, which is technically
170    correct, but found confusing by some users.  It now says that the
171    user needs to give pathspec to specify what paths to checkout.
173  * It has been documented that we avoid "VAR=VAL shell_func" and why.
175  * "git rebase --help" referred to "offset" (the difference between
176    the location a change was taken from and the change gets replaced)
177    incorrectly and called it "fuzz", which has been corrected.
179  * "git notes add -m '' --allow-empty" and friends that take prepared
180    data to create notes should not invoke an editor, but it started
181    doing so since Git 2.42, which has been corrected.
183  * An expensive operation to prepare tracing was done in re-encoding
184    code path even when the tracing was not requested, which has been
185    corrected.
187  * More leakfixes.
189  * The credential helper to talk to OSX keychain sometimes sent
190    garbage bytes after the username, which has been corrected.
192  * A recent update broke "git ls-remote" used outside a repository,
193    which has been corrected.
195  * The patch parser in 'git apply' has been a bit more lenient against
196    unexpected mode bits, like 100664, recorded on extended header lines.
198  * "git config --value=foo --fixed-value section.key newvalue" barfed
199    when the existing value in the configuration file used the
200    valueless true syntax, which has been corrected.
202  * The patch parser in "git patch-id" has been tightened to avoid
203    getting confused by lines that look like a patch header in the log
204    message.
206  * "git reflog expire" failed to honor annotated tags when computing
207    reachable commits.
209  * A flakey test and incorrect calls to strtoX() functions have been
210    fixed.
212  * Follow-up on 2.45.1 regression fix.
214  * "git rev-list ... | git diff-tree -p --remerge-diff --stdin" should
215    behave more or less like "git log -p --remerge-diff" but instead it
216    crashed, forgetting to prepare a temporary object store needed.
218  * "git bundle unbundle" outside a repository triggered a BUG()
219    unnecessarily, which has been corrected.
221  * Maintenance tasks other than "gc" now properly go background when
222    "git maintenance" runs them.
224  * We created a useless pseudo-merge reachability bitmap that is about
225    0 commits, and attempted to include commits that are not in packs,
226    which made no sense.  These bugs have been corrected.
227    (merge a72dfab8b8 tb/pseudo-merge-bitmap-fixes later to maint).
229  * "git rebase -x --quiet" was not quiet, which was corrected.
231  * The code path for compacting reftable files saw some bugfixes
232    against concurrent operation.
234  * The code forgot to discard unnecessary in-core commit buffer data
235    for commits that "git log --skip=<number>" traversed but omitted
236    from the output, which has been corrected.
238  * "git verify-pack" and "git index-pack" started dying outside a
239    repository, which has been corrected.
241  * A data corruption bug when multi-pack-index is used and the same
242    objects are stored in multiple packfiles has been corrected.
244  * "git pack-refs --auto" for the files backend was too aggressive,
245    which has been a bit tamed.
246    (merge c3459ae9ef ps/pack-refs-auto-heuristics later to maint).
248  * A file descriptor left open is now properly closed when "git
249    sparse-checkout" updates the sparse patterns.
251  * In a few corner cases "git diff --exit-code" failed to report
252    "changes" (e.g., renamed without any content change), which has
253    been corrected.
255  * Cygwin does have /dev/tty support that is needed by things like
256    single-key input mode.
258  * The interpret-trailers command failed to recognise the end of the
259    message when the commit log ends in an incomplete line.
261  * "git rebase --autostash" failed to resurrect the autostashed
262    changes when the command gets aborted after giving back control
263    asking for hlep in conflict resolution.
264    (merge bf6ab087d1 pw/rebase-autostash-fix later to maint).
266  * The "imap-send" now allows to be compiled with NO_OPENSSL and
267    OPENSSL_SHA1 defined together.
268    (merge 997950a750 jk/no-openssl-with-openssl-sha1 later to maint).
270  * The support to customize build options to adjust for older versions
271    and/or older systems for the interop tests has been improved.
272    (merge 22ef5f02a8 jk/interop-test-build-options later to maint).
274  * Update the character width table for Unicode 16.
275    (merge 44dc651132 bb/unicode-width-table-16 later to maint).
277  * In Git 2.39, Git.pm stopped working in a bare repository, which has
278    been corrected.
279    (merge d3edb0bdde jk/git-pm-bare-repo-fix later to maint).
281  * When a remote-helper dies before Git writes to it, SIGPIPE killed
282    Git silently.  We now explain the situation a bit better to the end
283    user in our error message.
284    (merge 6e7fac9bca jk/diag-unexpected-remote-helper-death later to maint).
286  * A few usability fixes to "git jump" (in contrib/).
287    (merge 083b82544d jk/jump-quickfix-fixes later to maint).
289  * Other code cleanup, docfix, build fix, etc.
290    (merge be10ac7037 jc/mailinfo-header-cleanup later to maint).
291    (merge 4460e052e0 jc/range-diff-lazy-setup later to maint).
292    (merge 0627c58e7a ak/typofixes later to maint).
293    (merge 83799f1500 jk/t9001-deflake later to maint).
294    (merge e02cc08a88 ak/typofix-2.46-maint later to maint).
295    (merge 5c5d29e1c4 ps/ci-gitlab-upgrade later to maint).