Skip to content

Commit 1070d49

Browse files
committed
Merge branch 'next' into HEAD
* next: (75 commits) scalar: free result of `remote_default_branch()` unix-socket: fix memory leak when chdir(3p) fails ci: make "linux-musl" job use zlib-ng ci: switch linux-musl to use Meson compat/zlib: allow use of zlib-ng as backend git-zlib: cast away potential constness of `next_in` pointer compat/zlib: provide stubs for `deflateSetHeader()` compat/zlib: provide `deflateBound()` shim centrally git-compat-util: move include of "compat/zlib.h" into "git-zlib.h" compat: introduce new "zlib.h" header git-compat-util: drop `z_const` define compat: drop `uncompress2()` compatibility shim Fix mismerge at 737049d refs/reftable: fix uninitialized memory access of `max_index` bundle: avoid closing file descriptor twice remote: announce removal of "branches/" and "remotes/" hash.h: drop unsafe_ function variants csum-file: introduce hashfile_checkpoint_init() t/helper/test-hash.c: use unsafe_hash_algo() csum-file.c: use unsafe_hash_algo() ...
2 parents ebbc15c + 6dc24df commit 1070d49

File tree

989 files changed

+1444
-1248
lines changed

Some content is hidden

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

989 files changed

+1444
-1248
lines changed

.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},config.mak.*,Makefile}]
7+
[{*.{c,h,sh,perl,pl,pm,txt,adoc},config.mak.*,Makefile}]
88
indent_style = tab
99
tab_width = 8
1010

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
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

.gitlab-ci.yml

Lines changed: 48 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -36,41 +36,36 @@ test:linux:
3636
fi
3737
parallel:
3838
matrix:
39-
- jobname: linux-old
40-
image: ubuntu:20.04
41-
CC: gcc
4239
- jobname: linux-sha256
43-
image: ubuntu:latest
40+
image: ubuntu:rolling
4441
CC: clang
4542
- jobname: linux-reftable
46-
image: ubuntu:latest
43+
image: ubuntu:rolling
4744
CC: clang
48-
- jobname: linux-gcc
45+
- jobname: linux-breaking-changes
4946
image: ubuntu:20.04
5047
CC: gcc
51-
CC_PACKAGE: gcc-8
5248
- jobname: linux-TEST-vars
5349
image: ubuntu:20.04
5450
CC: gcc
5551
CC_PACKAGE: gcc-8
56-
- jobname: linux-gcc-default
57-
image: ubuntu:latest
58-
CC: gcc
5952
- jobname: linux-leaks
60-
image: ubuntu:latest
53+
image: ubuntu:rolling
6154
CC: gcc
6255
- jobname: linux-reftable-leaks
63-
image: ubuntu:latest
56+
image: ubuntu:rolling
6457
CC: gcc
6558
- jobname: linux-asan-ubsan
66-
image: ubuntu:latest
59+
image: ubuntu:rolling
6760
CC: clang
6861
- jobname: pedantic
6962
image: fedora:latest
70-
- jobname: linux-musl
63+
- jobname: linux-musl-meson
7164
image: alpine:latest
65+
- jobname: linux32
66+
image: i386/ubuntu:20.04
7267
- jobname: linux-meson
73-
image: ubuntu:latest
68+
image: ubuntu:rolling
7469
CC: gcc
7570
artifacts:
7671
paths:
@@ -149,6 +144,44 @@ test:mingw64:
149144
- git-sdk/usr/bin/bash.exe -l -c 'ci/print-test-failures.sh'
150145
parallel: 10
151146

147+
.msvc-meson:
148+
tags:
149+
- saas-windows-medium-amd64
150+
before_script:
151+
- choco install -y git meson ninja openssl
152+
- Import-Module $env:ChocolateyInstall\helpers\chocolateyProfile.psm1
153+
- refreshenv
154+
# The certificate store for Python on Windows is broken and fails to fetch
155+
# certificates, see https://bugs.python.org/issue36011. This seems to
156+
# mostly be an issue with how the GitLab image is set up as it is a
157+
# non-issue on GitHub Actions. Work around the issue by importing
158+
# cetrificates manually.
159+
- Invoke-WebRequest https://curl.haxx.se/ca/cacert.pem -OutFile cacert.pem
160+
- openssl pkcs12 -export -nokeys -in cacert.pem -out certs.pfx -passout "pass:"
161+
- Import-PfxCertificate -CertStoreLocation Cert:\LocalMachine\Root -FilePath certs.pfx
162+
163+
build:msvc-meson:
164+
extends: .msvc-meson
165+
stage: build
166+
script:
167+
- meson setup build -Dperl=disabled
168+
- meson compile -C build
169+
artifacts:
170+
paths:
171+
- build
172+
173+
test:msvc-meson:
174+
extends: .msvc-meson
175+
stage: test
176+
when: manual
177+
timeout: 6h
178+
needs:
179+
- job: "build:msvc-meson"
180+
artifacts: true
181+
script:
182+
- meson test -C build --list | Select-Object -Skip 1 | Select-String .* | Group-Object -Property { $_.LineNumber % $Env:CI_NODE_TOTAL + 1 } | Where-Object Name -EQ $Env:CI_NODE_INDEX | ForEach-Object { meson test -C build --no-rebuild --print-errorlogs $_.Group }
183+
parallel: 10
184+
152185
test:fuzz-smoke-tests:
153186
image: ubuntu:latest
154187
stage: test

Documentation/.gitignore

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
*.pdf
77
git.info
88
gitman.info
9-
howto-index.txt
9+
howto-index.adoc
1010
doc.dep
11-
cmds-*.txt
12-
mergetools-*.txt
13-
SubmittingPatches.txt
11+
cmds-*.adoc
12+
mergetools-*.adoc
13+
SubmittingPatches.adoc
1414
tmp-doc-diff/
1515
tmp-meson-diff/
1616
GIT-ASCIIDOCFLAGS

Documentation/BreakingChanges.txt renamed to Documentation/BreakingChanges.adoc

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,31 @@ Cf. <[email protected]>,
154154
<CAKvOHKAFXQwt4D8yUCCkf_TQL79mYaJ=KAKhtpDNTvHJFuX1NA@mail.gmail.com>,
155155
156156

157+
* Support for storing shorthands for remote URLs in "$GIT_COMMON_DIR/branches/"
158+
and "$GIT_COMMON_DIR/remotes/" has been long superseded by storing remotes in
159+
the repository configuration.
160+
+
161+
The mechanism has originally been introduced in f170e4b39d ([PATCH] fetch/pull:
162+
short-hand notation for remote repositories., 2005-07-16) and was superseded by
163+
6687f8fea2 ([PATCH] Use .git/remote/origin, not .git/branches/origin.,
164+
2005-08-20), where we switched from ".git/branches/" to ".git/remotes/". That
165+
commit already mentions an upcoming deprecation of the ".git/branches/"
166+
directory, and starting with a1d4aa7424 (Add repository-layout document.,
167+
2005-09-01) we have also marked this layout as deprecated. Eventually we also
168+
started to migrate away from ".git/remotes/" in favor of config-based remotes,
169+
and we have marked the directory as legacy in 3d3d282146 (Documentation:
170+
Grammar correction, wording fixes and cleanup, 2011-08-23)
171+
+
172+
As our documentation mentions, these directories are not to be found in modern
173+
repositories at all and most users aren't even aware of these mechanisms. They
174+
have been deprecated for almost 20 years and 14 years respectively, and we are
175+
not aware of any active users that have complained about this deprecation.
176+
Furthermore, the ".git/branches/" directory is nowadays misleadingly named and
177+
may cause confusion as "branches" are almost exclusively used in the context of
178+
references.
179+
+
180+
These features will be removed.
181+
157182
== Superseded features that will not be deprecated
158183

159184
Some features have gained newer replacements that aim to improve the design in
File renamed without changes.

0 commit comments

Comments
 (0)