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
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
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
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
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
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
68 Performance, Internal Implementation, Development Support etc.
69 --------------------------------------------------------------
71 * A build tweak knob has been simplified by not setting the value
72 that is already the default; another unused one has been removed.
74 * A CI job that use clang-format to check coding style issues in new
77 * The reviewing guidelines document now explicitly encourages people
78 to give positive reviews and how.
80 * Test script linter has been updated to catch an attempt to use
81 one-shot export construct "VAR=VAL func" for shell functions (which
82 does not work for some shells) better.
84 * Some project conventions have been added to CodingGuidelines.
86 * In the refs subsystem, implicit reliance of the_repository has been
87 eliminated; the repository associated with the ref store object is
90 * Various tests in reftable library have been rewritten using the unit test
93 * A test that fails on an unusually slow machine was found, and made
94 less likely to cause trouble by lengthening the expiry value it
97 * An existing test of hashmap API has been rewritten with the
100 * A policy document that describes platform support levels and
101 expectation on platform stakeholders has been introduced.
103 * The refs API has been taught to give symref target information to
104 the users of ref iterators, allowing for-each-ref and friends to
105 avoid an extra ref_resolve_* API call per a symbolic ref.
107 * Unit-test framework has learned a simple control structure to allow
108 embedding test statements in-line instead of having to create a new
109 function to contain them.
111 * Incremental updates of multi-pack index files is getting worked on.
113 * Use of API functions that implicitly depend on the_repository
114 object in the config subsystem has been rewritten to pass a
115 repository object through the callchain.
117 * Unused parameters have been either marked as UNUSED to squelch
118 -Wunused warnings or dropped from many functions..
120 * The code in the reftable library has been cleaned up by discarding
121 unused "generic" interface.
123 * The underlying machinery for "git diff-index" has long been made to
124 expand the sparse index as needed, but the command fully expanded
125 the sparse index upfront, which now has been taught not to do.
127 * More trace2 events at key points on push and fetch code paths have
130 * Make our codebase compilable with the -Werror=unused-parameter
133 * "git cat-file" works well with the sparse-index, and gets marked as
140 * "git add -p" by users with diff.suppressBlankEmpty set to true
141 failed to parse the patch that represents an unmodified empty line
142 with an empty line (not a line with a single space on it), which
145 * "git checkout --ours" (no other arguments) complained that the
146 option is incompatible with branch switching, which is technically
147 correct, but found confusing by some users. It now says that the
148 user needs to give pathspec to specify what paths to checkout.
150 * It has been documented that we avoid "VAR=VAL shell_func" and why.
152 * "git rebase --help" referred to "offset" (the difference between
153 the location a change was taken from and the change gets replaced)
154 incorrectly and called it "fuzz", which has been corrected.
156 * "git notes add -m '' --allow-empty" and friends that take prepared
157 data to create notes should not invoke an editor, but it started
158 doing so since Git 2.42, which has been corrected.
160 * An expensive operation to prepare tracing was done in re-encoding
161 code path even when the tracing was not requested, which has been
166 * The credential helper to talk to OSX keychain sometimes sent
167 garbage bytes after the username, which has been corrected.
169 * A recent update broke "git ls-remote" used outside a repository,
170 which has been corrected.
172 * The patch parser in 'git apply' has been a bit more lenient against
173 unexpected mode bits, like 100664, recorded on extended header lines.
175 * "git config --value=foo --fixed-value section.key newvalue" barfed
176 when the existing value in the configuration file used the
177 valueless true syntax, which has been corrected.
179 * The patch parser in "git patch-id" has been tightened to avoid
180 getting confused by lines that look like a patch header in the log
183 * "git reflog expire" failed to honor annotated tags when computing
186 * A flakey test and incorrect calls to strtoX() functions have been
189 * Follow-up on 2.45.1 regression fix.
191 * "git rev-list ... | git diff-tree -p --remerge-diff --stdin" should
192 behave more or less like "git log -p --remerge-diff" but instead it
193 crashed, forgetting to prepare a temporary object store needed.
195 * "git bundle unbundle" outside a repository triggered a BUG()
196 unnecessarily, which has been corrected.
198 * Maintenance tasks other than "gc" now properly go background when
199 "git maintenance" runs them.
201 * We created a useless pseudo-merge reachability bitmap that is about
202 0 commits, and attempted to include commits that are not in packs,
203 which made no sense. These bugs have been corrected.
204 (merge a72dfab8b8 tb/pseudo-merge-bitmap-fixes later to maint).
206 * "git rebase -x --quiet" was not quiet, which was corrected.
208 * The code path for compacting reftable files saw some bugfixes
209 against concurrent operation.
211 * The code forgot to discard unnecessary in-core commit buffer data
212 for commits that "git log --skip=<number>" traversed but omitted
213 from the output, which has been corrected.
215 * "git verify-pack" and "git index-pack" started dying outside a
216 repository, which has been corrected.
218 * A data corruption bug when multi-pack-index is used and the same
219 objects are stored in multiple packfiles has been corrected.
221 * "git pack-refs --auto" for the files backend was too aggressive,
222 which has been a bit tamed.
223 (merge c3459ae9ef ps/pack-refs-auto-heuristics later to maint).
225 * A file descriptor left open is now properly closed when "git
226 sparse-checkout" updates the sparse patterns.
228 * In a few corner cases "git diff --exit-code" failed to report
229 "changes" (e.g., renamed without any content change), which has
231 (merge 11591850dd rs/diff-exit-code-fix later to maint).
233 * Cygwin does have /dev/tty support that is needed by things like
234 single-key input mode.
235 (merge 39ba986b0e rj/cygwin-has-dev-tty later to maint).
237 * The interpret-trailers command failed to recognise the end of the
238 message when the commit log ends in an incomplete line.
239 (merge c02414a997 bl/trailers-and-incomplete-last-line-fix later to maint).
241 * Other code cleanup, docfix, build fix, etc.
242 (merge be10ac7037 jc/mailinfo-header-cleanup later to maint).
243 (merge 9a36ea37ae jc/doc-skip-fetch-all-and-prefetch later to maint).