Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rebase to v2.49.0-rc0 #5444

Merged
merged 731 commits into from
Feb 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
731 commits
Select commit Hold shift + click to select a range
d9ebd09
status: fix for old-style submodules with commondir
sceptical-coder Oct 28, 2022
fc3c59d
http: optionally load libcurl lazily
dscho May 6, 2023
3c5e58d
http: support lazy-loading libcurl also on Windows
dscho May 7, 2023
16991b7
http: when loading libcurl lazily, allow for multiple SSL backends
dscho May 7, 2023
f9a02e6
windows: fix Repository>Explore Working Copy
dscho Mar 21, 2023
d334fb7
mingw: do load libcurl dynamically by default
dscho May 7, 2023
d151148
Add a GitHub workflow to verify that Git/Scalar work in Nano Server
dscho Nov 2, 2022
0f7d050
mingw: suggest `windows.appendAtomically` in more cases
dsl101 Jul 28, 2023
e581859
win32: use native ANSI sequence processing, if possible
dscho Nov 22, 2023
fc9081b
common-main.c: fflush stdout buffer upon exit
chengzhuo5 Apr 8, 2024
0b0bc82
t5601/t7406(mingw): do run tests with symlink support
dscho Apr 9, 2024
86050de
win32: ensure that `localtime_r()` is declared even in i686 builds
dscho May 21, 2024
bf0b47b
Fallback to AppData if XDG_CONFIG_HOME is unset
ariellourenco Jul 2, 2024
973e4ae
run-command: be helpful with Git LFS fails on Windows 7
dscho Jul 4, 2024
ae91f94
ci: work around a problem with HTTP/2 vs libcurl v8.10.0
dscho Sep 24, 2024
a313305
revision: create mark_trees_uninteresting_dense()
derrickstolee Sep 6, 2024
2ebf073
pack-objects: extract should_attempt_deltas()
derrickstolee Sep 24, 2024
7f4a2a2
pack-objects: add --path-walk option
derrickstolee Sep 5, 2024
4f0c435
pack-objects: introduce GIT_TEST_PACK_PATH_WALK
derrickstolee Sep 6, 2024
95807d5
repack: add --path-walk option
derrickstolee Sep 5, 2024
e097df5
pack-objects: enable --path-walk via config
derrickstolee Sep 5, 2024
bdb4556
scalar: enable path-walk during push via config
derrickstolee Sep 5, 2024
98ea031
pack-objects: refactor path-walk delta phase
derrickstolee Sep 18, 2024
3707f40
mingw: make sure `errno` is set correctly when socket operations fail
dscho Nov 14, 2019
6ec8c02
compat/mingw: handle WSA errors in strerror
rimrul Dec 22, 2024
044465b
compat/mingw: drop outdated comment
rimrul Dec 22, 2024
cd669aa
t0301: actually test credential-cache on Windows
rimrul Dec 29, 2024
fb748ba
credential-cache: handle ECONNREFUSED gracefully
rimrul Dec 22, 2024
5433d11
mingw_open_existing: handle directories better
rimrul Jan 4, 2025
1101553
mingw: allow `git.exe` to be used instead of the "Git wrapper"
dscho Jan 31, 2020
cd216b9
mingw: ignore HOMEDRIVE/HOMEPATH if it points to Windows' system dire…
dscho Aug 25, 2020
8797c58
Merge branch 'ci-fixes'
dscho Feb 11, 2021
4cd3714
Merge branch 'dscho-avoid-d-f-conflict-in-vs-master'
dscho Apr 13, 2021
1967b7d
clink.pl: fix libexpatd.lib link error when using MSVC
jeffhostetler Mar 30, 2021
03cc713
Makefile: clean up .ilk files when MSVC=1
jeffhostetler Apr 5, 2021
5dd03a6
vcbuild: add support for compiling Windows resource files
jeffhostetler Apr 5, 2021
0afb8b2
config.mak.uname: add git.rc to MSVC builds
jeffhostetler Apr 5, 2021
59691af
clink.pl: ignore no-stack-protector arg on MSVC=1 builds
jeffhostetler Apr 5, 2021
75a50bc
clink.pl: move default linker options for MSVC=1 builds
jeffhostetler Apr 5, 2021
964f71f
cmake: install headless-git.
Berrysoft Mar 11, 2023
6353210
config.mak.uname: add support for clangarm64
dennisameling Oct 4, 2022
5cda90a
msvc: do handle builds on Windows/ARM64
dscho Feb 25, 2025
2a46ce6
mingw(arm64): do move the `/etc/git*` location
dscho Feb 25, 2025
6e4a508
windows: skip linking `git-<command>` for built-ins
dscho Jan 27, 2023
9aa6e46
git.rc: include winuser.h
rimrul Dec 2, 2023
22c39de
survey: stub in new experimental 'git-survey' command
Apr 29, 2024
ed9d28a
pack-objects: thread the path-based compression
derrickstolee Sep 18, 2024
4da0afd
survey: add command line opts to select references
Apr 29, 2024
20bd50b
survey: start pretty printing data in table form
derrickstolee Sep 1, 2024
f54e198
survey: add object count summary
derrickstolee Sep 2, 2024
d39ecbd
survey: summarize total sizes by object type
derrickstolee Sep 2, 2024
1d398d2
survey: show progress during object walk
derrickstolee Sep 2, 2024
7875abb
survey: add ability to track prioritized lists
derrickstolee Sep 2, 2024
5146cc9
survey: add report of "largest" paths
derrickstolee Sep 2, 2024
39aaa02
survey: add --top=<N> option and config
derrickstolee Sep 23, 2024
c54d66f
ident: stop assuming that `gw_gecos` is writable
dscho Feb 6, 2025
e8c4e0f
meson: fix sorting
dscho Feb 6, 2025
d20ac25
survey: clearly note the experimental nature in the output
dscho Jul 1, 2024
de82d32
Merge branch 'g4w-hot-fixes'
dscho Feb 26, 2025
ac15599
Merge branch 'ci-fixes'
dscho Feb 11, 2021
3e93786
Merge 'remote-hg-prerequisites' into HEAD
dscho Jun 8, 2018
8bd18e3
Merge branch 'drive-prefix'
dscho Jun 8, 2018
d30484c
Merge branch 'dont-clean-junctions'
dscho Jul 30, 2019
f5b3b48
Merge branch 'msys2-python'
dscho May 31, 2019
bb5f67f
Merge branch 'mimalloc-v2.0.9'
dscho Sep 8, 2022
553aa62
Merge pull request #2375 from assarbad/reintroduce-sideband-config
dscho Oct 30, 2019
3a262e9
Merge pull request #2449 from dscho/mingw-getcwd-and-symlinks
dscho Jan 3, 2020
6d3a58b
Merge pull request #2488 from bmueller84/master
dscho Jan 22, 2020
6c372a0
Merge pull request #2501 from jeffhostetler/clink-debug-curl
dscho Jan 30, 2020
f2ec96d
Merge pull request #2504 from dscho/access-repo-via-junction
dscho Feb 1, 2020
3f1506b
Merge pull request #2506 from dscho/issue-2283
dscho Feb 11, 2020
788dcaf
Merge pull request #2535 from dscho/schannel-revoke-best-effort
dscho Mar 4, 2020
d90080b
Merge pull request #2618 from dscho/avoid-d/f-conflict-in-vs/master
dscho May 9, 2020
3e30a5e
Merge 'add-p-many-files'
dscho Jun 8, 2018
62eeaf0
Merge pull request #2730 from dscho/crlf-aware-git-add-i
dscho Jul 2, 2020
6c8a2f0
Merge pull request #2714 from lbonanomi/crlf-scissors
dscho Jul 3, 2020
68d35d9
Merge pull request #2655 from jglathe/jg/t0014_trace_extra_info
dscho Oct 9, 2020
5be5223
Merge 'git-gui/js/intent-to-add'
dscho Oct 18, 2020
c203f19
Merge pull request #2974 from derrickstolee/maintenance-and-headless
dscho Jan 11, 2021
30de5a5
cmake: install headless-git. (#4338)
dscho Mar 13, 2023
786b191
Merge pull request #2351 from PhilipOakley/vcpkg-tip
dscho Oct 7, 2019
2683e1e
Merge pull request #2915 from dennisameling/windows-arm64-support
dscho Dec 9, 2020
122d792
Merge pull request #3327 from dennisameling/fix-host-cpu
dscho Jul 19, 2021
c117434
Merge pull request #3165 from dscho/increase-allowed-length-of-interp…
dscho Apr 3, 2021
c6adf63
Merge pull request #3220 from dscho/there-is-no-vs/master-anymore
dscho May 17, 2021
0e47f21
Merge pull request #3293 from pascalmuller/http-support-automatically…
dscho Jun 24, 2021
c110b8f
Merge pull request #3349 from vdye/feature/ci-subtree-tests
dscho Aug 10, 2021
2035902
Merge pull request #3306 from PhilipOakley/vs-sln
dscho Oct 12, 2021
5e3161a
Merge pull request #3417 from dscho/initialize-core.symlinks-earlier
dscho Oct 13, 2021
9a9d15b
Merge pull request #3533 from PhilipOakley/hashliteral_t
dscho Dec 15, 2021
697e67f
Merge pull request #3791: Various fixes around `safe.directory`
derrickstolee Apr 13, 2022
03967a6
Merge pull request #3751 from rkitover/native-term
dscho Apr 21, 2022
2d6856c
Merge pull request #3875 from 1480c1/wine/detect_msys_tty
dscho May 30, 2022
07be994
Merge branch 'optionally-dont-append-atomically-on-windows'
dscho Jun 23, 2022
e1ee093
Merge branch 'fsync-object-files-always'
dscho Oct 11, 2018
f2bdfa0
Merge pull request #3942 from rimrul/mingw-tsaware
dscho Jul 27, 2022
22826d7
Fix Windows version resources (#4092)
dscho Nov 3, 2022
e94b3ce
Merge branch 'builtin-swap-functions'
dscho Nov 23, 2022
6d18495
Add support for CLANGARM64 target (#3916)
dscho Oct 28, 2022
e198c3d
Fix global repository field not being cleared (#4083)
dscho Dec 20, 2022
9959bff
Skip linking the "dashed" `git-<command>`s for built-ins (#4252)
dscho Jan 31, 2023
dfa9707
Git GUI: fix Repository>Explore Working Copy (#4357)
dscho Mar 21, 2023
427afdb
Lazy load libcurl, allowing for an SSL/TLS backend-specific libcurl (…
dscho May 15, 2023
bf1f6a7
Merge branch 'nano-server'
dscho Aug 7, 2023
1d94746
Additional error checks for issuing the windows.appendAtomically warn…
dscho Aug 7, 2023
4edaaf6
win32: use native ANSI sequence processing, if possible (#4700)
dscho Dec 2, 2023
b7bee63
ARM64: Embed manifest properly (#4718)
dscho Dec 7, 2023
a9c67b6
common-main.c: fflush stdout buffer when exit (#4901)
dscho Apr 12, 2024
d9dae88
Merge branch 'run-t5601-and-t7406-with-symlinks-on-windows-10'
dscho Jul 12, 2024
e147e8c
Merge branch 'Fix-i686-build-with-GCC-v14'
dscho Jul 12, 2024
7d3ead2
Merge branch 'Fallback-to-AppData-if-XDG-CONFIG-HOME-is-unset'
dscho Jul 12, 2024
cd9ad1d
Merge branch 'run-command-be-helpful-when-Git-LFS-fails-on-Windows-7'
dscho Jul 12, 2024
c6ae340
pack-objects: create new name-hash algorithm (#5157)
dscho Sep 24, 2024
0c32eab
Add path walk API and its use in 'git pack-objects' (#5171)
derrickstolee Sep 25, 2024
ef5d8d0
Add experimental 'git survey' builtin (#5174)
dscho Sep 26, 2024
b6c63f8
credential-cache: handle ECONNREFUSED gracefully (#5329)
dscho Jan 1, 2025
8ed12b1
mingw_open_existing: handle directories better (#5342)
dscho Jan 23, 2025
32e49e9
git-gui--askyesno: fix funny text wrapping
dscho Sep 20, 2017
d4f694e
git-gui: provide question helper for retry fallback on Windows
hvoigt Feb 21, 2010
519f93b
git-gui--askyesno: allow overriding the window title
dscho Sep 20, 2017
89bc64c
git gui: set GIT_ASKPASS=git-gui--askpass if not set yet
dscho Jul 23, 2010
cb8c1ba
git-gui--askyesno (mingw): use Git for Windows' icon, if available
dscho Sep 20, 2017
5c20572
Merge 'git-gui' into HEAD
dscho Jun 7, 2018
6793911
Merge branch 'ready-for-upstream'
dscho Oct 11, 2018
862db5d
Win32: make FILETIME conversion functions public
kblees Jul 6, 2013
73bf020
Win32: dirent.c: Move opendir down
kblees Sep 8, 2013
e97aa33
mingw: make the dirent implementation pluggable
kblees Sep 8, 2013
ecf6a02
Win32: make the lstat implementation pluggable
kblees Sep 8, 2013
8b8e7d3
mingw: add infrastructure for read-only file system level caches
kblees Sep 8, 2013
35dbffe
mingw: add a cache below mingw's lstat and dirent implementations
kblees Oct 1, 2013
25d264c
fscache: load directories only once
kblees Jun 24, 2014
9f73b86
fscache: add key for GIT_TRACE_FSCACHE
jeffhostetler Jan 24, 2017
48d8a11
fscache: remember not-found directories
jeffhostetler Dec 13, 2016
fcf2313
fscache: add a test for the dir-not-found optimization
dscho Jan 25, 2017
f50caa2
Merge branch 'git-gui-askyesno'
dscho Jun 8, 2018
737e787
add: use preload-index and fscache for performance
jeffhostetler Nov 22, 2016
9ce7a27
dir.c: make add_excludes aware of fscache during status
jeffhostetler Nov 1, 2017
76dc3e3
fscache: make fscache_enabled() public
jeffhostetler Dec 20, 2017
e61753c
dir.c: regression fix for add_excludes with fscache
jeffhostetler Dec 20, 2017
69115c7
fetch-pack.c: enable fscache for stats under .git/objects
Nov 22, 2017
5bf3379
checkout.c: enable fscache for checkout again
Jan 30, 2018
3e8242d
Enable the filesystem cache (fscache) in refresh_index().
benpeart Sep 7, 2018
4e178d7
fscache: use FindFirstFileExW to avoid retrieving the short name
benpeart Oct 23, 2018
6e15a57
fscache: add GIT_TEST_FSCACHE support
benpeart Oct 4, 2018
9973091
mem_pool: add GIT_TRACE_MEMPOOL support
benpeart Oct 4, 2018
da44095
fscache: add fscache hit statistics
benpeart Sep 25, 2018
11db1e9
fscache: fscache takes an initial size
benpeart Nov 2, 2018
1bc8d18
unpack-trees: enable fscache for sparse-checkout
derrickstolee Jun 12, 2019
382787f
status: disable and free fscache at the end of the status command
benpeart Nov 1, 2018
180b62f
fscache: update fscache to be thread specific instead of global
benpeart Oct 4, 2018
a27f98e
fscache: teach fscache to use mempool
benpeart Nov 2, 2018
395aafc
fscache: remember the reparse tag for each entry
dscho Dec 11, 2018
b209e76
fscache: make fscache_enable() thread safe
benpeart Nov 16, 2018
732794e
fscache: implement an FSCache-aware is_mount_point()
dscho Dec 11, 2018
b82ca24
fscache: teach fscache to use NtQueryDirectoryFile
benpeart Nov 15, 2018
8e4cd5d
clean: make use of FSCache
dscho Dec 11, 2018
c01f5f1
Merge branch 'fscache'
dscho Nov 15, 2018
0f86e87
Merge pull request #1909 from benpeart/free-fscache-after-status-gfw
dscho Nov 5, 2018
1145164
Merge remote-tracking branch 'benpeart/fscache-per-thread-gfw'
dscho Nov 16, 2018
e6b38f3
Merge branch 'dont-clean-junctions-fscache'
dscho Jul 23, 2019
fd0ff69
pack-objects (mingw): demonstrate a segmentation fault with large deltas
vangdfang Jan 9, 2014
af55668
mingw: support long paths
kblees Jul 28, 2015
b80d792
Win32: fix 'lstat("dir/")' with long paths
kblees Jul 4, 2014
b1e531e
win32(long path support): leave drive-less absolute paths intact
dscho Sep 6, 2023
7cb53dd
strbuf_readlink: don't call readlink twice if hint is the exact link …
kblees May 11, 2015
c22af68
strbuf_readlink: support link targets that exceed PATH_MAX
kblees May 11, 2015
6c6742f
lockfile.c: use is_dir_sep() instead of hardcoded '/' checks
kblees May 11, 2015
bf4a16f
Win32: don't call GetFileAttributes twice in mingw_lstat()
kblees May 12, 2015
ee7f546
Win32: implement stat() with symlink support
kblees May 15, 2015
ec7636b
mingw: Support `git_terminal_prompt` with more terminals
kblees Mar 19, 2015
71553bc
Win32: remove separate do_lstat() function
kblees May 11, 2015
7ff209c
compat/fsmonitor/fsm-*-win32: support long paths
jeffhostetler Mar 25, 2022
d0625de
compat/terminal.c: only use the Windows console if bash 'read -r' fails
kblees May 9, 2015
bf0b513
Win32: let mingw_lstat() error early upon problems with reparse points
kblees May 23, 2015
806115e
clean: suggest using `core.longPaths` if paths are too long to remove
mathstuf Apr 22, 2022
f579f11
mingw (git_terminal_prompt): do fall back to CONIN$/CONOUT$ method
dscho Feb 23, 2018
4e98f90
mingw: teach fscache and dirent about symlinks
kblees Jan 10, 2017
5b3bbbe
Win32: lstat(): return adequate stat.st_size for symlinks
kblees May 15, 2015
ec3485c
Win32: factor out retry logic
kblees May 19, 2015
6ba922e
Win32: change default of 'core.symlinks' to false
kblees May 23, 2015
1cf1ac5
Win32: add symlink-specific error codes
kblees May 15, 2015
12e6144
Win32: mingw_unlink: support symlinks to directories
kblees May 23, 2015
c2d4cbf
Win32: mingw_rename: support renaming symlinks
kblees May 19, 2015
a66dc57
Win32: mingw_chdir: change to symlink-resolved directory
kblees May 23, 2015
e568585
Win32: implement readlink()
kblees May 23, 2015
e6b4d99
mingw: lstat: compute correct size for symlinks
billziss-gh May 28, 2020
3ab2cf5
Win32: implement basic symlink() functionality (file symlinks only)
kblees May 23, 2015
698537c
Win32: symlink: add support for symlinks to directories
kblees May 23, 2015
bb87008
mingw: try to create symlinks without elevated permissions
dscho May 30, 2017
3641116
mingw: introduce code to detect whether we're inside a Windows container
ZCube Apr 23, 2018
2e08b9a
mingw: when running in a Windows container, try to rename() harder
ZCube Apr 23, 2018
2fe03b8
Win32: symlink: move phantom symlink creation to a separate function
piscisaureus Oct 26, 2018
b0777fb
mingw: emulate stat() a little more faithfully
dscho Mar 2, 2020
a35506b
mingw: move the file_attr_to_st_mode() function definition
ZCube Apr 23, 2018
4fcf20f
Introduce helper to create symlinks that knows about index_state
dscho Feb 11, 2019
ff0b5dd
mingw: special-case index entries for symlinks with buggy size
dscho Jun 4, 2020
de17edc
mingw: Windows Docker volumes are *not* symbolic links
dscho Apr 23, 2018
eaf8a32
mingw: work around rename() failing on a read-only file
dsl101 Jul 28, 2023
2d008d3
mingw: explicitly specify with which cmd to prefix the cmdline
dscho Jul 20, 2017
1afc365
mingw: when path_lookup() failed, try BusyBox
dscho Jul 20, 2017
60bad2b
test-lib: avoid unnecessary Perl invocation
dscho Aug 5, 2017
3999f8e
test-tool: learn to act as a drop-in replacement for `iconv`
dscho Jul 20, 2017
c99ee77
tests(mingw): if `iconv` is unavailable, use `test-helper --iconv`
dscho Jul 20, 2017
de632bc
gitattributes: mark .png files as binary
dscho Oct 11, 2018
96c8582
tests: move test PNGs into t/lib-diff/
dscho Aug 5, 2017
b71774f
mingw: allow to specify the symlink type in .gitattributes
piscisaureus Oct 26, 2018
8a0d2fb
tests: only override sort & find if there are usable ones in /usr/bin/
dscho Jul 17, 2017
7d4a60b
Win32: symlink: add test for `symlink` attribute
piscisaureus Oct 26, 2018
f91a003
tests: use the correct path separator with BusyBox
dscho Nov 19, 2018
804d7af
mingw: only use Bash-ism `builtin pwd -W` when available
dscho Jun 29, 2017
fbc0d90
tests (mingw): remove Bash-specific pwd option
dscho Jun 30, 2017
950f9e0
test-lib: add BUSYBOX prerequisite
dscho Jul 19, 2017
462b866
t5003: use binary file from t/lib-diff/
dscho Aug 5, 2017
2463898
t5532: workaround for BusyBox on Windows
dscho Jul 21, 2017
516dd6b
t5605: special-case hardlink test for BusyBox-w32
dscho Jul 21, 2017
139edcf
t5813: allow for $PWD to be a Windows path
dscho Jul 5, 2017
f4d6cb8
t9200: skip tests when $PWD contains a colon
dscho Jul 7, 2017
3382520
mingw: add a Makefile target to copy test artifacts
dscho Jul 19, 2017
82ca96f
mingw: kill child processes in a gentler way
dscho May 17, 2017
31d24d9
mingw: optionally enable wsl compability file mode bits
swigger Jun 7, 2023
1a2b289
mingw: really handle SIGINT
dscho Apr 22, 2018
5dc0ec2
mingw: do not call xutftowcs_path in mingw_mktemp
neerajsi-msft Oct 27, 2021
8b86828
Partially un-revert "editor: save and reset terminal after calling ED…
dscho Nov 25, 2021
ceaeb32
Describe Git for Windows' architecture [no ci]
dscho Feb 13, 2023
64cf4ee
Add a GitHub workflow to monitor component updates
dscho Sep 29, 2020
2c73a57
Modify the Code of Conduct for Git for Windows
dscho Oct 11, 2019
bc143cb
reset: reinstate support for the deprecated --stdin option
dscho Dec 10, 2019
0df1f50
fsmonitor: reintroduce core.useBuiltinFSMonitor
vdye Apr 4, 2022
32e431e
dependabot: help keeping GitHub Actions versions up to date
dscho Feb 6, 2024
cee777f
CONTRIBUTING.md: add guide for first-time contributors
derrickstolee Mar 1, 2018
cb5a3e7
README.md: Add a Windows-specific preamble
dscho Jan 10, 2014
717e7ef
Merge branch 'gitk-and-git-gui-patches'
dscho Oct 11, 2018
e42d2d7
Add an issue template
shiftkey Feb 18, 2016
b6231dc
Merge branch 'long-paths'
dscho Nov 15, 2018
5688f5e
Modify the GitHub Pull Request template (to reflect Git for Windows)
Dec 22, 2017
253859f
Merge branch 'msys2'
dscho Nov 15, 2018
fdb4334
SECURITY.md: document Git for Windows' policies
dscho Aug 23, 2019
d569d01
Merge branch 'kblees/kb/symlinks'
dscho Nov 15, 2018
612fa3c
Merge 'docker-volumes-are-no-symlinks'
dscho Oct 12, 2018
3107ebf
mingw: try resetting the read-only bit if rename fails (#4527)
dscho Aug 7, 2023
b753461
Merge pull request #1897 from piscisaureus/symlink-attr
dscho Oct 31, 2018
1bb7392
Merge branch 'busybox-w32'
dscho Feb 7, 2019
0c1fb27
Merge branch 'wsl-file-mode-bits'
dscho Aug 7, 2023
bba18fb
Merge pull request #1170 from dscho/mingw-kill-process
dscho Oct 11, 2018
156328c
Merge pull request #3492 from dscho/ns/batched-fsync
vdye Oct 28, 2021
372b801
Merge branch 'un-revert-editor-save-and-reset'
dscho Jan 15, 2022
9081a08
Merge branch 'phase-out-reset-stdin'
dscho Jun 8, 2018
255b3cc
Merge branch 'deprecate-core.useBuiltinFSMonitor'
dscho Jan 24, 2023
cc6cc94
Merge pull request #2837 from dscho/monitor-component-updates
dscho Oct 7, 2020
d20d8cd
Merge 'readme' into HEAD
dscho Jun 7, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ insert_final_newline = true

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

Expand Down
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*.bat text eol=crlf
*.png binary
CODE_OF_CONDUCT.md -whitespace
/Documentation/**/*.txt text eol=lf
/Documentation/**/*.adoc text eol=lf
/command-list.txt text eol=lf
/GIT-VERSION-GEN text eol=lf
/mergetools/* text eol=lf
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coverity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
- run: ci/install-dependencies.sh
if: contains(matrix.os, 'ubuntu') || contains(matrix.os, 'macos')
env:
distro: ${{ matrix.os }}
CI_JOB_IMAGE: ${{ matrix.os }}

# The Coverity site says the tool is usually updated twice yearly, so the
# MD5 of download can be used to determine whether there's been an update.
Expand Down
128 changes: 87 additions & 41 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,58 @@ jobs:
with:
name: failed-tests-windows-vs-${{ matrix.nr }}
path: ${{env.FAILED_TEST_ARTIFACTS}}

windows-meson-build:
name: win+Meson build
needs: ci-config
if: needs.ci-config.outputs.enabled == 'yes'
runs-on: windows-latest
concurrency:
group: windows-meson-build-${{ github.ref }}
cancel-in-progress: ${{ needs.ci-config.outputs.skip_concurrent == 'yes' }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Set up dependencies
shell: pwsh
run: pip install meson ninja
- name: Setup
shell: pwsh
run: meson setup build -Dperl=disabled
- name: Compile
shell: pwsh
run: meson compile -C build
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: windows-meson-artifacts
path: build
windows-meson-test:
name: win+Meson test
runs-on: windows-latest
needs: [ci-config, windows-meson-build]
strategy:
fail-fast: false
matrix:
nr: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
concurrency:
group: windows-meson-test-${{ matrix.nr }}-${{ github.ref }}
cancel-in-progress: ${{ needs.ci-config.outputs.skip_concurrent == 'yes' }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Set up dependencies
shell: pwsh
run: pip install meson ninja
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: windows-meson-artifacts
path: build
- name: Test
shell: pwsh
run: meson test -C build --list | Select-Object -Skip 1 | Select-String .* | Group-Object -Property { $_.LineNumber % 10 } | Where-Object Name -EQ ${{ matrix.nr }} | ForEach-Object { meson test -C build --no-rebuild --print-errorlogs $_.Group }

regular:
name: ${{matrix.vector.jobname}} (${{matrix.vector.pool}})
needs: ci-config
Expand All @@ -262,20 +314,6 @@ jobs:
fail-fast: false
matrix:
vector:
- jobname: linux-sha256
cc: clang
pool: ubuntu-latest
- jobname: linux-reftable
cc: clang
pool: ubuntu-latest
- jobname: linux-gcc
cc: gcc
cc_package: gcc-8
pool: ubuntu-20.04
- jobname: linux-TEST-vars
cc: gcc
cc_package: gcc-8
pool: ubuntu-20.04
- jobname: osx-clang
cc: clang
pool: macos-13
Expand All @@ -288,26 +326,11 @@ jobs:
- jobname: osx-meson
cc: clang
pool: macos-13
- jobname: linux-gcc-default
cc: gcc
pool: ubuntu-latest
- jobname: linux-leaks
cc: gcc
pool: ubuntu-latest
- jobname: linux-reftable-leaks
cc: gcc
pool: ubuntu-latest
- jobname: linux-asan-ubsan
cc: clang
pool: ubuntu-latest
- jobname: linux-meson
cc: gcc
pool: ubuntu-latest
env:
CC: ${{matrix.vector.cc}}
CC_PACKAGE: ${{matrix.vector.cc_package}}
jobname: ${{matrix.vector.jobname}}
distro: ${{matrix.vector.pool}}
CI_JOB_IMAGE: ${{matrix.vector.pool}}
TEST_OUTPUT_DIRECTORY: ${{github.workspace}}/t
runs-on: ${{matrix.vector.pool}}
steps:
Expand Down Expand Up @@ -345,27 +368,48 @@ jobs:
fail-fast: false
matrix:
vector:
- jobname: linux-musl
image: alpine
distro: alpine-latest
- jobname: linux-sha256
image: ubuntu:rolling
cc: clang
- jobname: linux-reftable
image: ubuntu:rolling
cc: clang
- jobname: linux-TEST-vars
image: ubuntu:20.04
cc: gcc
cc_package: gcc-8
- jobname: linux-breaking-changes
cc: gcc
image: ubuntu:rolling
- jobname: linux-leaks
image: ubuntu:rolling
cc: gcc
- jobname: linux-reftable-leaks
image: ubuntu:rolling
cc: gcc
- jobname: linux-asan-ubsan
image: ubuntu:rolling
cc: clang
- jobname: linux-meson
image: ubuntu:rolling
cc: gcc
- jobname: linux-musl-meson
image: alpine:latest
# Supported until 2025-04-02.
- jobname: linux32
image: i386/ubuntu:focal
distro: ubuntu32-20.04
- jobname: pedantic
image: fedora
distro: fedora-latest
image: fedora:latest
# A RHEL 8 compatible distro. Supported until 2029-05-31.
- jobname: almalinux-8
image: almalinux:8
distro: almalinux-8
# Supported until 2026-08-31.
- jobname: debian-11
image: debian:11
distro: debian-11
env:
jobname: ${{matrix.vector.jobname}}
distro: ${{matrix.vector.distro}}
CC: ${{matrix.vector.cc}}
CI_JOB_IMAGE: ${{matrix.vector.image}}
runs-on: ubuntu-latest
container: ${{matrix.vector.image}}
steps:
Expand All @@ -374,10 +418,12 @@ jobs:
run: apt -q update && apt -q -y install libc6-amd64 lib64stdc++6
- uses: actions/checkout@v4
- run: ci/install-dependencies.sh
- run: ci/run-build-and-tests.sh
- run: useradd builder --create-home
- run: chown -R builder .
- run: sudo --preserve-env --set-home --user=builder ci/run-build-and-tests.sh
- name: print test failures
if: failure() && env.FAILED_TEST_ARTIFACTS != ''
run: ci/print-test-failures.sh
run: sudo --preserve-env --set-home --user=builder ci/print-test-failures.sh
- name: Upload failed tests' directories
if: failure() && env.FAILED_TEST_ARTIFACTS != ''
uses: actions/upload-artifact@v4
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -253,3 +253,5 @@ Release/
*.dSYM
/contrib/buildsystems/out
CMakeSettings.json
/contrib/libgit-rs/target
/contrib/libgit-sys/target
67 changes: 50 additions & 17 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,41 +36,36 @@ test:linux:
fi
parallel:
matrix:
- jobname: linux-old
image: ubuntu:20.04
CC: gcc
- jobname: linux-sha256
image: ubuntu:latest
image: ubuntu:rolling
CC: clang
- jobname: linux-reftable
image: ubuntu:latest
image: ubuntu:rolling
CC: clang
- jobname: linux-gcc
- jobname: linux-breaking-changes
image: ubuntu:20.04
CC: gcc
CC_PACKAGE: gcc-8
- jobname: linux-TEST-vars
image: ubuntu:20.04
CC: gcc
CC_PACKAGE: gcc-8
- jobname: linux-gcc-default
image: ubuntu:latest
CC: gcc
- jobname: linux-leaks
image: ubuntu:latest
image: ubuntu:rolling
CC: gcc
- jobname: linux-reftable-leaks
image: ubuntu:latest
image: ubuntu:rolling
CC: gcc
- jobname: linux-asan-ubsan
image: ubuntu:latest
image: ubuntu:rolling
CC: clang
- jobname: pedantic
image: fedora:latest
- jobname: linux-musl
- jobname: linux-musl-meson
image: alpine:latest
- jobname: linux32
image: i386/ubuntu:20.04
- jobname: linux-meson
image: ubuntu:latest
image: ubuntu:rolling
CC: gcc
artifacts:
paths:
Expand Down Expand Up @@ -149,6 +144,44 @@ test:mingw64:
- git-sdk/usr/bin/bash.exe -l -c 'ci/print-test-failures.sh'
parallel: 10

.msvc-meson:
tags:
- saas-windows-medium-amd64
before_script:
- choco install -y git meson ninja openssl
- Import-Module $env:ChocolateyInstall\helpers\chocolateyProfile.psm1
- refreshenv
# The certificate store for Python on Windows is broken and fails to fetch
# certificates, see https://bugs.python.org/issue36011. This seems to
# mostly be an issue with how the GitLab image is set up as it is a
# non-issue on GitHub Actions. Work around the issue by importing
# cetrificates manually.
- Invoke-WebRequest https://curl.haxx.se/ca/cacert.pem -OutFile cacert.pem
- openssl pkcs12 -export -nokeys -in cacert.pem -out certs.pfx -passout "pass:"
- Import-PfxCertificate -CertStoreLocation Cert:\LocalMachine\Root -FilePath certs.pfx

build:msvc-meson:
extends: .msvc-meson
stage: build
script:
- meson setup build -Dperl=disabled
- meson compile -C build
artifacts:
paths:
- build

test:msvc-meson:
extends: .msvc-meson
stage: test
when: manual
timeout: 6h
needs:
- job: "build:msvc-meson"
artifacts: true
script:
- 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 }
parallel: 10

test:fuzz-smoke-tests:
image: ubuntu:latest
stage: test
Expand Down Expand Up @@ -183,7 +216,7 @@ check-whitespace:
# be defined in all pipelines.
script:
- |
R=${CI_MERGE_REQUEST_TARGET_BRANCH_SHA-${CI_MERGE_REQUEST_DIFF_BASE_SHA:?}} || exit
R=${CI_MERGE_REQUEST_TARGET_BRANCH_SHA:-${CI_MERGE_REQUEST_DIFF_BASE_SHA:?}} || exit
./ci/check-whitespace.sh "$R"
rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
Expand All @@ -203,7 +236,7 @@ check-style:
# be defined in all pipelines.
script:
- |
R=${CI_MERGE_REQUEST_TARGET_BRANCH_SHA-${CI_MERGE_REQUEST_DIFF_BASE_SHA:?}} || exit
R=${CI_MERGE_REQUEST_TARGET_BRANCH_SHA:-${CI_MERGE_REQUEST_DIFF_BASE_SHA:?}} || exit
./ci/run-style-check.sh "$R"
rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
Expand Down
8 changes: 4 additions & 4 deletions Documentation/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
*.pdf
git.info
gitman.info
howto-index.txt
howto-index.adoc
doc.dep
cmds-*.txt
mergetools-*.txt
SubmittingPatches.txt
cmds-*.adoc
mergetools-*.adoc
SubmittingPatches.adoc
tmp-doc-diff/
tmp-meson-diff/
GIT-ASCIIDOCFLAGS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,31 @@ Cf. <[email protected]>,
<CAKvOHKAFXQwt4D8yUCCkf_TQL79mYaJ=KAKhtpDNTvHJFuX1NA@mail.gmail.com>,
<[email protected]>,

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

== Superseded features that will not be deprecated

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