Skip to content

Commit 2000d4c

Browse files
committed
V2.44.0 version
0 parents  commit 2000d4c

File tree

4,433 files changed

+1450520
-0
lines changed

Some content is hidden

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

4,433 files changed

+1450520
-0
lines changed

.cirrus.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
env:
2+
CIRRUS_CLONE_DEPTH: 1
3+
4+
freebsd_task:
5+
env:
6+
GIT_PROVE_OPTS: "--timer --jobs 10"
7+
GIT_TEST_OPTS: "--no-chain-lint --no-bin-wrappers"
8+
MAKEFLAGS: "-j4"
9+
DEFAULT_TEST_TARGET: prove
10+
DEVELOPER: 1
11+
freebsd_instance:
12+
image_family: freebsd-13-2
13+
memory: 2G
14+
install_script:
15+
pkg install -y gettext gmake perl5
16+
create_user_script:
17+
- pw useradd git
18+
- chown -R git:git .
19+
build_script:
20+
- su git -c gmake
21+
test_script:
22+
- su git -c 'gmake DEFAULT_UNIT_TEST_TARGET=unit-tests-prove test unit-tests'

.clang-format

Lines changed: 184 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,184 @@
1+
# This file is an example configuration for clang-format 5.0.
2+
#
3+
# Note that this style definition should only be understood as a hint
4+
# for writing new code. The rules are still work-in-progress and does
5+
# not yet exactly match the style we have in the existing code.
6+
7+
# Use tabs whenever we need to fill whitespace that spans at least from one tab
8+
# stop to the next one.
9+
#
10+
# These settings are mirrored in .editorconfig. Keep them in sync.
11+
UseTab: Always
12+
TabWidth: 8
13+
IndentWidth: 8
14+
ContinuationIndentWidth: 8
15+
ColumnLimit: 80
16+
17+
# C Language specifics
18+
Language: Cpp
19+
20+
# Align parameters on the open bracket
21+
# someLongFunction(argument1,
22+
# argument2);
23+
AlignAfterOpenBracket: Align
24+
25+
# Don't align consecutive assignments
26+
# int aaaa = 12;
27+
# int b = 14;
28+
AlignConsecutiveAssignments: false
29+
30+
# Don't align consecutive declarations
31+
# int aaaa = 12;
32+
# double b = 3.14;
33+
AlignConsecutiveDeclarations: false
34+
35+
# Align escaped newlines as far left as possible
36+
# #define A \
37+
# int aaaa; \
38+
# int b; \
39+
# int cccccccc;
40+
AlignEscapedNewlines: Left
41+
42+
# Align operands of binary and ternary expressions
43+
# int aaa = bbbbbbbbbbb +
44+
# cccccc;
45+
AlignOperands: true
46+
47+
# Don't align trailing comments
48+
# int a; // Comment a
49+
# int b = 2; // Comment b
50+
AlignTrailingComments: false
51+
52+
# By default don't allow putting parameters onto the next line
53+
# myFunction(foo, bar, baz);
54+
AllowAllParametersOfDeclarationOnNextLine: false
55+
56+
# Don't allow short braced statements to be on a single line
57+
# if (a) not if (a) return;
58+
# return;
59+
AllowShortBlocksOnASingleLine: false
60+
AllowShortCaseLabelsOnASingleLine: false
61+
AllowShortFunctionsOnASingleLine: false
62+
AllowShortIfStatementsOnASingleLine: false
63+
AllowShortLoopsOnASingleLine: false
64+
65+
# By default don't add a line break after the return type of top-level functions
66+
# int foo();
67+
AlwaysBreakAfterReturnType: None
68+
69+
# Pack as many parameters or arguments onto the same line as possible
70+
# int myFunction(int aaaaaaaaaaaa, int bbbbbbbb,
71+
# int cccc);
72+
BinPackArguments: true
73+
BinPackParameters: true
74+
75+
# Attach braces to surrounding context except break before braces on function
76+
# definitions.
77+
# void foo()
78+
# {
79+
# if (true) {
80+
# } else {
81+
# }
82+
# };
83+
BreakBeforeBraces: Linux
84+
85+
# Break after operators
86+
# int value = aaaaaaaaaaaaa +
87+
# bbbbbb -
88+
# ccccccccccc;
89+
BreakBeforeBinaryOperators: None
90+
BreakBeforeTernaryOperators: false
91+
92+
# Don't break string literals
93+
BreakStringLiterals: false
94+
95+
# Use the same indentation level as for the switch statement.
96+
# Switch statement body is always indented one level more than case labels.
97+
IndentCaseLabels: false
98+
99+
# Don't indent a function definition or declaration if it is wrapped after the
100+
# type
101+
IndentWrappedFunctionNames: false
102+
103+
# Align pointer to the right
104+
# int *a;
105+
PointerAlignment: Right
106+
107+
# Don't insert a space after a cast
108+
# x = (int32)y; not x = (int32) y;
109+
SpaceAfterCStyleCast: false
110+
111+
# Insert spaces before and after assignment operators
112+
# int a = 5; not int a=5;
113+
# a += 42; a+=42;
114+
SpaceBeforeAssignmentOperators: true
115+
116+
# Put a space before opening parentheses only after control statement keywords.
117+
# void f() {
118+
# if (true) {
119+
# f();
120+
# }
121+
# }
122+
SpaceBeforeParens: ControlStatements
123+
124+
# Don't insert spaces inside empty '()'
125+
SpaceInEmptyParentheses: false
126+
127+
# The number of spaces before trailing line comments (// - comments).
128+
# This does not affect trailing block comments (/* - comments).
129+
SpacesBeforeTrailingComments: 1
130+
131+
# Don't insert spaces in casts
132+
# x = (int32) y; not x = ( int32 ) y;
133+
SpacesInCStyleCastParentheses: false
134+
135+
# Don't insert spaces inside container literals
136+
# var arr = [1, 2, 3]; not var arr = [ 1, 2, 3 ];
137+
SpacesInContainerLiterals: false
138+
139+
# Don't insert spaces after '(' or before ')'
140+
# f(arg); not f( arg );
141+
SpacesInParentheses: false
142+
143+
# Don't insert spaces after '[' or before ']'
144+
# int a[5]; not int a[ 5 ];
145+
SpacesInSquareBrackets: false
146+
147+
# Insert a space after '{' and before '}' in struct initializers
148+
Cpp11BracedListStyle: false
149+
150+
# A list of macros that should be interpreted as foreach loops instead of as
151+
# 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
155+
ForEachMacros:
156+
- 'for_each_abbrev'
157+
- 'for_each_builtin'
158+
- 'for_each_string_list_item'
159+
- 'for_each_ut'
160+
- 'for_each_wanted_builtin'
161+
- 'list_for_each'
162+
- 'list_for_each_dir'
163+
- 'list_for_each_prev'
164+
- 'list_for_each_prev_safe'
165+
- 'list_for_each_safe'
166+
167+
# The maximum number of consecutive empty lines to keep.
168+
MaxEmptyLinesToKeep: 1
169+
170+
# No empty line at the start of a block.
171+
KeepEmptyLinesAtTheStartOfBlocks: false
172+
173+
# Penalties
174+
# This decides what order things should be done if a line is too long
175+
PenaltyBreakAssignment: 10
176+
PenaltyBreakBeforeFirstCallParameter: 30
177+
PenaltyBreakComment: 10
178+
PenaltyBreakFirstLessLess: 0
179+
PenaltyBreakString: 10
180+
PenaltyExcessCharacter: 100
181+
PenaltyReturnTypeOnItsOwnLine: 60
182+
183+
# Don't sort #include's
184+
SortIncludes: false

.editorconfig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[*]
2+
charset = utf-8
3+
insert_final_newline = true
4+
5+
# The settings for C (*.c and *.h) files are mirrored in .clang-format. Keep
6+
# them in sync.
7+
[*.{c,h,sh,perl,pl,pm,txt}]
8+
indent_style = tab
9+
tab_width = 8
10+
11+
[*.py]
12+
indent_style = space
13+
indent_size = 4
14+
15+
[COMMIT_EDITMSG]
16+
max_line_length = 72

.gitattributes

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
* whitespace=!indent,trail,space
2+
*.[ch] whitespace=indent,trail,space diff=cpp
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
9+
CODE_OF_CONDUCT.md -whitespace
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
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
18+
/t/t????-*.sh conflict-marker-size=32

.github/CONTRIBUTING.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
## Contributing to Git
2+
3+
Thanks for taking the time to contribute to Git! Please be advised that the
4+
Git community does not use github.com for their contributions. Instead, we use
5+
a mailing list (git@vger.kernel.org) for code submissions, code
6+
reviews, and bug reports.
7+
8+
Nevertheless, you can use [GitGitGadget](https://gitgitgadget.github.io/) to
9+
conveniently send your Pull Requests commits to our mailing list.
10+
11+
Please read ["A note from the maintainer"](https://git.kernel.org/pub/scm/git/git.git/plain/MaintNotes?h=todo)
12+
to learn how the Git project is managed, and how you can work with it.
13+
In addition, we highly recommend you to read [our submission guidelines](../Documentation/SubmittingPatches).
14+
15+
If you prefer video, then [this talk](https://www.youtube.com/watch?v=Q7i_qQW__q4&feature=youtu.be&t=6m4s)
16+
might be useful to you as the presenter walks you through the contribution
17+
process by example.
18+
19+
Or, you can follow the ["My First Contribution"](https://git-scm.com/docs/MyFirstContribution)
20+
tutorial for another example of the contribution process.
21+
22+
Your friendly Git community!

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Thanks for taking the time to contribute to Git! Please be advised that the
2+
Git community does not use github.com for their contributions. Instead, we use
3+
a mailing list (git@vger.kernel.org) for code submissions, code reviews, and
4+
bug reports. Nevertheless, you can use GitGitGadget (https://gitgitgadget.github.io/)
5+
to conveniently send your Pull Requests commits to our mailing list.
6+
7+
For a single-commit pull request, please *leave the pull request description
8+
empty*: your commit message itself should describe your changes.
9+
10+
Please read the "guidelines for contributing" linked above!
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
name: check-whitespace
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+
# Process `git log --check` output to extract just the check errors.
6+
# Exit with failure upon white-space issues.
7+
8+
on:
9+
pull_request:
10+
types: [opened, synchronize]
11+
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+
18+
jobs:
19+
check-whitespace:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v4
23+
with:
24+
fetch-depth: 0
25+
26+
- name: git log --check
27+
id: check_out
28+
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

0 commit comments

Comments
 (0)