Skip to content

Commit b8b3a30

Browse files
committed
Import git v2.50.1
1 parent 146b9c6 commit b8b3a30

File tree

3,396 files changed

+275372
-157744
lines changed

Some content is hidden

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

3,396 files changed

+275372
-157744
lines changed

.cirrus.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
env:
22
CIRRUS_CLONE_DEPTH: 1
33

4-
freebsd_12_task:
4+
freebsd_task:
55
env:
66
GIT_PROVE_OPTS: "--timer --jobs 10"
77
GIT_TEST_OPTS: "--no-chain-lint --no-bin-wrappers"
88
MAKEFLAGS: "-j4"
99
DEFAULT_TEST_TARGET: prove
1010
DEVELOPER: 1
1111
freebsd_instance:
12-
image_family: freebsd-12-3
12+
image_family: freebsd-13-4
1313
memory: 2G
1414
install_script:
1515
pkg install -y gettext gmake perl5
@@ -19,4 +19,4 @@ freebsd_12_task:
1919
build_script:
2020
- su git -c gmake
2121
test_script:
22-
- su git -c 'gmake test'
22+
- su git -c 'gmake DEFAULT_UNIT_TEST_TARGET=unit-tests-prove test unit-tests'

.clang-format

Lines changed: 54 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ AlignConsecutiveAssignments: false
3232
# double b = 3.14;
3333
AlignConsecutiveDeclarations: false
3434

35+
# Align consecutive macro definitions.
36+
AlignConsecutiveMacros: true
37+
3538
# Align escaped newlines as far left as possible
3639
# #define A \
3740
# int aaaa; \
@@ -72,6 +75,10 @@ AlwaysBreakAfterReturnType: None
7275
BinPackArguments: true
7376
BinPackParameters: true
7477

78+
# Add no space around the bit field
79+
# unsigned bf:2;
80+
BitFieldColonSpacing: None
81+
7582
# Attach braces to surrounding context except break before braces on function
7683
# definitions.
7784
# void foo()
@@ -83,9 +90,9 @@ BinPackParameters: true
8390
BreakBeforeBraces: Linux
8491

8592
# Break after operators
86-
# int valuve = aaaaaaaaaaaaa +
87-
# bbbbbb -
88-
# ccccccccccc;
93+
# int value = aaaaaaaaaaaaa +
94+
# bbbbbb -
95+
# ccccccccccc;
8996
BreakBeforeBinaryOperators: None
9097
BreakBeforeTernaryOperators: false
9198

@@ -96,6 +103,14 @@ BreakStringLiterals: false
96103
# Switch statement body is always indented one level more than case labels.
97104
IndentCaseLabels: false
98105

106+
# Indents directives before the hash. Each level uses a single space for
107+
# indentation.
108+
# #if FOO
109+
# # include <foo>
110+
# #endif
111+
IndentPPDirectives: AfterHash
112+
PPIndentWidth: 1
113+
99114
# Don't indent a function definition or declaration if it is wrapped after the
100115
# type
101116
IndentWrappedFunctionNames: false
@@ -108,11 +123,18 @@ PointerAlignment: Right
108123
# x = (int32)y; not x = (int32) y;
109124
SpaceAfterCStyleCast: false
110125

126+
# No space is inserted after the logical not operator
127+
SpaceAfterLogicalNot: false
128+
111129
# Insert spaces before and after assignment operators
112130
# int a = 5; not int a=5;
113131
# a += 42; a+=42;
114132
SpaceBeforeAssignmentOperators: true
115133

134+
# Spaces will be removed before case colon.
135+
# case 1: break; not case 1 : break;
136+
SpaceBeforeCaseColon: false
137+
116138
# Put a space before opening parentheses only after control statement keywords.
117139
# void f() {
118140
# if (true) {
@@ -124,6 +146,14 @@ SpaceBeforeParens: ControlStatements
124146
# Don't insert spaces inside empty '()'
125147
SpaceInEmptyParentheses: false
126148

149+
# No space before first '[' in arrays
150+
# int a[5][5]; not int a [5][5];
151+
SpaceBeforeSquareBrackets: false
152+
153+
# No space will be inserted into {}
154+
# while (true) {} not while (true) { }
155+
SpaceInEmptyBlock: false
156+
127157
# The number of spaces before trailing line comments (// - comments).
128158
# This does not affect trailing block comments (/* - comments).
129159
SpacesBeforeTrailingComments: 1
@@ -149,20 +179,30 @@ Cpp11BracedListStyle: false
149179

150180
# A list of macros that should be interpreted as foreach loops instead of as
151181
# function calls. Taken from:
152-
# git grep -h '^#define [^[:space:]]*for_each[^[:space:]]*(' \
153-
# | sed "s,^#define \([^[:space:]]*for_each[^[:space:]]*\)(.*$, - '\1'," \
154-
# | sort | uniq
182+
# git grep -h '^#define [^[:space:]]*for_\?each[^[:space:]]*(' |
183+
# sed "s/^#define / - '/; s/(.*$/'/" | sort | uniq
155184
ForEachMacros:
156-
- 'for_each_abbrev'
157185
- 'for_each_builtin'
158186
- 'for_each_string_list_item'
159187
- 'for_each_ut'
160188
- 'for_each_wanted_builtin'
189+
- 'hashmap_for_each_entry'
190+
- 'hashmap_for_each_entry_from'
191+
- 'kh_foreach'
192+
- 'kh_foreach_value'
161193
- 'list_for_each'
162194
- 'list_for_each_dir'
163195
- 'list_for_each_prev'
164196
- 'list_for_each_prev_safe'
165197
- 'list_for_each_safe'
198+
- 'strintmap_for_each_entry'
199+
- 'strmap_for_each_entry'
200+
- 'strset_for_each_entry'
201+
202+
# A list of macros that should be interpreted as conditionals instead of as
203+
# function calls.
204+
IfMacros:
205+
- 'if_test'
166206

167207
# The maximum number of consecutive empty lines to keep.
168208
MaxEmptyLinesToKeep: 1
@@ -172,13 +212,14 @@ KeepEmptyLinesAtTheStartOfBlocks: false
172212

173213
# Penalties
174214
# This decides what order things should be done if a line is too long
175-
PenaltyBreakAssignment: 10
176-
PenaltyBreakBeforeFirstCallParameter: 30
177-
PenaltyBreakComment: 10
215+
PenaltyBreakAssignment: 5
216+
PenaltyBreakBeforeFirstCallParameter: 5
217+
PenaltyBreakComment: 5
178218
PenaltyBreakFirstLessLess: 0
179-
PenaltyBreakString: 10
180-
PenaltyExcessCharacter: 100
181-
PenaltyReturnTypeOnItsOwnLine: 60
219+
PenaltyBreakOpenParenthesis: 300
220+
PenaltyBreakString: 5
221+
PenaltyExcessCharacter: 10
222+
PenaltyReturnTypeOnItsOwnLine: 300
182223

183224
# Don't sort #include's
184225
SortIncludes: false

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ insert_final_newline = true
44

55
# The settings for C (*.c and *.h) files are mirrored in .clang-format. Keep
66
# them in sync.
7-
[*.{c,h,sh,perl,pl,pm,txt}]
7+
[{*.{c,h,sh,bash,perl,pl,pm,txt,adoc},config.mak.*,Makefile}]
88
indent_style = tab
99
tab_width = 8
1010

.gitattributes

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@
77
*.py text eol=lf diff=python
88
*.bat text eol=crlf
99
CODE_OF_CONDUCT.md -whitespace
10-
/Documentation/**/*.txt text eol=lf
10+
/Documentation/**/*.adoc text eol=lf
1111
/command-list.txt text eol=lf
1212
/GIT-VERSION-GEN text eol=lf
1313
/mergetools/* text eol=lf
1414
/t/oid-info/* text eol=lf
15-
/Documentation/git-merge.txt conflict-marker-size=32
16-
/Documentation/gitk.txt conflict-marker-size=32
17-
/Documentation/user-manual.txt conflict-marker-size=32
15+
/Documentation/git-merge.adoc conflict-marker-size=32
16+
/Documentation/git-merge-file.adoc conflict-marker-size=32
17+
/Documentation/gitk.adoc conflict-marker-size=32
18+
/Documentation/user-manual.adoc conflict-marker-size=32
1819
/t/t????-*.sh conflict-marker-size=32

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,7 @@ a mailing list ([email protected]) for code submissions, code reviews, and
44
bug reports. Nevertheless, you can use GitGitGadget (https://gitgitgadget.github.io/)
55
to conveniently send your Pull Requests commits to our mailing list.
66

7+
For a single-commit pull request, please *leave the pull request description
8+
empty*: your commit message itself should describe your changes.
9+
710
Please read the "guidelines for contributing" linked above!

.github/workflows/check-style.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: check-style
2+
3+
# Get the repository with all commits to ensure that we can analyze
4+
# all of the commits contributed via the Pull Request.
5+
6+
on:
7+
pull_request:
8+
types: [opened, synchronize]
9+
10+
# Avoid unnecessary builds. Unlike the main CI jobs, these are not
11+
# ci-configurable (but could be).
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
16+
jobs:
17+
check-style:
18+
env:
19+
CC: clang
20+
jobname: ClangFormat
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v4
24+
with:
25+
fetch-depth: 0
26+
27+
- run: ci/install-dependencies.sh
28+
29+
- name: git clang-format
30+
continue-on-error: true
31+
id: check_out
32+
run: |
33+
./ci/run-style-check.sh \
34+
"${{github.event.pull_request.base.sha}}"

.github/workflows/check-whitespace.yml

Lines changed: 5 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -19,73 +19,14 @@ jobs:
1919
check-whitespace:
2020
runs-on: ubuntu-latest
2121
steps:
22-
- uses: actions/checkout@v3
22+
- uses: actions/checkout@v4
2323
with:
2424
fetch-depth: 0
2525

2626
- name: git log --check
2727
id: check_out
2828
run: |
29-
baseSha=${{github.event.pull_request.base.sha}}
30-
problems=()
31-
commit=
32-
commitText=
33-
commitTextmd=
34-
goodparent=
35-
while read dash sha etc
36-
do
37-
case "${dash}" in
38-
"---")
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}"
46-
;;
47-
"")
48-
;;
49-
*)
50-
if test -n "${commit}"
51-
then
52-
problems+=("1) --- ${commitTextmd}")
53-
echo ""
54-
echo "--- ${commitText}"
55-
commit=
56-
fi
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}"
67-
;;
68-
esac
69-
done <<< $(git log --check --pretty=format:"---% h% s" ${baseSha}..)
70-
71-
if test ${#problems[*]} -gt 0
72-
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-
90-
exit 2
91-
fi
29+
./ci/check-whitespace.sh \
30+
"${{github.event.pull_request.base.sha}}" \
31+
"$GITHUB_STEP_SUMMARY" \
32+
"https://github.com/${{github.repository}}"

0 commit comments

Comments
 (0)