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.48.0 rc1 #5337

Merged
merged 513 commits into from
Dec 31, 2024
Merged
Changes from 2 commits
Commits
Show all changes
513 commits
Select commit Hold shift + click to select a range
7fb1ae5
Merge branch 'safe-PATH-lookup-in-gitk-on-Windows'
dscho Jan 21, 2023
34b04ff
Merge 'remote-hg-prerequisites' into HEAD
dscho Jun 8, 2018
e73893e
Merge branch 'drive-prefix'
dscho Jun 8, 2018
fe4d145
run-command: be helpful with Git LFS fails on Windows 7
dscho Jul 4, 2024
06e0112
clean: do not traverse mount points
dscho Dec 7, 2018
7dbe561
clean: remove mount points when possible
dscho Dec 11, 2018
da9b725
Merge branch 'dont-clean-junctions'
dscho Jul 30, 2019
d7df245
Merge branch 'msys2-python'
dscho May 31, 2019
cd7cf56
Merge branch 'mimalloc-v2.0.9'
dscho Sep 8, 2022
beb5609
Merge pull request #2375 from assarbad/reintroduce-sideband-config
dscho Oct 30, 2019
da29bce
Merge pull request #2405 from dscho/mingw-setsockopt
dscho Nov 25, 2019
d541c52
Merge pull request #2449 from dscho/mingw-getcwd-and-symlinks
dscho Jan 3, 2020
a9a0c48
Merge pull request #2488 from bmueller84/master
dscho Jan 22, 2020
870c8d6
Merge pull request #2501 from jeffhostetler/clink-debug-curl
dscho Jan 30, 2020
f8cd560
Merge pull request #2504 from dscho/access-repo-via-junction
dscho Feb 1, 2020
7cb2536
Merge pull request #2506 from dscho/issue-2283
dscho Feb 11, 2020
de511d7
Merge pull request #2535 from dscho/schannel-revoke-best-effort
dscho Mar 4, 2020
6407120
Merge pull request #2618 from dscho/avoid-d/f-conflict-in-vs/master
dscho May 9, 2020
88a8e24
Merge 'add-p-many-files'
dscho Jun 8, 2018
f2157d4
Merge pull request #2730 from dscho/crlf-aware-git-add-i
dscho Jul 2, 2020
f1a1373
Merge pull request #2714 from lbonanomi/crlf-scissors
dscho Jul 3, 2020
4fe1db9
Merge pull request #2655 from jglathe/jg/t0014_trace_extra_info
dscho Oct 9, 2020
e9200cf
Merge 'git-gui/js/intent-to-add'
dscho Oct 18, 2020
6c3c708
Merge pull request #2974 from derrickstolee/maintenance-and-headless
dscho Jan 11, 2021
c8a4dc5
cmake: install headless-git. (#4338)
dscho Mar 13, 2023
f6a54f1
Merge pull request #2351 from PhilipOakley/vcpkg-tip
dscho Oct 7, 2019
ccbec2f
Merge pull request #2915 from dennisameling/windows-arm64-support
dscho Dec 9, 2020
0ed7af2
Merge pull request #3327 from dennisameling/fix-host-cpu
dscho Jul 19, 2021
e623cef
Merge pull request #3165 from dscho/increase-allowed-length-of-interp…
dscho Apr 3, 2021
86b931d
Merge pull request #3220 from dscho/there-is-no-vs/master-anymore
dscho May 17, 2021
6173157
Merge pull request #3293 from pascalmuller/http-support-automatically…
dscho Jun 24, 2021
6fcd144
Merge pull request #3349 from vdye/feature/ci-subtree-tests
dscho Aug 10, 2021
1c14759
Merge pull request #3306 from PhilipOakley/vs-sln
dscho Oct 12, 2021
76e1342
Merge pull request #3417 from dscho/initialize-core.symlinks-earlier
dscho Oct 13, 2021
5da2991
Merge pull request #3533 from PhilipOakley/hashliteral_t
dscho Dec 15, 2021
fc26435
Merge pull request #3791: Various fixes around `safe.directory`
derrickstolee Apr 13, 2022
7b204a8
Merge pull request #3751 from rkitover/native-term
dscho Apr 21, 2022
990b30e
Merge pull request #3875 from 1480c1/wine/detect_msys_tty
dscho May 30, 2022
c38e4c7
Merge branch 'optionally-dont-append-atomically-on-windows'
dscho Jun 23, 2022
cbbfd77
Merge branch 'fsync-object-files-always'
dscho Oct 11, 2018
13fd784
Merge branch 'ci-fixes'
dscho Feb 11, 2021
b4bbe84
Merge pull request #3942 from rimrul/mingw-tsaware
dscho Jul 27, 2022
aa15e39
Fix Windows version resources (#4092)
dscho Nov 3, 2022
04375b7
Merge branch 'builtin-swap-functions'
dscho Nov 23, 2022
96ce6dc
Add support for CLANGARM64 target (#3916)
dscho Oct 28, 2022
79dbf24
Fix global repository field not being cleared (#4083)
dscho Dec 20, 2022
49e222c
Skip linking the "dashed" `git-<command>`s for built-ins (#4252)
dscho Jan 31, 2023
7a3b0bf
Git GUI: fix Repository>Explore Working Copy (#4357)
dscho Mar 21, 2023
1d1d34c
Lazy load libcurl, allowing for an SSL/TLS backend-specific libcurl (…
dscho May 15, 2023
780a638
Merge branch 'nano-server'
dscho Aug 7, 2023
97d6a3d
Additional error checks for issuing the windows.appendAtomically warn…
dscho Aug 7, 2023
bee92c6
win32: use native ANSI sequence processing, if possible (#4700)
dscho Dec 2, 2023
f6ea06b
ARM64: Embed manifest properly (#4718)
dscho Dec 7, 2023
8e8746f
common-main.c: fflush stdout buffer when exit (#4901)
dscho Apr 12, 2024
8a03762
Merge branch 'run-t5601-and-t7406-with-symlinks-on-windows-10'
dscho Jul 12, 2024
a3bc5a7
Merge branch 'Fix-i686-build-with-GCC-v14'
dscho Jul 12, 2024
9058dbf
Merge branch 'Fallback-to-AppData-if-XDG-CONFIG-HOME-is-unset'
dscho Jul 12, 2024
02d8f68
Merge branch 'run-command-be-helpful-when-Git-LFS-fails-on-Windows-7'
dscho Jul 12, 2024
c18eec2
test-tool: add helper for name-hash values
derrickstolee Sep 9, 2024
717d2ea
path-walk: introduce an object walk by path
derrickstolee Aug 29, 2024
5712852
t6601: add helper for testing path-walk API
derrickstolee Sep 18, 2024
5ca70e2
path-walk: allow consumer to specify object types
derrickstolee Sep 1, 2024
ea9bfb1
path-walk: allow visiting tags
derrickstolee Sep 9, 2024
22bf55a
revision: create mark_trees_uninteresting_dense()
derrickstolee Sep 6, 2024
d3c8e10
repack/pack-objects: mark `--full-name-hash` as experimental
dscho Sep 24, 2024
c828be5
path-walk: add prune_all_uninteresting option
derrickstolee Sep 4, 2024
4ba7825
pack-objects: extract should_attempt_deltas()
derrickstolee Sep 24, 2024
631e5ae
pack-objects: add --path-walk option
derrickstolee Sep 5, 2024
668d2c6
pack-objects: introduce GIT_TEST_PACK_PATH_WALK
derrickstolee Sep 6, 2024
c08b741
repack: add --path-walk option
derrickstolee Sep 5, 2024
bcc2998
pack-objects: enable --path-walk via config
derrickstolee Sep 5, 2024
b66f206
scalar: enable path-walk during push via config
derrickstolee Sep 5, 2024
fc1b841
pack-objects: refactor path-walk delta phase
derrickstolee Sep 18, 2024
ed57923
backfill: add builtin boilerplate
derrickstolee Jun 7, 2024
8fa78d4
backfill: basic functionality and tests
derrickstolee Sep 1, 2024
6bbef15
backfill: add --batch-size=<n> option
derrickstolee Sep 1, 2024
cdcc117
backfill: add --sparse option
derrickstolee Sep 1, 2024
00d5b70
pack-objects: thread the path-based compression
derrickstolee Sep 18, 2024
82591fb
path-walk API: avoid adding a root tree more than once
dscho Oct 7, 2024
247d737
survey: stub in new experimental 'git-survey' command
Apr 29, 2024
1b0e485
survey: add command line opts to select references
Apr 29, 2024
dcde0e1
survey: start pretty printing data in table form
derrickstolee Sep 1, 2024
ae8bf20
survey: add object count summary
derrickstolee Sep 2, 2024
0ccd24d
backfill: assume --sparse when sparse-checkout is enabled
derrickstolee Sep 1, 2024
e91880a
survey: summarize total sizes by object type
derrickstolee Sep 2, 2024
e3a0eb1
backfill: mark it as experimental
dscho Sep 26, 2024
8039e13
survey: show progress during object walk
derrickstolee Sep 2, 2024
4c6ca70
survey: add ability to track prioritized lists
derrickstolee Sep 2, 2024
b0605a4
survey: add report of "largest" paths
derrickstolee Sep 2, 2024
daeb926
survey: add --top=<N> option and config
derrickstolee Sep 23, 2024
937327e
survey: clearly note the experimental nature in the output
dscho Jul 1, 2024
43f7f13
path-walk: improve path-walk speed with many tags
derrickstolee Oct 9, 2024
57102a0
pack-objects: create new name-hash algorithm (#5157)
dscho Sep 24, 2024
fe9bb49
Add path walk API and its use in 'git pack-objects' (#5171)
derrickstolee Sep 25, 2024
6361ad9
path-walk API: avoid adding a root tree more than once (#5195)
dscho Oct 8, 2024
8261a96
Introduce 'git backfill' to get missing blobs in a partial clone (#5172)
dscho Sep 26, 2024
0a2409f
Add experimental 'git survey' builtin (#5174)
dscho Sep 26, 2024
2653087
path-walk: improve path-walk speed with many tags (#5205)
dscho Oct 11, 2024
7437408
Win32: make FILETIME conversion functions public
kblees Jul 6, 2013
c467349
Win32: dirent.c: Move opendir down
kblees Sep 8, 2013
c1a73bc
mingw: make the dirent implementation pluggable
kblees Sep 8, 2013
8f716ae
Win32: make the lstat implementation pluggable
kblees Sep 8, 2013
84375a7
mingw: add infrastructure for read-only file system level caches
kblees Sep 8, 2013
1ff2275
mingw: add a cache below mingw's lstat and dirent implementations
kblees Oct 1, 2013
3c6c1a3
fscache: load directories only once
kblees Jun 24, 2014
1ba5bb6
Merge branch 'ready-for-upstream'
dscho Oct 11, 2018
842ccc1
fscache: add key for GIT_TRACE_FSCACHE
jeffhostetler Jan 24, 2017
1eecdca
dir.c: make add_excludes aware of fscache during status
jeffhostetler Nov 1, 2017
e251d36
fscache: remember not-found directories
jeffhostetler Dec 13, 2016
8b9520d
fscache: make fscache_enabled() public
jeffhostetler Dec 20, 2017
f2ed338
fscache: add a test for the dir-not-found optimization
dscho Jan 25, 2017
37a5774
add: use preload-index and fscache for performance
jeffhostetler Nov 22, 2016
6e65c31
dir.c: regression fix for add_excludes with fscache
jeffhostetler Dec 20, 2017
5ce03d7
fetch-pack.c: enable fscache for stats under .git/objects
Nov 22, 2017
e89f5ef
checkout.c: enable fscache for checkout again
Jan 30, 2018
9a234e5
Enable the filesystem cache (fscache) in refresh_index().
benpeart Sep 7, 2018
ba37bce
fscache: use FindFirstFileExW to avoid retrieving the short name
benpeart Oct 23, 2018
c16679f
status: disable and free fscache at the end of the status command
benpeart Nov 1, 2018
7212f15
mem_pool: add GIT_TRACE_MEMPOOL support
benpeart Oct 4, 2018
d62cc4a
fscache: fscache takes an initial size
benpeart Nov 2, 2018
7b620c6
fscache: update fscache to be thread specific instead of global
benpeart Oct 4, 2018
e31fe77
fscache: add GIT_TEST_FSCACHE support
benpeart Oct 4, 2018
b7f233d
fscache: add fscache hit statistics
benpeart Sep 25, 2018
3308914
fscache: teach fscache to use mempool
benpeart Nov 2, 2018
658faab
fscache: remember the reparse tag for each entry
dscho Dec 11, 2018
84dc943
fscache: implement an FSCache-aware is_mount_point()
dscho Dec 11, 2018
951831f
fscache: make fscache_enable() thread safe
benpeart Nov 16, 2018
0ed68ab
fscache: teach fscache to use NtQueryDirectoryFile
benpeart Nov 15, 2018
a4932ba
unpack-trees: enable fscache for sparse-checkout
derrickstolee Jun 12, 2019
aff9c5c
clean: make use of FSCache
dscho Dec 11, 2018
53bc672
gitk: Unicode file name support
kblees Feb 4, 2012
d2a95c9
git-gui--askyesno: fix funny text wrapping
dscho Sep 20, 2017
2891686
gitk: Use an external icon file on Windows
sschuberth Jul 22, 2012
13aaa6f
git-gui: provide question helper for retry fallback on Windows
hvoigt Feb 21, 2010
e85ee97
git-gui--askyesno: allow overriding the window title
dscho Sep 20, 2017
9360077
gitk: fix arrow keys in input fields with Tcl/Tk >= 8.6
dscho Feb 16, 2016
999b9d2
git gui: set GIT_ASKPASS=git-gui--askpass if not set yet
dscho Jul 23, 2010
8b10c79
git-gui--askyesno (mingw): use Git for Windows' icon, if available
dscho Sep 20, 2017
ec83eb8
gitk: make the "list references" default window width wider
sidecut Jan 21, 2016
d064b7d
Merge 'git-gui' into HEAD
dscho Jun 7, 2018
225a649
Merge branch 'git-gui-askyesno'
dscho Jun 8, 2018
1b88843
Merge 'gitk' into HEAD
dscho Jun 7, 2018
5c59ae7
Merge branch 'fscache'
dscho Nov 15, 2018
ead98c6
Merge pull request #994 from jeffhostetler/jeffhostetler/fscache_nfd
dscho Jun 8, 2018
fedccca
Merge pull request #971 from jeffhostetler/jeffhostetler/add_preload_…
dscho Jun 8, 2018
dbe21c0
Merge pull request #1344 from jeffhostetler/perf_add_excludes_with_fs…
dscho Jun 8, 2018
80c4c6f
Merge pull request #1426 from atetubou/fetch_pack
dscho Jun 8, 2018
124f4d4
Merge pull request #1468 from atetubou/fscache_checkout_flush
dscho Oct 12, 2018
3683af5
Merge pull request #1827 from benpeart/fscache_refresh_index
dscho Sep 27, 2018
0f48b1e
Merge pull request #1908 from benpeart/FindFirstFileEx-gfw
dscho Nov 5, 2018
31877cb
Merge pull request #1909 from benpeart/free-fscache-after-status-gfw
dscho Nov 5, 2018
4ef0cbe
Merge pull request #1911 from benpeart/git_test_fscache-gfw
dscho Nov 5, 2018
fe19f7b
Merge pull request #1910 from benpeart/fscache_statistics-gfw
dscho Nov 16, 2018
4b7ad45
Merge remote-tracking branch 'benpeart/fscache-per-thread-gfw'
dscho Nov 16, 2018
4d8f07f
Merge pull request #1934 from benpeart/fscache-thread-safe-enable-gfw
dscho Nov 26, 2018
b2289f0
Merge pull request #1937 from benpeart/fscache-NtQueryDirectoryFile-gfw
dscho Nov 27, 2018
0ee98ae
Merge branch 'fscache-and-sparse-checkout'
derrickstolee Jun 18, 2019
181c119
Merge branch 'dont-clean-junctions-fscache'
dscho Jul 23, 2019
dba37e8
pack-objects (mingw): demonstrate a segmentation fault with large deltas
vangdfang Jan 9, 2014
da59a5a
mingw: support long paths
kblees Jul 28, 2015
29d2eb0
Win32: fix 'lstat("dir/")' with long paths
kblees Jul 4, 2014
281482c
win32(long path support): leave drive-less absolute paths intact
dscho Sep 6, 2023
9d9060a
compat/fsmonitor/fsm-*-win32: support long paths
jeffhostetler Mar 25, 2022
ba0f161
clean: suggest using `core.longPaths` if paths are too long to remove
mathstuf Apr 22, 2022
c8b30ea
strbuf_readlink: don't call readlink twice if hint is the exact link …
kblees May 11, 2015
7564b76
strbuf_readlink: support link targets that exceed PATH_MAX
kblees May 11, 2015
7045375
lockfile.c: use is_dir_sep() instead of hardcoded '/' checks
kblees May 11, 2015
ffac96b
mingw: Support `git_terminal_prompt` with more terminals
kblees Mar 19, 2015
4dd345f
Win32: don't call GetFileAttributes twice in mingw_lstat()
kblees May 12, 2015
8b9b5a0
compat/terminal.c: only use the Windows console if bash 'read -r' fails
kblees May 9, 2015
24b2079
Win32: implement stat() with symlink support
kblees May 15, 2015
86d309f
mingw (git_terminal_prompt): do fall back to CONIN$/CONOUT$ method
dscho Feb 23, 2018
4448227
Win32: remove separate do_lstat() function
kblees May 11, 2015
720ff4f
Win32: let mingw_lstat() error early upon problems with reparse points
kblees May 23, 2015
7f0e475
mingw: teach fscache and dirent about symlinks
kblees Jan 10, 2017
15d9ebc
Win32: lstat(): return adequate stat.st_size for symlinks
kblees May 15, 2015
bfe3a8d
Win32: factor out retry logic
kblees May 19, 2015
fd71c74
Win32: change default of 'core.symlinks' to false
kblees May 23, 2015
9d3dc70
Win32: add symlink-specific error codes
kblees May 15, 2015
4aacaa2
Win32: mingw_unlink: support symlinks to directories
kblees May 23, 2015
a476dff
Win32: mingw_rename: support renaming symlinks
kblees May 19, 2015
b5ce5a5
Win32: mingw_chdir: change to symlink-resolved directory
kblees May 23, 2015
bbdff29
Win32: implement readlink()
kblees May 23, 2015
22444da
mingw: lstat: compute correct size for symlinks
billziss-gh May 28, 2020
779dfff
Win32: implement basic symlink() functionality (file symlinks only)
kblees May 23, 2015
d7135b3
Win32: symlink: add support for symlinks to directories
kblees May 23, 2015
0f5b3be
mingw: introduce code to detect whether we're inside a Windows container
ZCube Apr 23, 2018
f776f96
mingw: try to create symlinks without elevated permissions
dscho May 30, 2017
03e4daf
mingw: when running in a Windows container, try to rename() harder
ZCube Apr 23, 2018
bb48bc5
mingw: emulate stat() a little more faithfully
dscho Mar 2, 2020
f33b115
mingw: move the file_attr_to_st_mode() function definition
ZCube Apr 23, 2018
b19e053
mingw: special-case index entries for symlinks with buggy size
dscho Jun 4, 2020
61d9dc0
Win32: symlink: move phantom symlink creation to a separate function
piscisaureus Oct 26, 2018
714ab70
Introduce helper to create symlinks that knows about index_state
dscho Feb 11, 2019
c1d47f9
mingw: allow to specify the symlink type in .gitattributes
piscisaureus Oct 26, 2018
ddd67d2
mingw: Windows Docker volumes are *not* symbolic links
dscho Apr 23, 2018
d710917
mingw: work around rename() failing on a read-only file
dsl101 Jul 28, 2023
c85178f
Win32: symlink: add test for `symlink` attribute
piscisaureus Oct 26, 2018
3c55f81
mingw: explicitly specify with which cmd to prefix the cmdline
dscho Jul 20, 2017
6202426
mingw: when path_lookup() failed, try BusyBox
dscho Jul 20, 2017
8d068c8
test-lib: avoid unnecessary Perl invocation
dscho Aug 5, 2017
33afc51
test-tool: learn to act as a drop-in replacement for `iconv`
dscho Jul 20, 2017
dcab3e9
tests(mingw): if `iconv` is unavailable, use `test-helper --iconv`
dscho Jul 20, 2017
3b6db2a
gitattributes: mark .png files as binary
dscho Oct 11, 2018
7bcc5bb
tests: move test PNGs into t/lib-diff/
dscho Aug 5, 2017
1819e89
tests: only override sort & find if there are usable ones in /usr/bin/
dscho Jul 17, 2017
cb214a9
tests: use the correct path separator with BusyBox
dscho Nov 19, 2018
b44e0a1
mingw: only use Bash-ism `builtin pwd -W` when available
dscho Jun 29, 2017
6f709cd
tests (mingw): remove Bash-specific pwd option
dscho Jun 30, 2017
fe9b337
test-lib: add BUSYBOX prerequisite
dscho Jul 19, 2017
56397c0
t5003: use binary file from t/lib-diff/
dscho Aug 5, 2017
943cebe
t5532: workaround for BusyBox on Windows
dscho Jul 21, 2017
76aaf08
t5605: special-case hardlink test for BusyBox-w32
dscho Jul 21, 2017
b11693c
t5813: allow for $PWD to be a Windows path
dscho Jul 5, 2017
cc5a6a1
t9200: skip tests when $PWD contains a colon
dscho Jul 7, 2017
08bf6c2
mingw: kill child processes in a gentler way
dscho May 17, 2017
e77fe5f
mingw: add a Makefile target to copy test artifacts
dscho Jul 19, 2017
9dc26ca
mingw: optionally enable wsl compability file mode bits
swigger Jun 7, 2023
985de60
mingw: really handle SIGINT
dscho Apr 22, 2018
cf381e0
mingw: do not call xutftowcs_path in mingw_mktemp
neerajsi-msft Oct 27, 2021
c0e4873
Partially un-revert "editor: save and reset terminal after calling ED…
dscho Nov 25, 2021
afc1e3b
reset: reinstate support for the deprecated --stdin option
dscho Dec 10, 2019
b44b8e6
Describe Git for Windows' architecture [no ci]
dscho Feb 13, 2023
05e17f6
Modify the Code of Conduct for Git for Windows
dscho Oct 11, 2019
bfe0af7
CONTRIBUTING.md: add guide for first-time contributors
derrickstolee Mar 1, 2018
80bd342
README.md: Add a Windows-specific preamble
dscho Jan 10, 2014
1ba81bb
Add a GitHub workflow to monitor component updates
dscho Sep 29, 2020
befbbb2
Add an issue template
shiftkey Feb 18, 2016
4fcf9ff
fsmonitor: reintroduce core.useBuiltinFSMonitor
vdye Apr 4, 2022
7e81408
dependabot: help keeping GitHub Actions versions up to date
dscho Feb 6, 2024
68add37
Merge branch 'gitk-and-git-gui-patches'
dscho Oct 11, 2018
183c8c9
Modify the GitHub Pull Request template (to reflect Git for Windows)
Dec 22, 2017
235e9b1
Merge branch 'long-paths'
dscho Nov 15, 2018
24fa65c
SECURITY.md: document Git for Windows' policies
dscho Aug 23, 2019
516305d
Merge branch 'fix-v4-fsmonitor-long-paths' into try-v4-fsmonitor
jeffhostetler Sep 29, 2021
08d4169
Merge pull request #3817 from mathstuf/name-too-long-advice
dscho Apr 22, 2022
f7f7587
Merge branch 'msys2'
dscho Nov 15, 2018
9e7901f
Merge branch 'kblees/kb/symlinks'
dscho Nov 15, 2018
fe99995
Merge 'docker-volumes-are-no-symlinks'
dscho Oct 12, 2018
607d7a2
mingw: try resetting the read-only bit if rename fails (#4527)
dscho Aug 7, 2023
93b01db
Merge pull request #1897 from piscisaureus/symlink-attr
dscho Oct 31, 2018
6b03046
Merge branch 'busybox-w32'
dscho Feb 7, 2019
35f58b2
Merge branch 'wsl-file-mode-bits'
dscho Aug 7, 2023
d471e61
Merge pull request #1170 from dscho/mingw-kill-process
dscho Oct 11, 2018
a61bb84
Merge pull request #3492 from dscho/ns/batched-fsync
vdye Oct 28, 2021
db8466b
Merge branch 'un-revert-editor-save-and-reset'
dscho Jan 15, 2022
b57f7c3
Merge branch 'phase-out-reset-stdin'
dscho Jun 8, 2018
0b97509
Merge branch 'deprecate-core.useBuiltinFSMonitor'
dscho Jan 24, 2023
0da0453
Merge pull request #2837 from dscho/monitor-component-updates
dscho Oct 7, 2020
5d54b0d
Merge 'readme' into HEAD
dscho Jun 7, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions Documentation/config/http.txt
Original file line number Diff line number Diff line change
@@ -218,11 +218,13 @@ http.sslBackend::

http.schannelCheckRevoke::
Used to enforce or disable certificate revocation checks in cURL
when http.sslBackend is set to "schannel". Defaults to `true` if
unset. Only necessary to disable this if Git consistently errors
and the message is about checking the revocation status of a
certificate. This option is ignored if cURL lacks support for
setting the relevant SSL option at runtime.
when http.sslBackend is set to "schannel" via "true" and "false",
respectively. Another accepted value is "best-effort" (the default)
in which case revocation checks are performed, but errors due to
revocation list distribution points that are offline are silently
ignored, as well as errors due to certificates missing revocation
list distribution points. This option is ignored if cURL lacks
support for setting the relevant SSL option at runtime.

http.schannelUseSSLCAInfo::
As of cURL v7.60.0, the Secure Channel backend can use the
26 changes: 22 additions & 4 deletions http.c
Original file line number Diff line number Diff line change
@@ -143,7 +143,13 @@ static char *cached_accept_language;

static char *http_ssl_backend;

static int http_schannel_check_revoke = 1;
static int http_schannel_check_revoke_mode =
#ifdef CURLSSLOPT_REVOKE_BEST_EFFORT
CURLSSLOPT_REVOKE_BEST_EFFORT;
#else
CURLSSLOPT_NO_REVOKE;
#endif

/*
* With the backend being set to `schannel`, setting sslCAinfo would override
* the Certificate Store in cURL v7.60.0 and later, which is not what we want
@@ -418,7 +424,19 @@ static int http_options(const char *var, const char *value,
}

if (!strcmp("http.schannelcheckrevoke", var)) {
http_schannel_check_revoke = git_config_bool(var, value);
if (value && !strcmp(value, "best-effort")) {
http_schannel_check_revoke_mode =
#ifdef CURLSSLOPT_REVOKE_BEST_EFFORT
CURLSSLOPT_REVOKE_BEST_EFFORT;
#else
CURLSSLOPT_NO_REVOKE;
warning(_("%s=%s unsupported by current cURL"),
var, value);
#endif
} else
http_schannel_check_revoke_mode =
(git_config_bool(var, value) ?
0 : CURLSSLOPT_NO_REVOKE);
return 0;
}

@@ -1045,8 +1063,8 @@ static CURL *get_curl_handle(void)
#endif

if (http_ssl_backend && !strcmp("schannel", http_ssl_backend) &&
!http_schannel_check_revoke) {
curl_easy_setopt(result, CURLOPT_SSL_OPTIONS, CURLSSLOPT_NO_REVOKE);
http_schannel_check_revoke_mode) {
curl_easy_setopt(result, CURLOPT_SSL_OPTIONS, http_schannel_check_revoke_mode);
}

if (http_proactive_auth != PROACTIVE_AUTH_NONE)