]> git.ipfire.org Git - thirdparty/git.git/blob - Documentation/RelNotes/2.35.0.txt
refs: print error message in debug output
[thirdparty/git.git] / Documentation / RelNotes / 2.35.0.txt
1 Git 2.35 Release Notes
2 ======================
3
4 Updates since Git 2.34
5 ----------------------
6
7 Backward compatibility warts
8
9 * "_" is now treated as any other URL-valid characters in an URL when
10 matching the per-URL configuration variable names.
11
12
13 UI, Workflows & Features
14
15 * "git status --porcelain=v2" now show the number of stash entries
16 with --show-stash like the normal output does.
17
18 * "git stash" learned the "--staged" option to stash away what has
19 been added to the index (and nothing else).
20
21 * "git var GIT_DEFAULT_BRANCH" is a way to see what name is used for
22 the newly created branch if "git init" is run.
23
24 * Various operating modes of "git reset" have been made to work
25 better with the sparse index.
26
27 * "git submodule deinit" for a submodule whose .git metadata
28 directory is embedded in its working tree refused to work, until
29 the submodule gets converted to use the "absorbed" form where the
30 metadata directory is stored in superproject, and a gitfile at the
31 top-level of the working tree of the submodule points at it. The
32 command is taught to convert such submodules to the absorbed form
33 as needed.
34
35 * The completion script (in contrib/) learns that the "--date"
36 option of commands from the "git log" family takes "human" and
37 "auto" as valid values.
38
39 * "Zealous diff3" style of merge conflict presentation has been added.
40
41 * The "git log --format=%(describe)" placeholder has been extended to
42 allow passing selected command-line options to the underlying "git
43 describe" command.
44
45 * "default" and "reset" have been added to our color palette.
46
47 * The cryptographic signing using ssh keys can specify literal keys
48 for keytypes whose name do not begin with the "ssh-" prefix by
49 using the "key::" prefix mechanism (e.g. "key::ecdsa-sha2-nistp256").
50
51 * "git fetch" without the "--update-head-ok" option ought to protect
52 a checked out branch from getting updated, to prevent the working
53 tree that checks it out to go out of sync. The code was written
54 before the use of "git worktree" got widespread, and only checked
55 the branch that was checked out in the current worktree, which has
56 been updated.
57
58 * "git name-rev" has been tweaked to give output that is shorter and
59 easier to understand.
60
61
62 Performance, Internal Implementation, Development Support etc.
63
64 * The use of errno as a means to carry the nature of error in the ref
65 API implementation has been reworked and reduced.
66
67 * Teach and encourage first-time contributors to this project to
68 state the base commit when they submit their topic.
69
70 * The command line complation for "git send-email" options have been
71 tweaked to make it easier to keep it in sync with the command itself.
72
73 * Ensure that the sparseness of the in-core index matches the
74 index.sparse configuration specified by the repository immediately
75 after the on-disk index file is read.
76
77 * Code clean-up to eventually allow information on remotes defined
78 for an arbitrary repository to be read.
79
80 * Build optimization.
81
82 * Tighten code for testing pack-bitmap.
83
84 * Weather balloon to break people with compilers that do not support
85 C99.
86
87 * The "reftable" backend for the refs API, without integrating into
88 the refs subsystem, has been added.
89
90 * More tests are marked as leak-free.
91
92 * The test framework learns to list unsatisfied test prerequisites,
93 and optionally error out when prerequisites that are expected to be
94 satisfied are not.
95
96 * The default setting for trace2 event nesting was too low to cause
97 test failures, which is worked around by bumping it up in the test
98 framework.
99
100 * Drop support for TravisCI and update test workflows at GitHub.
101
102 * Many tests that used to need GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
103 mechanism to force "git" to use 'master' as the default name for
104 the initial branch no longer need it; the use of the mechanism from
105 them have been removed.
106
107 * Allow running our tests while disabling fsync.
108
109 * Document the parameters given to the reflog entry iterator callback
110 functions.
111 (merge e6e94f34b2 jc/reflog-iterator-callback-doc later to maint).
112
113 * The test helper for refs subsystem learned to write bogus and/or
114 nonexistent object name to refs to simulate error situations we
115 want to test Git in.
116
117 * "diff --histogram" optimization.
118
119 * Weather balloon to find compilers that do not grok variable
120 declaration in the for() loop.
121
122 * diff and blame commands have been taught to work better with sparse
123 index.
124
125
126 Fixes since v2.34
127 -----------------
128
129 * "git grep" looking in a blob that has non-UTF8 payload was
130 completely broken when linked with certain versions of PCREv2
131 library in the latest release.
132
133 * Other code cleanup, docfix, build fix, etc.
134
135 * "git pull" with any strategy when the other side is behind us
136 should succeed as it is a no-op, but doesn't.
137
138 * An earlier change in 2.34.0 caused JGit application (that abused
139 GIT_EDITOR mechanism when invoking "git config") to get stuck with
140 a SIGTTOU signal; it has been reverted.
141
142 * An earlier change that broke .gitignore matching has been reverted.
143
144 * Things like "git -c branch.sort=bogus branch new HEAD", i.e. the
145 operation modes of the "git branch" command that do not need the
146 sort key information, no longer errors out by seeing a bogus sort
147 key.
148 (merge 98e7ab6d42 jc/fix-ref-sorting-parse later to maint).
149
150 * The compatibility implementation for unsetenv(3) were written to
151 mimic ancient, non-POSIX, variant seen in an old glibc; it has been
152 changed to return an integer to match the more modern era.
153 (merge a38989bd5b jc/unsetenv-returns-an-int later to maint).
154
155 * The clean/smudge conversion code path has been prepared to better
156 work on platforms where ulong is narrower than size_t.
157 (merge 596b5e77c9 mc/clean-smudge-with-llp64 later to maint).
158
159 * Redact the path part of packfile URI that appears in the trace output.
160 (merge 0ba558ffb1 if/redact-packfile-uri later to maint).
161
162 * CI has been taught to catch some Unicode directional formatting
163 sequence that can be used in certain mischief.
164 (merge 0e7696c64d js/ci-no-directional-formatting later to maint).
165
166 * The "--date=format:<strftime>" gained a workaround for the lack of
167 system support for a non-local timezone to handle "%s" placeholder.
168 (merge 9b591b9403 jk/strbuf-addftime-seconds-since-epoch later to maint).
169
170 * The "merge" subcommand of "git jump" (in contrib/) silently ignored
171 pathspec and other parameters.
172 (merge 67ba13e5a4 jk/jump-merge-with-pathspec later to maint).
173
174 * The code to decode the length of packed object size has been
175 corrected.
176 (merge 34de5b8eac jt/pack-header-lshift-overflow later to maint).
177
178 * The advice message given by "git pull" when the user hasn't made a
179 choice between merge and rebase still said that the merge is the
180 default, which no longer is the case. This has been corrected.
181 (merge 71076d0edd ah/advice-pull-has-no-preference-between-rebase-and-merge later to maint).
182
183 * "git fetch", when received a bad packfile, can fail with SIGPIPE.
184 This wasn't wrong per-se, but we now detect the situation and fail
185 in a more predictable way.
186 (merge 2a4aed42ec jk/fetch-pack-avoid-sigpipe-to-index-pack later to maint).
187
188 * The function to cull a child process and determine the exit status
189 had two separate code paths for normal callers and callers in a
190 signal handler, and the latter did not yield correct value when the
191 child has caught a signal. The handling of the exit status has
192 been unified for these two code paths. An existing test with
193 flakiness has also been corrected.
194 (merge 5263e22cba jk/t7006-sigpipe-tests-fix later to maint).
195
196 * When a non-existent program is given as the pager, we tried to
197 reuse an uninitialized child_process structure and crashed, which
198 has been fixed.
199 (merge f917f57f40 em/missing-pager later to maint).
200
201 * The single-key-input mode in "git add -p" had some code to handle
202 keys that generate a sequence of input via ReadKey(), which did not
203 handle end-of-file correctly, which has been fixed.
204 (merge fc8a8126df cb/add-p-single-key-fix later to maint).
205
206 * "git rebase -x" added an unnecessary 'exec' instructions before
207 'noop', which has been corrected.
208 (merge cc9dcdee61 en/rebase-x-fix later to maint).
209
210 * When the "git push" command is killed while the receiving end is
211 trying to report what happened to the ref update proposals, the
212 latter used to die, due to SIGPIPE. The code now ignores SIGPIPE
213 to increase our chances to run the post-receive hook after it
214 happens.
215 (merge d34182b9e3 rj/receive-pack-avoid-sigpipe-during-status-reporting later to maint).
216
217 * "git worktree add" showed "Preparing worktree" message to the
218 standard output stream, but when it failed, the message from die()
219 went to the standard error stream. Depending on the order the
220 stdio streams are flushed at the program end, this resulted in
221 confusing output. It has been corrected by sending all the chatty
222 messages to the standard error stream.
223 (merge b50252484f es/worktree-chatty-to-stderr later to maint).
224
225 * Coding guideline document has been updated to clarify what goes to
226 standard error in our system.
227 (merge e258eb4800 es/doc-stdout-vs-stderr later to maint).
228
229 * The sparse-index/sparse-checkout feature had a bug in its use of
230 the matching code to determine which path is in or outside the
231 sparse checkout patterns.
232 (merge 8c5de0d265 ds/sparse-deep-pattern-checkout-fix later to maint).
233
234 * "git rebase -x" by mistake started exporting the GIT_DIR and
235 GIT_WORK_TREE environment variables when the command was rewritten
236 in C, which has been corrected.
237 (merge 434e0636db en/rebase-x-wo-git-dir-env later to maint).
238
239 * When "git log" implicitly enabled the "decoration" processing
240 without being explicitly asked with "--decorate" option, it failed
241 to read and honor the settings given by the "--decorate-refs"
242 option.
243
244 * Other code cleanup, docfix, build fix, etc.
245 (merge 74db416c9c cw/protocol-v2-doc-fix later to maint).
246 (merge f9b2b6684d ja/doc-cleanup later to maint).
247 (merge 7d1b866778 jc/fix-first-object-walk later to maint).
248 (merge 538ac74604 js/trace2-avoid-recursive-errors later to maint).
249 (merge 152923b132 jk/t5319-midx-corruption-test-deflake later to maint).
250 (merge 9081a421a6 ab/checkout-branch-info-leakfix later to maint).
251 (merge 42c456ff81 rs/mergesort later to maint).
252 (merge ad506e6780 tl/midx-docfix later to maint).
253 (merge bf5b83fd8a hk/ci-checkwhitespace-commentfix later to maint).
254 (merge 49f1eb3b34 jk/refs-g11-workaround later to maint).
255 (merge 7d3fc7df70 jt/midx-doc-fix later to maint).
256 (merge 7b089120d9 hn/create-reflog-simplify later to maint).
257 (merge 9e12400da8 cb/mingw-gmtime-r later to maint).
258 (merge 0bf0de6cc7 tb/pack-revindex-on-disk-cleanup later to maint).
259 (merge 2c68f577fc ew/cbtree-remove-unused-and-broken-cb-unlink later to maint).
260 (merge eafd6e7e55 ab/die-with-bug later to maint).
261 (merge 91028f7659 jc/grep-patterntype-default-doc later to maint).