Skip to content

Commit 03d0593

Browse files
committed
Merge tag 'v2.41.0-rc0'
Git 2.41-rc0 * tag 'v2.41.0-rc0': (508 commits) Git 2.41-rc0 t5583: fix shebang line merge-tree: load default git config fetch: introduce machine-parseable "porcelain" output format fetch: move option related variables into main function fetch: lift up parsing of "fetch.output" config variable fetch: introduce `display_format` enum fetch: refactor calculation of the display table width fetch: print left-hand side when fetching HEAD:foo fetch: add a test to exercise invalid output formats fetch: split out tests for output format fetch: fix `--no-recurse-submodules` with multi-remote fetches The eighteenth batch The seventeenth batch diff-files: integrate with sparse index t1092: add tests for `git diff-files` test: rev-parse-upstream: add missing cmp t: drop "verbose" helper function t7001: use "ls-files --format" instead of "cut" t7001: avoid git on upstream of pipe ...
2 parents f66ad35 + 0df2c18 commit 03d0593

File tree

804 files changed

+14318
-7037
lines changed

Some content is hidden

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

804 files changed

+14318
-7037
lines changed

.mailmap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ Derrick Stolee <[email protected]> <[email protected]>
6565
Deskin Miller <[email protected]>
6666
Đoàn Trần Công Danh <[email protected]> Doan Tran Cong Danh
6767
Dirk Süsserott <[email protected]>
68+
6869
6970
7071
Eric S. Raymond <[email protected]>

Documentation/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ howto-index.txt
1010
doc.dep
1111
cmds-*.txt
1212
mergetools-*.txt
13-
manpage-base-url.xsl
1413
SubmittingPatches.txt
1514
tmp-doc-diff/
1615
GIT-ASCIIDOCFLAGS

Documentation/CodingGuidelines

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,8 +442,12 @@ For C programs:
442442
detail.
443443

444444
- The first #include in C files, except in platform specific compat/
445-
implementations, must be either "git-compat-util.h", "cache.h" or
446-
"builtin.h". You do not have to include more than one of these.
445+
implementations and sha1dc/, must be either "git-compat-util.h" or
446+
one of the approved headers that includes it first for you. (The
447+
approved headers currently include "cache.h", "builtin.h",
448+
"t/helper/test-tool.h", "xdiff/xinclude.h", or
449+
"reftable/system.h"). You do not have to include more than one of
450+
these.
447451

448452
- A C file must directly include the header files that declare the
449453
functions and the types it uses, except for the functions and types

Documentation/Makefile

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -144,14 +144,16 @@ man5dir = $(mandir)/man5
144144
man7dir = $(mandir)/man7
145145
# DESTDIR =
146146

147+
GIT_DATE := $(shell git show --quiet --pretty='%as')
148+
147149
ASCIIDOC = asciidoc
148150
ASCIIDOC_EXTRA =
149151
ASCIIDOC_HTML = xhtml11
150152
ASCIIDOC_DOCBOOK = docbook
151153
ASCIIDOC_CONF = -f asciidoc.conf
152154
ASCIIDOC_COMMON = $(ASCIIDOC) $(ASCIIDOC_EXTRA) $(ASCIIDOC_CONF) \
153-
-amanversion=$(GIT_VERSION) \
154-
-amanmanual='Git Manual' -amansource='Git'
155+
-amanmanual='Git Manual' -amansource='Git $(GIT_VERSION)' \
156+
-arevdate='$(GIT_DATE)'
155157
ASCIIDOC_DEPS = asciidoc.conf GIT-ASCIIDOCFLAGS
156158
TXT_TO_HTML = $(ASCIIDOC_COMMON) -b $(ASCIIDOC_HTML)
157159
TXT_TO_XML = $(ASCIIDOC_COMMON) -b $(ASCIIDOC_DOCBOOK)
@@ -189,15 +191,7 @@ endif
189191
ifndef MAN_BASE_URL
190192
MAN_BASE_URL = file://$(htmldir)/
191193
endif
192-
XMLTO_EXTRA += -m manpage-base-url.xsl
193-
194-
# If your target system uses GNU groff, it may try to render
195-
# apostrophes as a "pretty" apostrophe using unicode. This breaks
196-
# cut&paste, so you should set GNU_ROFF to force them to be ASCII
197-
# apostrophes. Unfortunately does not work with non-GNU roff.
198-
ifdef GNU_ROFF
199-
XMLTO_EXTRA += -m manpage-quote-apos.xsl
200-
endif
194+
XMLTO_EXTRA += --stringparam man.base.url.for.relative.links='$(MAN_BASE_URL)'
201195

202196
ifdef USE_ASCIIDOCTOR
203197
ASCIIDOC = asciidoctor
@@ -339,7 +333,6 @@ clean:
339333
$(RM) technical/*.html technical/api-index.txt
340334
$(RM) SubmittingPatches.txt
341335
$(RM) $(cmds_txt) $(mergetools_txt) *.made
342-
$(RM) manpage-base-url.xsl
343336
$(RM) GIT-ASCIIDOCFLAGS
344337

345338
$(MAN_HTML): %.html : %.txt $(ASCIIDOC_DEPS)
@@ -348,11 +341,7 @@ $(MAN_HTML): %.html : %.txt $(ASCIIDOC_DEPS)
348341
$(OBSOLETE_HTML): %.html : %.txto $(ASCIIDOC_DEPS)
349342
$(QUIET_ASCIIDOC)$(TXT_TO_HTML) -o $@ $<
350343

351-
manpage-base-url.xsl: manpage-base-url.xsl.in
352-
$(QUIET_GEN)sed "s|@@MAN_BASE_URL@@|$(MAN_BASE_URL)|" $< > $@
353-
354-
355-
manpage-prereqs := manpage-base-url.xsl $(wildcard manpage*.xsl)
344+
manpage-prereqs := $(wildcard manpage*.xsl)
356345
manpage-cmd = $(QUIET_XMLTO)$(XMLTO) -m $(MANPAGE_XSL) $(XMLTO_EXTRA) man $<
357346

358347
%.1 : %.xml $(manpage-prereqs)

Documentation/MyFirstContribution.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1164,28 +1164,28 @@ After you run this command, `format-patch` will output the patches to the `psuh/
11641164
directory, alongside the v1 patches. Using a single directory makes it easy to
11651165
refer to the old v1 patches while proofreading the v2 patches, but you will need
11661166
to be careful to send out only the v2 patches. We will use a pattern like
1167-
"psuh/v2-*.patch" (not "psuh/*.patch", which would match v1 and v2 patches).
1167+
`psuh/v2-*.patch` (not `psuh/*.patch`, which would match v1 and v2 patches).
11681168

11691169
Edit your cover letter again. Now is a good time to mention what's different
11701170
between your last version and now, if it's something significant. You do not
11711171
need the exact same body in your second cover letter; focus on explaining to
11721172
reviewers the changes you've made that may not be as visible.
11731173

1174-
You will also need to go and find the Message-Id of your previous cover letter.
1174+
You will also need to go and find the Message-ID of your previous cover letter.
11751175
You can either note it when you send the first series, from the output of `git
11761176
send-email`, or you can look it up on the
11771177
https://lore.kernel.org/git[mailing list]. Find your cover letter in the
1178-
archives, click on it, then click "permalink" or "raw" to reveal the Message-Id
1178+
archives, click on it, then click "permalink" or "raw" to reveal the Message-ID
11791179
header. It should match:
11801180

11811181
----
1182-
Message-Id: <[email protected]>
1182+
Message-ID: <[email protected]>
11831183
----
11841184

1185-
Your Message-Id is `<[email protected]>`. This example will be used
1186-
below as well; make sure to replace it with the correct Message-Id for your
1187-
**previous cover letter** - that is, if you're sending v2, use the Message-Id
1188-
from v1; if you're sending v3, use the Message-Id from v2.
1185+
Your Message-ID is `<[email protected]>`. This example will be used
1186+
below as well; make sure to replace it with the correct Message-ID for your
1187+
**previous cover letter** - that is, if you're sending v2, use the Message-ID
1188+
from v1; if you're sending v3, use the Message-ID from v2.
11891189

11901190
While you're looking at the email, you should also note who is CC'd, as it's
11911191
common practice in the mailing list to keep all CCs on a thread. You can add

Documentation/RelNotes/2.30.9.txt

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
Git v2.30.9 Release Notes
2+
=========================
3+
4+
This release addresses the security issues CVE-2023-25652,
5+
CVE-2023-25815, and CVE-2023-29007.
6+
7+
8+
Fixes since v2.30.8
9+
-------------------
10+
11+
* CVE-2023-25652:
12+
13+
By feeding specially crafted input to `git apply --reject`, a
14+
path outside the working tree can be overwritten with partially
15+
controlled contents (corresponding to the rejected hunk(s) from
16+
the given patch).
17+
18+
* CVE-2023-25815:
19+
20+
When Git is compiled with runtime prefix support and runs without
21+
translated messages, it still used the gettext machinery to
22+
display messages, which subsequently potentially looked for
23+
translated messages in unexpected places. This allowed for
24+
malicious placement of crafted messages.
25+
26+
* CVE-2023-29007:
27+
28+
When renaming or deleting a section from a configuration file,
29+
certain malicious configuration values may be misinterpreted as
30+
the beginning of a new configuration section, leading to arbitrary
31+
configuration injection.
32+
33+
Credit for finding CVE-2023-25652 goes to Ry0taK, and the fix was
34+
developed by Taylor Blau, Junio C Hamano and Johannes Schindelin,
35+
with the help of Linus Torvalds.
36+
37+
Credit for finding CVE-2023-25815 goes to Maxime Escourbiac and
38+
Yassine BENGANA of Michelin, and the fix was developed by Johannes
39+
Schindelin.
40+
41+
Credit for finding CVE-2023-29007 goes to André Baptista and Vítor Pinho
42+
of Ethiack, and the fix was developed by Taylor Blau, and Johannes
43+
Schindelin, with help from Jeff King, and Patrick Steinhardt.

Documentation/RelNotes/2.31.8.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Git v2.31.8 Release Notes
2+
=========================
3+
4+
This release merges the fixes that appear in v2.30.9 to address the
5+
security issues CVE-2023-25652, CVE-2023-25815, and CVE-2023-29007;
6+
see the release notes for that version for details.

Documentation/RelNotes/2.32.7.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Git v2.32.7 Release Notes
2+
=========================
3+
4+
This release merges the fixes that appear in v2.30.9 and v2.31.8 to
5+
address the security issues CVE-2023-25652, CVE-2023-25815, and
6+
CVE-2023-29007; see the release notes for these versions for
7+
details.

Documentation/RelNotes/2.33.8.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Git v2.33.8 Release Notes
2+
=========================
3+
4+
This release merges the fixes that appear in v2.30.9, v2.31.8 and
5+
v2.32.7 to address the security issues CVE-2023-25652,
6+
CVE-2023-25815, and CVE-2023-29007; see the release notes for these
7+
versions for details.

Documentation/RelNotes/2.34.8.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Git v2.34.8 Release Notes
2+
=========================
3+
4+
This release merges the fixes that appear in v2.30.9, v2.31.8,
5+
v2.32.7 and v2.33.8 to address the security issues CVE-2023-25652,
6+
CVE-2023-25815, and CVE-2023-29007; see the release notes for these
7+
versions for details.

0 commit comments

Comments
 (0)