]> git.ipfire.org Git - thirdparty/git.git/blob - Documentation/RelNotes/2.30.0.txt
Merge branch 'en/strmap'
[thirdparty/git.git] / Documentation / RelNotes / 2.30.0.txt
1 Git 2.30 Release Notes
2 ======================
3
4 Updates since v2.29
5 -------------------
6
7 UI, Workflows & Features
8
9 * Userdiff for PHP update.
10
11 * Userdiff for Rust update.
12
13 * Userdiff for CSS update.
14
15 * The command line completion script (in contrib/) learned that "git
16 stash show" takes the options "git diff" takes.
17
18 * "git worktree list" now shows if each worktree is locked. This
19 possibly may open us to show other kinds of states in the future.
20
21 * "git maintenance", an extended big brother of "git gc", continues
22 to evolve.
23
24 * "git push --force-with-lease[=<ref>]" can easily be misused to lose
25 commits unless the user takes good care of their own "git fetch".
26 A new option "--force-if-includes" attempts to ensure that what is
27 being force-pushed was created after examining the commit at the
28 tip of the remote ref that is about to be force-replaced.
29
30 * "git clone" learned clone.defaultremotename configuration variable
31 to customize what nickname to use to call the remote the repository
32 was cloned from.
33
34 * "git checkout" learned to use checkout.guess configuration variable
35 and enable/disable its "--[no-]guess" option accordingly.
36
37 * "git resurrect" script (in contrib/) learned that the object names
38 may be longer than 40-hex depending on the hash function in use.
39
40 * "git diff A...B" learned "git diff --merge-base A B", which is a
41 longer short-hand to say the same thing.
42
43 * A sample 'push-to-checkout' hook, that performs the same as
44 what the built-in default action does, has been added.
45
46 * "git diff" family of commands learned the "-I<regex>" option to
47 ignore hunks whose changed lines all match the given pattern.
48
49 * The userdiff pattern learned to identify the function definition in
50 POSIX shells and bash.
51
52 * "git checkout-index" did not consistently signal an error with its
53 exit status, but now it does.
54
55 * A commit and tag object may have CR at the end of each and
56 every line (you can create such an object with hash-object or
57 using --cleanup=verbatim to decline the default clean-up
58 action), but it would make it impossible to have a blank line
59 to separate the title from the body of the message. We are now
60 more lenient and accept a line with lone CR on it as a blank line,
61 too.
62
63 * Exit codes from "git remote add" etc. were not usable by scripted
64 callers, but now they are.
65
66 * "git archive" now allows compression level higher than "-9"
67 when generating tar.gz output.
68
69 * Zsh autocompletion (in contrib/) update.
70
71
72 Performance, Internal Implementation, Development Support etc.
73
74 * Use "git archive" more to produce the release tarball.
75
76 * GitHub Actions automated test improvement to skip tests on a tree
77 identical to what has already been tested.
78
79 * Test-coverage for running commit-graph task "git maintenance" has
80 been extended.
81
82 * Our test scripts can be told to run only individual pieces while
83 skipping others with the "--run=..." option; they were taught to
84 take a substring of test title, in addition to numbers, to name the
85 test pieces to run.
86
87 * Adjust tests so that they won't scream when the default initial
88 branch name is changed to 'main'.
89
90 * Rewriting "git bisect" in C continues.
91
92 * More preliminary tests have been added to document desired outcome
93 of various "directory rename" situations.
94
95 * Micro clean-up of a couple of test scripts.
96
97 * "git diff" and other commands that share the same machinery to
98 compare with working tree files have been taught to take advantage
99 of the fsmonitor data when available.
100
101 * The code to detect premature EOF in the sideband demultiplexer has
102 been cleaned up.
103
104 * Test scripts are being prepared to transition of the default branch
105 name to 'main'.
106
107 * "git fetch --depth=<n>" over the stateless RPC / smart HTTP
108 transport handled EOF from the client poorly at the server end.
109
110
111 Fixes since v2.29
112 -----------------
113
114 * In 2.29, "--committer-date-is-author-date" option of "rebase" and
115 "am" subcommands lost the e-mail address by mistake, which has been
116 corrected.
117 (merge 5f35edd9d7 jk/committer-date-is-author-date-fix later to maint).
118
119 * "git checkout -p A...B [-- <path>]" did not work, even though the
120 same command without "-p" correctly used the merge-base between
121 commits A and B.
122 (merge 35166b1fb5 dl/checkout-p-merge-base later to maint).
123
124 * The side-band status report can be sent at the same time as the
125 primary payload multiplexed, but the demultiplexer on the receiving
126 end incorrectly split a single status report into two, which has
127 been corrected.
128 (merge 712b0377db js/avoid-split-sideband-message later to maint).
129
130 * "git fast-import" wasted a lot of memory when many marks were in use.
131 (merge 3f018ec716 jk/fast-import-marks-alloc-fix later to maint).
132
133 * A test helper "test_cmp A B" was taught to diagnose missing files A
134 or B as a bug in test, but some tests legitimately wanted to notice
135 a failure to even create file B as an error, in addition to leaving
136 the expected result in it, and were misdiagnosed as a bug. This
137 has been corrected.
138 (merge 262d5ad5a5 es/test-cmp-typocatcher later to maint).
139
140 * When "git commit-graph" detects the same commit recorded more than
141 once while it is merging the layers, it used to die. The code now
142 ignores all but one of them and continues.
143 (merge 85102ac71b ds/commit-graph-merging-fix later to maint).
144
145 * The meaning of a Signed-off-by trailer can vary from project to
146 project; this and also what it means to this project has been
147 clarified in the documentation.
148 (merge 3abd4a67d9 bk/sob-dco later to maint).
149
150 * "git credential' didn't honor the core.askPass configuration
151 variable (among other things), which has been corrected.
152 (merge 567ad2c0f9 tk/credential-config later to maint).
153
154 * Dev support to catch a tentative definition of a variable in our C
155 code as an error.
156 (merge 5539183622 jk/no-common later to maint).
157
158 * "git rebase --rebase-merges" did not correctly pass --gpg-sign
159 command line option to underlying "git merge" when replaying a merge
160 using non-default merge strategy or when replaying an octopus merge
161 (because replaying a two-head merge with the default strategy was
162 done in a separate codepath, the problem did not trigger for most
163 users), which has been corrected.
164 (merge 43ad4f2eca sc/sequencer-gpg-octopus later to maint).
165
166 * "git apply -R" did not handle patches that touch the same path
167 twice correctly, which has been corrected. This is most relevant
168 in a patch that changes a path from a regular file to a symbolic
169 link (and vice versa).
170 (merge b0f266de11 jt/apply-reverse-twice later to maint).
171
172 * A recent oid->hash conversion missed one spot, breaking "git svn".
173 (merge 03bb366de4 bc/svn-hash-oid-fix later to maint).
174
175 * The documentation on the "--abbrev=<n>" option did not say the
176 output may be longer than "<n>" hexdigits, which has been
177 clarified.
178 (merge cda34e0d0c jc/abbrev-doc later to maint).
179
180 * "git p4" now honors init.defaultBranch configuration.
181 (merge 1b09d1917f js/p4-default-branch later to maint).
182
183 * Recently the format of an internal state file "rebase -i" uses has
184 been tightened up for consistency, which would hurt those who start
185 "rebase -i" with old git and then continue with new git. Loosen
186 the reader side a bit (which we may want to tighten again in a year
187 or so).
188 (merge c779386182 jc/sequencer-stopped-sha-simplify later to maint).
189
190 * The code to see if "git stash drop" can safely remove refs/stash
191 has been made more carerful.
192 (merge 4f44c5659b rs/empty-reflog-check-fix later to maint).
193
194 * "git log -L<range>:<path>" is documented to take no pathspec, but
195 this was not enforced by the command line option parser, which has
196 been corrected.
197 (merge 39664cb0ac jc/line-log-takes-no-pathspec later to maint).
198
199 * "git format-patch --output=there" did not work as expected and
200 instead crashed. The option is now supported.
201 (merge dc1672dd10 jk/format-patch-output later to maint).
202
203 * Define ARM64 compiled with MSVC to be little-endian.
204 (merge 0c038fc65a dg/bswap-msvc later to maint).
205
206 * "git rebase -i" did not store ORIG_HEAD correctly.
207 (merge 8843302307 pw/rebase-i-orig-head later to maint).
208
209 * "git blame -L :funcname -- path" did not work well for a path for
210 which a userdiff driver is defined.
211
212 * "make DEVELOPER=1 sparse" used to run sparse and let it emit
213 warnings; now such warnings will cause an error.
214 (merge 521dc56270 jc/sparse-error-for-developer-build later to maint).
215
216 * "git blame --ignore-revs-file=<file>" learned to ignore a
217 non-existent object name in the input, instead of complaining.
218 (merge c714d05875 jc/blame-ignore-fix later to maint).
219
220 * Other code cleanup, docfix, build fix, etc.
221 (merge 3e0a5dc9af cc/doc-filter-branch-typofix later to maint).
222 (merge 32c83afc2c cw/ci-ghwf-check-ws-errors later to maint).
223 (merge 5eb2ed691b rs/tighten-callers-of-deref-tag later to maint).
224 (merge 6db29ab213 jk/fast-import-marks-cleanup later to maint).
225 (merge e5cf6d3df4 nk/dir-c-comment-update later to maint).
226 (merge 5710dcce74 jk/report-fn-typedef later to maint).
227 (merge 9a82db1056 en/sequencer-rollback-lock-cleanup later to maint).
228 (merge 4e1bee9a99 js/t7006-cleanup later to maint).
229 (merge f5bcde6c58 es/tutorial-mention-asciidoc-early later to maint).
230 (merge 714d491af0 so/format-patch-doc-on-default-diff-format later to maint).
231 (merge 0795df4b9b rs/clear-commit-marks-in-repo later to maint).
232 (merge 9542d56379 sd/prompt-local-variable later to maint).
233 (merge 06d43fad18 rs/pack-write-hashwrite-simplify later to maint).
234 (merge b7e20b4373 mc/typofix later to maint).
235 (merge f6bcd9a8a4 js/test-whitespace-fixes later to maint).
236 (merge 53b67a801b js/test-file-size later to maint).