Skip to content

Commit d6d5cbf

Browse files
committed
Merge tag 'v2.23.0-rc2' of git://git.kernel.org/pub/scm/git/git
Git 2.23-rc2 * tag 'v2.23.0-rc2' of git://git.kernel.org/pub/scm/git/git: (63 commits) Git 2.23-rc2 t0000: reword comments for "local" test t: decrease nesting in test_oid_to_path sha1-file: release strbuf after use test-dir-iterator: use path argument directly dir-iterator: release strbuf after use commit-graph: release strbufs after use l10n: reformat some localized strings for v2.23.0 merge-recursive: avoid directory rename detection in recursive case commit-graph: fix bug around octopus merges restore: fix typo in docs doc: typo: s/can not/cannot/ and s/is does/does/ Git 2.23-rc1 log: really flip the --mailmap default RelNotes/2.23.0: fix a few typos and other minor issues RelNotes/2.21.1: typofix log: flip the --mailmap default unconditionally config: work around bug with includeif:onbranch and early config A few more last-minute fixes repack: simplify handling of auto-bitmaps and .keep files ...
2 parents 5532a55 + 2e27de9 commit d6d5cbf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+1041
-396
lines changed

.gitignore

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,10 @@
231231
*.ipdb
232232
*.dll
233233
.vs/
234-
/Debug/
235-
/Release/
234+
*.manifest
235+
Debug/
236+
Release/
237+
/UpgradeLog*.htm
238+
/git.VC.VC.opendb
239+
/git.VC.db
236240
*.dSYM

Documentation/RelNotes/2.22.1.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ Fixes since v2.22
9494

9595
* The configuration variable rebase.rescheduleFailedExec should be
9696
effective only while running an interactive rebase and should not
97-
affect anything when running an non-interactive one, which was not
97+
affect anything when running a non-interactive one, which was not
9898
the case. This has been corrected.
9999

100100
* "git submodule foreach" did not protect command line options passed

Documentation/RelNotes/2.23.0.txt

Lines changed: 13 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ Backward compatibility note
1010
prerequisite patches in an unstable way, which has been updated to
1111
compute in a way that is compatible with "git patch-id --stable".
1212

13+
* The "git log" command by default behaves as if the --mailmap option
14+
was given.
15+
1316

1417
UI, Workflows & Features
1518

@@ -52,7 +55,7 @@ UI, Workflows & Features
5255

5356
* "git fetch" and "git pull" reports when a fetch results in
5457
non-fast-forward updates to let the user notice unusual situation.
55-
The commands learned "--no-shown-forced-updates" option to disable
58+
The commands learned "--no-show-forced-updates" option to disable
5659
this safety feature.
5760

5861
* Two new commands "git switch" and "git restore" are introduced to
@@ -68,7 +71,7 @@ UI, Workflows & Features
6871
* The conditional inclusion mechanism learned to base the choice on
6972
the branch the HEAD currently is on.
7073

71-
* "git rev-list --objects" learned with "--no-object-names" option to
74+
* "git rev-list --objects" learned the "--no-object-names" option to
7275
squelch the path to the object that is used as a grouping hint for
7376
pack-objects.
7477

@@ -91,11 +94,6 @@ UI, Workflows & Features
9194
commit-graph files now, which allows the commit-graph files to be
9295
updated incrementally.
9396

94-
* The "git log" command learns to issue a warning when log.mailmap
95-
configuration is not set and --[no-]mailmap option is not used, to
96-
prepare users for future versions of Git that uses the mailmap by
97-
default.
98-
9997
* "git range-diff" output has been tweaked for easier identification
10098
of which part of what file the patch shown is about.
10199

@@ -106,7 +104,7 @@ Performance, Internal Implementation, Development Support etc.
106104
no longer be used.
107105

108106
* Developer support to emulate unsatisfied prerequisites in tests to
109-
ensure that the remainer of the tests still succeeds when tests
107+
ensure that the remainder of the tests still succeeds when tests
110108
with prerequisites are skipped.
111109

112110
* "git update-server-info" learned not to rewrite the file with the
@@ -121,7 +119,7 @@ Performance, Internal Implementation, Development Support etc.
121119
* Prepare use of reachability index in topological walker that works
122120
on a range (A..B).
123121

124-
* A new tutorial targetting specifically aspiring git-core
122+
* A new tutorial targeting specifically aspiring git-core
125123
developers has been added.
126124

127125
* Auto-detect how to tell HP-UX aCC where to use dynamically linked
@@ -163,7 +161,6 @@ Performance, Internal Implementation, Development Support etc.
163161
* We have been trying out a few language features outside c89; the
164162
coding guidelines document did not talk about them and instead had
165163
a blanket ban against them.
166-
(merge cc0c42975a jc/post-c89-rules-doc later to maint).
167164

168165
* A test helper has been introduced to optimize preparation of test
169166
repositories with many simple commits, and a handful of test
@@ -177,16 +174,13 @@ Fixes since v2.22
177174
ought to be relative to the directory "git init" gets invoked in,
178175
but it instead was made relative to the repository, which has been
179176
corrected.
180-
(merge e1df7fe43f nd/init-relative-template-fix later to maint).
181177

182178
* "git worktree add" used to fail when another worktree connected to
183179
the same repository was corrupt, which has been corrected.
184-
(merge 105df73e71 nd/corrupt-worktrees later to maint).
185180

186181
* The ownership rule for the file descriptor to fast-import remote
187-
backend was mixed up, leading to unrelated file descriptor getting
182+
backend was mixed up, leading to an unrelated file descriptor getting
188183
closed, which has been fixed.
189-
(merge 3203566a71 mh/import-transport-fd-fix later to maint).
190184

191185
* A "merge -c" instruction during "git rebase --rebase-merges" should
192186
give the user a chance to edit the log message, even when there is
@@ -195,82 +189,65 @@ Fixes since v2.22
195189
corrected.
196190

197191
* Code cleanup and futureproof.
198-
(merge 31f5256c82 ds/object-info-for-prefetch-fix later to maint).
199192

200193
* More parameter validation.
201-
(merge de99eb0c24 es/grep-require-name-when-needed later to maint).
202194

203195
* "git update-server-info" used to leave stale packfiles in its
204196
output, which has been corrected.
205-
(merge e941c48d49 ew/server-info-remove-crufts later to maint).
206197

207198
* The server side support for "git fetch" used to show incorrect
208199
value for the HEAD symbolic ref when the namespace feature is in
209200
use, which has been corrected.
210-
(merge 533e088250 jk/HEAD-symref-in-xfer-namespaces later to maint).
211201

212202
* "git am -i --resolved" segfaulted after trying to see a commit as
213203
if it were a tree, which has been corrected.
214-
(merge 7663e438c5 jk/am-i-resolved-fix later to maint).
215204

216205
* "git bundle verify" needs to see if prerequisite objects exist in
217206
the receiving repository, but the command did not check if we are
218207
in a repository upfront, which has been corrected.
219-
(merge 3bbbe467f2 js/bundle-verify-require-object-store later to maint).
220208

221209
* "git merge --squash" is designed to update the working tree and the
222210
index without creating the commit, and this cannot be countermanded
223211
by adding the "--commit" option; the command now refuses to work
224212
when both options are given.
225-
(merge 1d14d0c994 vv/merge-squash-with-explicit-commit later to maint).
226213

227214
* The data collected by fsmonitor was not properly written back to
228215
the on-disk index file, breaking t7519 tests occasionally, which
229216
has been corrected.
230-
(merge b5a8169752 js/fsmonitor-unflake later to maint).
231217

232218
* Update to Unicode 12.1 width table.
233-
(merge 5817f9caa3 bb/unicode-12.1-reiwa later to maint).
234219

235220
* The command line to invoke a "git cat-file" command from inside
236221
"git p4" was not properly quoted to protect a caret and running a
237222
broken command on Windows, which has been corrected.
238-
(merge c3f2358de3 mm/p4-unshelve-windows-fix later to maint).
239223

240224
* "git request-pull" learned to warn when the ref we ask them to pull
241225
from in the local repository and in the published repository are
242226
different.
243-
(merge 0454220d66 pb/request-pull-verify-remote-ref later to maint).
244227

245228
* When creating a partial clone, the object filtering criteria is
246229
recorded for the origin of the clone, but this incorrectly used a
247230
hardcoded name "origin" to name that remote; it has been corrected
248231
to honor the "--origin <name>" option.
249-
(merge 1c4a9f9114 xl/record-partial-clone-origin later to maint).
250232

251233
* "git fetch" into a lazy clone forgot to fetch base objects that are
252234
necessary to complete delta in a thin packfile, which has been
253235
corrected.
254-
(merge 810e19322d jt/partial-clone-missing-ref-delta-base later to maint).
255236

256237
* The filter_data used in the list-objects-filter (which manages a
257238
lazily sparse clone repository) did not use the dynamic array API
258239
correctly---'nr' is supposed to point at one past the last element
259240
of the array in use. This has been corrected.
260-
(merge 7140600e2e md/list-objects-filter-memfix later to maint).
261241

262242
* The description about slashes in gitignore patterns (used to
263243
indicate things like "anchored to this level only" and "only
264244
matches directories") has been revamped.
265-
(merge 1a58bad014 an/ignore-doc-update later to maint).
266245

267246
* The URL decoding code has been updated to avoid going past the end
268247
of the string while parsing %-<hex>-<hex> sequence.
269-
(merge d37dc239a4 md/url-parse-harden later to maint).
270248

271249
* The list of for-each like macros used by clang-format has been
272250
updated.
273-
(merge fc7e03aace mo/clang-format-for-each-update later to maint).
274251

275252
* "git branch --list" learned to show branches that are checked out
276253
in other worktrees connected to the same repository prefixed with
@@ -280,48 +257,38 @@ Fixes since v2.22
280257

281258
* Code restructuring during 2.20 period broke fetching tags via
282259
"import" based transports.
283-
(merge f80d922355 fc/fetch-with-import-fix later to maint).
284260

285261
* The commit-graph file is now part of the "files that the runtime
286262
may keep open file descriptors on, all of which would need to be
287263
closed when done with the object store", and the file descriptor to
288264
an existing commit-graph file now is closed before "gc" finalizes a
289265
new instance to replace it.
290-
(merge 2d511cfc0b ds/close-object-store later to maint).
291266

292267
* "git checkout -p" needs to selectively apply a patch in reverse,
293268
which did not work well.
294-
(merge 2bd69b9024 pw/add-p-recount later to maint).
295269

296270
* Code clean-up to avoid signed integer wraparounds during binary search.
297-
(merge 568a05c5ec rs/avoid-overflow-in-midpoint-computation later to maint).
298271

299272
* "git interpret-trailers" always treated '#' as the comment
300273
character, regardless of core.commentChar setting, which has been
301274
corrected.
302-
(merge 29c83fc23f jk/trailers-use-config later to maint).
303275

304276
* "git stash show 23" used to work, but no more after getting
305277
rewritten in C; this regression has been corrected.
306-
(merge 63b50c8ffe tg/stash-ref-by-index-fix later to maint).
307278

308279
* "git rebase --abort" used to leave refs/rewritten/ when concluding
309280
"git rebase -r", which has been corrected.
310-
(merge d559f502c5 pw/rebase-abort-clean-rewritten later to maint).
311281

312282
* An incorrect list of options was cached after command line
313283
completion failed (e.g. trying to complete a command that requires
314284
a repository outside one), which has been corrected.
315-
(merge 69702523af nd/completion-no-cache-failure later to maint).
316285

317286
* The code to parse scaled numbers out of configuration files has
318287
been made more robust and also easier to follow.
319-
(merge 39c575c969 rs/config-unit-parsing later to maint).
320288

321289
* The codepath to compute delta islands used to spew progress output
322290
without giving the callers any way to squelch it, which has been
323291
fixed.
324-
(merge bdbdf42f8a jk/delta-islands-progress-fix later to maint).
325292

326293
* Protocol capabilities that go over wire should never be translated,
327294
but it was incorrectly marked for translation, which has been
@@ -330,23 +297,19 @@ Fixes since v2.22
330297

331298
* Use "Erase in Line" CSI sequence that is already used in the editor
332299
support to clear cruft in the progress output.
333-
(merge 5b12e3123b sg/rebase-progress later to maint).
334300

335301
* "git submodule foreach" did not protect command line options passed
336302
to the command to be run in each submodule correctly, when the
337303
"--recursive" option was in use.
338-
(merge 30db18b148 ms/submodule-foreach-fix later to maint).
339304

340305
* The configuration variable rebase.rescheduleFailedExec should be
341306
effective only while running an interactive rebase and should not
342-
affect anything when running an non-interactive one, which was not
307+
affect anything when running a non-interactive one, which was not
343308
the case. This has been corrected.
344-
(merge 906b63942a js/rebase-reschedule-applies-only-to-interactive later to maint).
345309

346310
* The "git clone" documentation refers to command line options in its
347311
description in the short form; they have been replaced with long
348312
forms to make them more recognisable.
349-
(merge bfc8c84ed5 qn/clone-doc-use-long-form later to maint).
350313

351314
* Generation of pack bitmaps are now disabled when .keep files exist,
352315
as these are mutually exclusive features.
@@ -355,56 +318,31 @@ Fixes since v2.22
355318
* "git rm" to resolve a conflicted path leaked an internal message
356319
"needs merge" before actually removing the path, which was
357320
confusing. This has been corrected.
358-
(merge b2b1f615ce jc/denoise-rm-to-resolve later to maint).
359321

360322
* "git stash --keep-index" did not work correctly on paths that have
361323
been removed, which has been fixed.
362324
(merge b932f6a5e8 tg/stash-keep-index-with-removed-paths later to maint).
363325

364326
* Window 7 update ;-)
365-
(merge eb7c786314 js/mingw-spawn-with-spaces-in-path later to maint).
366327

367328
* A codepath that reads from GPG for signed object verification read
368329
past the end of allocated buffer, which has been fixed.
369-
(merge 64c45dc72e sr/gpg-interface-stop-at-the-end later to maint).
370330

371331
* "git clean" silently skipped a path when it cannot lstat() it; now
372332
it gives a warning.
373-
(merge b09364c47a js/clean-report-too-long-a-path later to maint).
374333

375334
* "git push --atomic" that goes over the transport-helper (namely,
376335
the smart http transport) failed to prevent refs to be pushed when
377336
it can locally tell that one of the ref update will fail without
378337
having to consult the other end, which has been corrected.
379-
(merge 2581ea3d31 es/local-atomic-push-failure-with-http later to maint).
380338

381339
* The internal diff machinery can be made to read out of bounds while
382-
looking for --funcion-context line in a corner case, which has been
340+
looking for --function-context line in a corner case, which has been
383341
corrected.
384342
(merge b777f3fd61 jk/xdiff-clamp-funcname-context-index later to maint).
385343

386344
* Other code cleanup, docfix, build fix, etc.
387-
(merge f547101b26 es/git-debugger-doc later to maint).
388-
(merge 7877ac3d7b js/bisect-helper-check-get-oid-return-value later to maint).
389-
(merge 0108f47eb3 sw/git-p4-unshelve-branched-files later to maint).
390-
(merge 9df8f734fd cm/send-email-document-req-modules later to maint).
391-
(merge afc3bf6eb1 ab/hash-object-doc later to maint).
392-
(merge 1fde99cfc7 po/doc-branch later to maint).
393-
(merge 459842e1c2 dl/config-alias-doc later to maint).
394-
(merge 5d137fc2c7 cb/fsmonitor-intfix later to maint).
395-
(merge 921d49be86 rs/copy-array later to maint).
396-
(merge cc8d872e69 js/t3404-typofix later to maint).
397-
(merge 729a9b558b cb/mkstemps-uint-type-fix later to maint).
398-
(merge 9dae4fe79f js/gcc-8-and-9 later to maint).
399-
(merge ed33bd8f30 js/t0001-case-insensitive later to maint).
400-
(merge dfa880e336 jw/gitweb-sample-update later to maint).
401-
(merge e532a90a9f sg/t5551-fetch-smart-error-is-translated later to maint).
402-
(merge 8d45ad8c29 jt/t5551-test-chunked later to maint).
403-
(merge 1a64e07d23 sg/git-C-empty-doc later to maint).
404-
(merge 37a2e35395 sg/ci-brew-gcc-workaround later to maint).
405-
(merge 24df0d49c4 js/trace2-signo-typofix later to maint).
406345
(merge fbec05c210 cc/test-oidmap later to maint).
407-
(merge 7926cee904 di/readme-markup-fix later to maint).
408-
(merge 02638d1e11 vn/xmmap-gently later to maint).
409-
(merge f7bf24d4dd rm/gpg-program-doc-fix later to maint).
410-
(merge 3aef54e8b8 js/unmap-before-ext-diff later to maint).
346+
(merge 7a06fb038c jk/no-system-includes-in-dot-c later to maint).
347+
(merge 81ed2b405c cb/xdiff-no-system-includes-in-dot-c later to maint).
348+
(merge d61e6ce1dd sg/fsck-config-in-doc later to maint).

Documentation/config/log.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ log.showSignature::
4141
log.mailmap::
4242
If true, makes linkgit:git-log[1], linkgit:git-show[1], and
4343
linkgit:git-whatchanged[1] assume `--use-mailmap`, otherwise
44-
assume `--no-use-mailmap`. False by default.
44+
assume `--no-use-mailmap`. True by default.

Documentation/config/transfer.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ linkgit:git-receive-pack[1]. On the fetch side, malformed objects will
1717
instead be left unreferenced in the repository.
1818
+
1919
Due to the non-quarantine nature of the `fetch.fsckObjects`
20-
implementation it can not be relied upon to leave the object store
20+
implementation it cannot be relied upon to leave the object store
2121
clean like `receive.fsckObjects` can.
2222
+
2323
As objects are unpacked they're written to the object store, so there

Documentation/git-cvsserver.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ write so it might not be enough to grant the users using
232232
'git-cvsserver' write access to the database file without granting
233233
them write access to the directory, too.
234234

235-
The database can not be reliably regenerated in a
235+
The database cannot be reliably regenerated in a
236236
consistent form after the branch it is tracking has changed.
237237
Example: For merged branches, 'git-cvsserver' only tracks
238238
one branch of development, and after a 'git merge' an

Documentation/git-fetch.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ This updates (or creates, as necessary) branches `pu` and `tmp` in
262262
the local repository by fetching from the branches (respectively)
263263
`pu` and `maint` from the remote repository.
264264
+
265-
The `pu` branch will be updated even if it is does not fast-forward,
265+
The `pu` branch will be updated even if it does not fast-forward,
266266
because it is prefixed with a plus sign; `tmp` will not be.
267267

268268
* Peek at a remote's branch, without configuring the remote in your local
@@ -285,7 +285,7 @@ BUGS
285285
----
286286
Using --recurse-submodules can only fetch new commits in already checked
287287
out submodules right now. When e.g. upstream added a new submodule in the
288-
just fetched commits of the superproject the submodule itself can not be
288+
just fetched commits of the superproject the submodule itself cannot be
289289
fetched, making it impossible to check out that submodule later without
290290
having to do a fetch again. This is expected to be fixed in a future Git
291291
version.

Documentation/git-fsck.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,11 @@ care about this output and want to speed it up further.
104104
progress status even if the standard error stream is not
105105
directed to a terminal.
106106

107+
CONFIGURATION
108+
-------------
109+
110+
include::config/fsck.txt[]
111+
107112
DISCUSSION
108113
----------
109114

Documentation/git-pull.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ BUGS
249249
----
250250
Using --recurse-submodules can only fetch new commits in already checked
251251
out submodules right now. When e.g. upstream added a new submodule in the
252-
just fetched commits of the superproject the submodule itself can not be
252+
just fetched commits of the superproject the submodule itself cannot be
253253
fetched, making it impossible to check out that submodule later without
254254
having to do a fetch again. This is expected to be fixed in a future Git
255255
version.

Documentation/git-restore.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ OPTIONS
3939
commit, branch or tag associated with it.
4040
+
4141
If not specified, the default restore source for the working tree is
42-
the index, and the default restore source for the index index is
42+
the index, and the default restore source for the index is
4343
`HEAD`. When both `--staged` and `--worktree` are specified,
4444
`--source` must also be specified.
4545

0 commit comments

Comments
 (0)