Skip to content

Commit 146b9c6

Browse files
committed
Import git v2.42.0
1 parent 732cb8d commit 146b9c6

File tree

1,227 files changed

+71190
-29225
lines changed

Some content is hidden

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

1,227 files changed

+71190
-29225
lines changed

.gitattributes

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
* whitespace=!indent,trail,space
22
*.[ch] whitespace=indent,trail,space diff=cpp
3-
*.sh whitespace=indent,trail,space eol=lf
4-
*.perl eol=lf diff=perl
5-
*.pl eof=lf diff=perl
6-
*.pm eol=lf diff=perl
7-
*.py eol=lf diff=python
8-
*.bat eol=crlf
3+
*.sh whitespace=indent,trail,space text eol=lf
4+
*.perl text eol=lf diff=perl
5+
*.pl text eof=lf diff=perl
6+
*.pm text eol=lf diff=perl
7+
*.py text eol=lf diff=python
8+
*.bat text eol=crlf
99
CODE_OF_CONDUCT.md -whitespace
10-
/Documentation/**/*.txt eol=lf
11-
/command-list.txt eol=lf
12-
/GIT-VERSION-GEN eol=lf
13-
/mergetools/* eol=lf
14-
/t/oid-info/* eol=lf
10+
/Documentation/**/*.txt text eol=lf
11+
/command-list.txt text eol=lf
12+
/GIT-VERSION-GEN text eol=lf
13+
/mergetools/* text eol=lf
14+
/t/oid-info/* text eol=lf
1515
/Documentation/git-merge.txt conflict-marker-size=32
1616
/Documentation/gitk.txt conflict-marker-size=32
1717
/Documentation/user-manual.txt conflict-marker-size=32

.github/workflows/check-whitespace.yml

Lines changed: 52 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,42 +9,83 @@ on:
99
pull_request:
1010
types: [opened, synchronize]
1111

12+
# Avoid unnecessary builds. Unlike the main CI jobs, these are not
13+
# ci-configurable (but could be).
14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.ref }}
16+
cancel-in-progress: true
17+
1218
jobs:
1319
check-whitespace:
1420
runs-on: ubuntu-latest
1521
steps:
16-
- uses: actions/checkout@v2
22+
- uses: actions/checkout@v3
1723
with:
1824
fetch-depth: 0
1925

2026
- name: git log --check
2127
id: check_out
2228
run: |
23-
log=
29+
baseSha=${{github.event.pull_request.base.sha}}
30+
problems=()
2431
commit=
25-
while read dash etc
32+
commitText=
33+
commitTextmd=
34+
goodparent=
35+
while read dash sha etc
2636
do
2737
case "${dash}" in
2838
"---")
29-
commit="${etc}"
39+
if test -z "${commit}"
40+
then
41+
goodparent=${sha}
42+
fi
43+
commit="${sha}"
44+
commitText="${sha} ${etc}"
45+
commitTextmd="[${sha}](https://github.com/${{ github.repository }}/commit/${sha}) ${etc}"
3046
;;
3147
"")
3248
;;
3349
*)
3450
if test -n "${commit}"
3551
then
36-
log="${log}\n${commit}"
52+
problems+=("1) --- ${commitTextmd}")
3753
echo ""
38-
echo "--- ${commit}"
54+
echo "--- ${commitText}"
55+
commit=
3956
fi
40-
commit=
41-
log="${log}\n${dash} ${etc}"
42-
echo "${dash} ${etc}"
57+
case "${dash}" in
58+
*:[1-9]*:) # contains file and line number information
59+
dashend=${dash#*:}
60+
problems+=("[${dash}](https://github.com/${{ github.repository }}/blob/${{github.event.pull_request.head.ref}}/${dash%%:*}#L${dashend%:}) ${sha} ${etc}")
61+
;;
62+
*)
63+
problems+=("\`${dash} ${sha} ${etc}\`")
64+
;;
65+
esac
66+
echo "${dash} ${sha} ${etc}"
4367
;;
4468
esac
45-
done <<< $(git log --check --pretty=format:"---% h% s" ${{github.event.pull_request.base.sha}}..)
69+
done <<< $(git log --check --pretty=format:"---% h% s" ${baseSha}..)
4670
47-
if test -n "${log}"
71+
if test ${#problems[*]} -gt 0
4872
then
73+
if test -z "${commit}"
74+
then
75+
goodparent=${baseSha: 0:7}
76+
fi
77+
echo "🛑 Please review the Summary output for further information."
78+
echo "### :x: A whitespace issue was found in one or more of the commits." >$GITHUB_STEP_SUMMARY
79+
echo "" >>$GITHUB_STEP_SUMMARY
80+
echo "Run these commands to correct the problem:" >>$GITHUB_STEP_SUMMARY
81+
echo "1. \`git rebase --whitespace=fix ${goodparent}\`" >>$GITHUB_STEP_SUMMARY
82+
echo "1. \`git push --force\`" >>$GITHUB_STEP_SUMMARY
83+
echo " " >>$GITHUB_STEP_SUMMARY
84+
echo "Errors:" >>$GITHUB_STEP_SUMMARY
85+
for i in "${problems[@]}"
86+
do
87+
echo "${i}" >>$GITHUB_STEP_SUMMARY
88+
done
89+
4990
exit 2
5091
fi

.github/workflows/l10n.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ name: git-l10n
22

33
on: [push, pull_request_target]
44

5+
# Avoid unnecessary builds. Unlike the main CI jobs, these are not
6+
# ci-configurable (but could be).
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.ref }}
9+
cancel-in-progress: true
10+
511
jobs:
612
git-po-helper:
713
if: >-

.github/workflows/main.yml

Lines changed: 45 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
outputs:
1313
enabled: ${{ steps.check-ref.outputs.enabled }}${{ steps.skip-if-redundant.outputs.enabled }}
14+
skip_concurrent: ${{ steps.check-ref.outputs.skip_concurrent }}
1415
steps:
1516
- name: try to clone ci-config branch
1617
run: |
@@ -34,7 +35,15 @@ jobs:
3435
then
3536
enabled=no
3637
fi
38+
39+
skip_concurrent=yes
40+
if test -x config-repo/ci/config/skip-concurrent &&
41+
! config-repo/ci/config/skip-concurrent '${{ github.ref }}'
42+
then
43+
skip_concurrent=no
44+
fi
3745
echo "enabled=$enabled" >>$GITHUB_OUTPUT
46+
echo "skip_concurrent=$skip_concurrent" >>$GITHUB_OUTPUT
3847
- name: skip if the commit or tree was already tested
3948
id: skip-if-redundant
4049
uses: actions/github-script@v6
@@ -82,6 +91,9 @@ jobs:
8291
needs: ci-config
8392
if: needs.ci-config.outputs.enabled == 'yes'
8493
runs-on: windows-latest
94+
concurrency:
95+
group: windows-build-${{ github.ref }}
96+
cancel-in-progress: ${{ needs.ci-config.outputs.skip_concurrent == 'yes' }}
8597
steps:
8698
- uses: actions/checkout@v3
8799
- uses: git-for-windows/setup-git-for-windows-sdk@v1
@@ -101,11 +113,14 @@ jobs:
101113
windows-test:
102114
name: win test
103115
runs-on: windows-latest
104-
needs: [windows-build]
116+
needs: [ci-config, windows-build]
105117
strategy:
106118
fail-fast: false
107119
matrix:
108120
nr: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
121+
concurrency:
122+
group: windows-test-${{ matrix.nr }}-${{ github.ref }}
123+
cancel-in-progress: ${{ needs.ci-config.outputs.skip_concurrent == 'yes' }}
109124
steps:
110125
- name: download tracked files and build artifacts
111126
uses: actions/download-artifact@v3
@@ -132,11 +147,14 @@ jobs:
132147
vs-build:
133148
name: win+VS build
134149
needs: ci-config
135-
if: needs.ci-config.outputs.enabled == 'yes'
150+
if: github.event.repository.owner.login == 'git-for-windows' && needs.ci-config.outputs.enabled == 'yes'
136151
env:
137152
NO_PERL: 1
138153
GIT_CONFIG_PARAMETERS: "'user.name=CI' 'user.email=ci@git'"
139154
runs-on: windows-latest
155+
concurrency:
156+
group: vs-build-${{ github.ref }}
157+
cancel-in-progress: ${{ needs.ci-config.outputs.skip_concurrent == 'yes' }}
140158
steps:
141159
- uses: actions/checkout@v3
142160
- uses: git-for-windows/setup-git-for-windows-sdk@v1
@@ -184,11 +202,14 @@ jobs:
184202
vs-test:
185203
name: win+VS test
186204
runs-on: windows-latest
187-
needs: vs-build
205+
needs: [ci-config, vs-build]
188206
strategy:
189207
fail-fast: false
190208
matrix:
191209
nr: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
210+
concurrency:
211+
group: vs-test-${{ matrix.nr }}-${{ github.ref }}
212+
cancel-in-progress: ${{ needs.ci-config.outputs.skip_concurrent == 'yes' }}
192213
steps:
193214
- uses: git-for-windows/setup-git-for-windows-sdk@v1
194215
- name: download tracked files and build artifacts
@@ -218,13 +239,13 @@ jobs:
218239
name: ${{matrix.vector.jobname}} (${{matrix.vector.pool}})
219240
needs: ci-config
220241
if: needs.ci-config.outputs.enabled == 'yes'
242+
concurrency:
243+
group: ${{ matrix.vector.jobname }}-${{ matrix.vector.pool }}-${{ github.ref }}
244+
cancel-in-progress: ${{ needs.ci-config.outputs.skip_concurrent == 'yes' }}
221245
strategy:
222246
fail-fast: false
223247
matrix:
224248
vector:
225-
- jobname: linux-clang
226-
cc: clang
227-
pool: ubuntu-latest
228249
- jobname: linux-sha256
229250
cc: clang
230251
pool: ubuntu-latest
@@ -249,11 +270,8 @@ jobs:
249270
- jobname: linux-leaks
250271
cc: gcc
251272
pool: ubuntu-latest
252-
- jobname: linux-asan
253-
cc: gcc
254-
pool: ubuntu-latest
255-
- jobname: linux-ubsan
256-
cc: gcc
273+
- jobname: linux-asan-ubsan
274+
cc: clang
257275
pool: ubuntu-latest
258276
env:
259277
CC: ${{matrix.vector.cc}}
@@ -265,8 +283,9 @@ jobs:
265283
- uses: actions/checkout@v3
266284
- run: ci/install-dependencies.sh
267285
- run: ci/run-build-and-tests.sh
268-
- run: ci/print-test-failures.sh
286+
- name: print test failures
269287
if: failure() && env.FAILED_TEST_ARTIFACTS != ''
288+
run: ci/print-test-failures.sh
270289
- name: Upload failed tests' directories
271290
if: failure() && env.FAILED_TEST_ARTIFACTS != ''
272291
uses: actions/upload-artifact@v3
@@ -277,6 +296,9 @@ jobs:
277296
name: ${{matrix.vector.jobname}} (${{matrix.vector.image}})
278297
needs: ci-config
279298
if: needs.ci-config.outputs.enabled == 'yes'
299+
concurrency:
300+
group: dockerized-${{ matrix.vector.jobname }}-${{ matrix.vector.image }}-${{ github.ref }}
301+
cancel-in-progress: ${{ needs.ci-config.outputs.skip_concurrent == 'yes' }}
280302
strategy:
281303
fail-fast: false
282304
matrix:
@@ -298,8 +320,9 @@ jobs:
298320
if: matrix.vector.jobname == 'linux32'
299321
- run: ci/install-docker-dependencies.sh
300322
- run: ci/run-build-and-tests.sh
301-
- run: ci/print-test-failures.sh
323+
- name: print test failures
302324
if: failure() && env.FAILED_TEST_ARTIFACTS != ''
325+
run: ci/print-test-failures.sh
303326
- name: Upload failed tests' directories
304327
if: failure() && env.FAILED_TEST_ARTIFACTS != '' && matrix.vector.jobname != 'linux32'
305328
uses: actions/upload-artifact@v3
@@ -318,6 +341,9 @@ jobs:
318341
env:
319342
jobname: StaticAnalysis
320343
runs-on: ubuntu-22.04
344+
concurrency:
345+
group: static-analysis-${{ github.ref }}
346+
cancel-in-progress: ${{ needs.ci-config.outputs.skip_concurrent == 'yes' }}
321347
steps:
322348
- uses: actions/checkout@v3
323349
- run: ci/install-dependencies.sh
@@ -329,6 +355,9 @@ jobs:
329355
env:
330356
jobname: sparse
331357
runs-on: ubuntu-20.04
358+
concurrency:
359+
group: sparse-${{ github.ref }}
360+
cancel-in-progress: ${{ needs.ci-config.outputs.skip_concurrent == 'yes' }}
332361
steps:
333362
- name: Download a current `sparse` package
334363
# Ubuntu's `sparse` version is too old for us
@@ -347,6 +376,9 @@ jobs:
347376
name: documentation
348377
needs: ci-config
349378
if: needs.ci-config.outputs.enabled == 'yes'
379+
concurrency:
380+
group: documentation-${{ github.ref }}
381+
cancel-in-progress: ${{ needs.ci-config.outputs.skip_concurrent == 'yes' }}
350382
env:
351383
jobname: Documentation
352384
runs-on: ubuntu-latest

.gitignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,12 @@
1414
/bin-wrappers/
1515
/git
1616
/git-add
17-
/git-add--interactive
1817
/git-am
1918
/git-annotate
2019
/git-apply
2120
/git-archimport
2221
/git-archive
2322
/git-bisect
24-
/git-bisect--helper
2523
/git-blame
2624
/git-branch
2725
/git-bugreport
@@ -60,7 +58,6 @@
6058
/git-difftool
6159
/git-difftool--helper
6260
/git-describe
63-
/git-env--helper
6461
/git-fast-export
6562
/git-fast-import
6663
/git-fetch
@@ -225,6 +222,7 @@
225222
/TAGS
226223
/cscope*
227224
/compile_commands.json
225+
/.cache/
228226
*.hcc
229227
*.obj
230228
*.lib

.mailmap

Lines changed: 2 additions & 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]>
@@ -79,6 +80,7 @@ Frank Lichtenheld <[email protected]> <[email protected]>
7980
8081
Frédéric Heitzmann <[email protected]>
8182
83+
8284
8385
8486

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

0 commit comments

Comments
 (0)