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.44.0-rc0 #4801

Merged
merged 961 commits into from
Feb 10, 2024
Merged
Changes from 2 commits
Commits
Show all changes
961 commits
Select commit Hold shift + click to select a range
adfa9af
hash-object: add a >4GB/LLP64 test case using filtered input
PhilipOakley Dec 7, 2021
4d5f6bc
compat/mingw.c: do not warn when failing to get owner
derrickstolee Apr 13, 2022
09b582e
mingw: $env:TERM="xterm-256color" for newer OSes
rkitover Apr 12, 2022
ee67164
winansi: check result and Buffer before using Name
1480c1 May 28, 2022
4194acd
Add config option `windows.appendAtomically`
sunzhuoshi Jan 15, 2022
4dd1012
vcxproj: allow building with `NO_PERL` again
dscho Mar 29, 2022
75b29d5
vcxproj: require C11
dscho Jun 28, 2022
5f42f98
vcxproj: ignore the `-pedantic` option
dscho Jun 28, 2022
b1dce61
vcxproj: include reftable when committing `.vcxproj` files
dscho Jun 28, 2022
1398194
vcxproj: handle libreftable_test, too
dscho Jun 28, 2022
6af63c9
mingw: change core.fsyncObjectFiles = 1 by default
dscho Sep 4, 2017
bdda4a9
vcxproj: avoid escaping double quotes in the defines
dscho Jun 28, 2022
9356e8a
ci: adjust Azure Pipeline for `runs_on_pool`
dscho Jul 9, 2022
e5e3418
ci: stop linking the `prove` cache
dscho Jul 9, 2022
bf1de07
ci: reinstate Azure Pipelines support
dscho Feb 11, 2021
9f2a988
azure-pipeline: drop the `GETTEXT_POISON` job
dscho Mar 29, 2022
90d5aa1
azure-pipeline: stop hard-coding `apt-get` calls
dscho Mar 29, 2022
2efc682
azure-pipeline: drop the code to write to/read from a file share
dscho Jul 9, 2022
f02cef7
azure-pipeline: use partial clone/parallel checkout to initialize min…
dscho Jul 9, 2022
f89636b
azure-pipeline: downcase the job name of the `Linux32` job
dscho Jul 9, 2022
e7164df
azure-pipeline: run static-analysis on jammy
ttaylorr Feb 8, 2021
4d7fc2f
MinGW: link as terminal server aware
rimrul Jul 10, 2022
0d4081b
Fix Windows version resources
Mortein Nov 2, 2022
fc4ba85
bswap.h: add support for built-in bswap functions
dennisameling Oct 4, 2022
8c72ab3
http: optionally load libcurl lazily
dscho May 6, 2023
359804e
http: support lazy-loading libcurl also on Windows
dscho May 7, 2023
df832a2
http: when loading libcurl lazily, allow for multiple SSL backends
dscho May 7, 2023
d48d4a1
status: fix for old-style submodules with commondir
sceptical-coder Oct 28, 2022
575360d
windows: skip linking `git-<command>` for built-ins
dscho Jan 27, 2023
758eb76
windows: fix Repository>Explore Working Copy
dscho Mar 21, 2023
5f391ca
mingw: do load libcurl dynamically by default
dscho May 7, 2023
f8c5c67
mingw: suggest `windows.appendAtomically` in more cases
dsl101 Jul 28, 2023
ad1a318
win32: use native ANSI sequence processing, if possible
dscho Nov 22, 2023
c6e18ad
git.rc: include winuser.h
rimrul Dec 2, 2023
dc95f4d
dependabot: help keeping GitHub Actions versions up to date
dscho Feb 6, 2024
9471bc6
build(deps): bump actions/cache from 3 to 4
dependabot[bot] Feb 7, 2024
742b547
build(deps): bump mshick/add-pr-comment from 1 to 2
dependabot[bot] Feb 7, 2024
b3ee228
build(deps): bump actions/setup-go from 2 to 5
dependabot[bot] Feb 7, 2024
ac09146
build(deps): bump actions/download-artifact from 3 to 4
dependabot[bot] Feb 7, 2024
8d2729e
ci: bump actions/upload-artifact to v4
rimrul Feb 8, 2024
dd75561
build(deps): bump actions/checkout from 3 to 4
dependabot[bot] Feb 7, 2024
af7ae49
config.mak.uname: add support for clangarm64
dennisameling Oct 4, 2022
2849c15
ci: create clangarm64-build.yml
dennisameling Oct 4, 2022
a8f4b84
Add a GitHub workflow to verify that Git/Scalar work in Nano Server
dscho Nov 2, 2022
cd0efa4
Merge 'remote-hg-prerequisites' into HEAD
dscho Jun 8, 2018
f66aee1
Merge branch 'drive-prefix'
dscho Jun 8, 2018
41072ed
Merge branch 'dont-clean-junctions'
dscho Jul 30, 2019
d16ba12
Merge branch 'msys2-python'
dscho May 31, 2019
422ead8
Merge branch 'mimalloc-v2.0.9'
dscho Sep 8, 2022
bb60326
Merge pull request #2375 from assarbad/reintroduce-sideband-config
dscho Oct 30, 2019
c4977fd
Merge pull request #2405 from dscho/mingw-setsockopt
dscho Nov 25, 2019
c19c8a4
Merge pull request #2449 from dscho/mingw-getcwd-and-symlinks
dscho Jan 3, 2020
400d815
Merge pull request #2488 from bmueller84/master
dscho Jan 22, 2020
654bfde
Merge pull request #2501 from jeffhostetler/clink-debug-curl
dscho Jan 30, 2020
2122ddb
Merge pull request #2504 from dscho/access-repo-via-junction
dscho Feb 1, 2020
ec3f96c
Merge pull request #2506 from dscho/issue-2283
dscho Feb 11, 2020
b96fc89
Merge pull request #2535 from dscho/schannel-revoke-best-effort
dscho Mar 4, 2020
839ac87
Merge pull request #2618 from dscho/avoid-d/f-conflict-in-vs/master
dscho May 9, 2020
91e4ebf
Merge 'add-p-many-files'
dscho Jun 8, 2018
9a286c3
Merge pull request #2730 from dscho/crlf-aware-git-add-i
dscho Jul 2, 2020
7b08ece
Merge pull request #2714 from lbonanomi/crlf-scissors
dscho Jul 3, 2020
10f2d6a
Merge pull request #2655 from jglathe/jg/t0014_trace_extra_info
dscho Oct 9, 2020
bb9dbed
Merge 'git-gui/js/intent-to-add'
dscho Oct 18, 2020
206a685
Merge pull request #2974 from derrickstolee/maintenance-and-headless
dscho Jan 11, 2021
e8590f1
cmake: install headless-git. (#4338)
dscho Mar 13, 2023
3286494
Merge pull request #2351 from PhilipOakley/vcpkg-tip
dscho Oct 7, 2019
8e102ca
Merge pull request #2915 from dennisameling/windows-arm64-support
dscho Dec 9, 2020
f53a08c
Merge pull request #3327 from dennisameling/fix-host-cpu
dscho Jul 19, 2021
f65ed36
Merge pull request #3150 from dscho/ci-cache-vcpkg-artifacts-g4w
dscho Mar 28, 2021
1d4f34b
Merge pull request #3165 from dscho/increase-allowed-length-of-interp…
dscho Apr 3, 2021
2744b61
Merge pull request #3220 from dscho/there-is-no-vs/master-anymore
dscho May 17, 2021
25ab026
Merge pull request #3293 from pascalmuller/http-support-automatically…
dscho Jun 24, 2021
1041d04
Merge pull request #3349 from vdye/feature/ci-subtree-tests
dscho Aug 10, 2021
dc18b2f
Merge pull request #3306 from PhilipOakley/vs-sln
dscho Oct 12, 2021
686f11f
Merge pull request #3417 from dscho/initialize-core.symlinks-earlier
dscho Oct 13, 2021
8bc724b
Merge branch 'mark-v4-fsmonitor-experimental' into try-v4-fsmonitor
jeffhostetler Sep 29, 2021
8a072a5
Merge pull request #3533 from PhilipOakley/hashliteral_t
dscho Dec 15, 2021
955f107
Merge pull request #3791: Various fixes around `safe.directory`
derrickstolee Apr 13, 2022
c42c786
Merge pull request #3751 from rkitover/native-term
dscho Apr 21, 2022
58801c4
Merge pull request #3875 from 1480c1/wine/detect_msys_tty
dscho May 30, 2022
30d48e6
Merge branch 'optionally-dont-append-atomically-on-windows'
dscho Jun 23, 2022
b819d88
Merge branch 'fsync-object-files-always'
dscho Oct 11, 2018
94dcba5
Merge branch 'ci-fixes'
dscho Feb 11, 2021
7ee2721
Merge pull request #3942 from rimrul/mingw-tsaware
dscho Jul 27, 2022
4863fb9
Fix Windows version resources (#4092)
dscho Nov 3, 2022
6577fd8
Merge branch 'builtin-swap-functions'
dscho Nov 23, 2022
20989cd
Add support for CLANGARM64 target (#3916)
dscho Oct 28, 2022
07f3e28
Fix global repository field not being cleared (#4083)
dscho Dec 20, 2022
1c604c2
Skip linking the "dashed" `git-<command>`s for built-ins (#4252)
dscho Jan 31, 2023
5cc1266
Git GUI: fix Repository>Explore Working Copy (#4357)
dscho Mar 21, 2023
84cab3f
Lazy load libcurl, allowing for an SSL/TLS backend-specific libcurl (…
dscho May 15, 2023
277586b
Merge branch 'nano-server'
dscho Aug 7, 2023
84bf164
Additional error checks for issuing the windows.appendAtomically warn…
dscho Aug 7, 2023
dd19347
win32: use native ANSI sequence processing, if possible (#4700)
dscho Dec 2, 2023
77445eb
ARM64: Embed manifest properly (#4718)
dscho Dec 7, 2023
e4a1041
dependabot: help keeping GitHub Actions versions up to date (#4792)
rimrul Feb 7, 2024
4619239
Win32: make FILETIME conversion functions public
kblees Jul 6, 2013
b8f812c
Win32: dirent.c: Move opendir down
kblees Sep 8, 2013
73027ed
mingw: make the dirent implementation pluggable
kblees Sep 8, 2013
a11a8ac
Merge branch 'ready-for-upstream'
dscho Oct 11, 2018
32d5356
Win32: make the lstat implementation pluggable
kblees Sep 8, 2013
abb83bc
mingw: add infrastructure for read-only file system level caches
kblees Sep 8, 2013
8a0b4db
fscache: add key for GIT_TRACE_FSCACHE
jeffhostetler Jan 24, 2017
bc9194e
mingw: add a cache below mingw's lstat and dirent implementations
kblees Oct 1, 2013
d6d8974
fscache: remember not-found directories
jeffhostetler Dec 13, 2016
2b2895f
fscache: load directories only once
kblees Jun 24, 2014
8dbd532
fscache: add a test for the dir-not-found optimization
dscho Jan 25, 2017
ae4b42e
dir.c: make add_excludes aware of fscache during status
jeffhostetler Nov 1, 2017
6a2343d
fscache: make fscache_enabled() public
jeffhostetler Dec 20, 2017
8650575
add: use preload-index and fscache for performance
jeffhostetler Nov 22, 2016
c1585e2
dir.c: regression fix for add_excludes with fscache
jeffhostetler Dec 20, 2017
717aa9a
fetch-pack.c: enable fscache for stats under .git/objects
Nov 22, 2017
058b1ac
checkout.c: enable fscache for checkout again
Jan 30, 2018
5242cc1
mem_pool: add GIT_TRACE_MEMPOOL support
benpeart Oct 4, 2018
217332c
fscache: fscache takes an initial size
benpeart Nov 2, 2018
556779e
Enable the filesystem cache (fscache) in refresh_index().
benpeart Sep 7, 2018
8985e6d
fscache: use FindFirstFileExW to avoid retrieving the short name
benpeart Oct 23, 2018
c0e9478
status: disable and free fscache at the end of the status command
benpeart Nov 1, 2018
0f9047d
fscache: add GIT_TEST_FSCACHE support
benpeart Oct 4, 2018
601a472
fscache: add fscache hit statistics
benpeart Sep 25, 2018
a1ff8e8
fscache: remember the reparse tag for each entry
dscho Dec 11, 2018
87a49f2
fscache: update fscache to be thread specific instead of global
benpeart Oct 4, 2018
7f6d364
fscache: implement an FSCache-aware is_mount_point()
dscho Dec 11, 2018
d2d53d5
fscache: teach fscache to use mempool
benpeart Nov 2, 2018
80126ad
fscache: make fscache_enable() thread safe
benpeart Nov 16, 2018
ae387da
fscache: teach fscache to use NtQueryDirectoryFile
benpeart Nov 15, 2018
4d2d6ae
unpack-trees: enable fscache for sparse-checkout
derrickstolee Jun 12, 2019
b15d3d9
git-gui--askyesno: fix funny text wrapping
dscho Sep 20, 2017
4b1b1b2
git-gui: provide question helper for retry fallback on Windows
hvoigt Feb 21, 2010
aedb111
git-gui--askyesno: allow overriding the window title
dscho Sep 20, 2017
78e1b53
git gui: set GIT_ASKPASS=git-gui--askpass if not set yet
dscho Jul 23, 2010
35800e6
git-gui--askyesno (mingw): use Git for Windows' icon, if available
dscho Sep 20, 2017
c377509
clean: make use of FSCache
dscho Dec 11, 2018
b78ed88
gitk: Unicode file name support
kblees Feb 4, 2012
0fac83d
gitk: Use an external icon file on Windows
sschuberth Jul 22, 2012
c93db98
gitk: fix arrow keys in input fields with Tcl/Tk >= 8.6
dscho Feb 16, 2016
86e576f
Merge 'git-gui' into HEAD
dscho Jun 7, 2018
f74888f
gitk: make the "list references" default window width wider
sidecut Jan 21, 2016
e84a95d
Merge branch 'fscache'
dscho Nov 15, 2018
813e9be
Merge branch 'git-gui-askyesno'
dscho Jun 8, 2018
8d90c2e
Merge pull request #994 from jeffhostetler/jeffhostetler/fscache_nfd
dscho Jun 8, 2018
a4ff191
Merge 'gitk' into HEAD
dscho Jun 7, 2018
365e1ba
Merge pull request #971 from jeffhostetler/jeffhostetler/add_preload_…
dscho Jun 8, 2018
8d6cf05
Merge pull request #1344 from jeffhostetler/perf_add_excludes_with_fs…
dscho Jun 8, 2018
d852cb0
Merge pull request #1426 from atetubou/fetch_pack
dscho Jun 8, 2018
d467a45
Merge pull request #1468 from atetubou/fscache_checkout_flush
dscho Oct 12, 2018
9e3ac6e
Merge pull request #1827 from benpeart/fscache_refresh_index
dscho Sep 27, 2018
440a795
Merge pull request #1908 from benpeart/FindFirstFileEx-gfw
dscho Nov 5, 2018
b05b329
Merge pull request #1909 from benpeart/free-fscache-after-status-gfw
dscho Nov 5, 2018
36d913f
Merge pull request #1911 from benpeart/git_test_fscache-gfw
dscho Nov 5, 2018
244b331
Merge pull request #1910 from benpeart/fscache_statistics-gfw
dscho Nov 16, 2018
f0b5880
Merge remote-tracking branch 'benpeart/fscache-per-thread-gfw'
dscho Nov 16, 2018
3e1e385
Merge pull request #1934 from benpeart/fscache-thread-safe-enable-gfw
dscho Nov 26, 2018
e0b5271
Merge pull request #1937 from benpeart/fscache-NtQueryDirectoryFile-gfw
dscho Nov 27, 2018
e06b84c
Merge branch 'fscache-and-sparse-checkout'
derrickstolee Jun 18, 2019
e9683b8
pack-objects (mingw): demonstrate a segmentation fault with large deltas
vangdfang Jan 9, 2014
2f7dfe9
Merge branch 'dont-clean-junctions-fscache'
dscho Jul 23, 2019
c4f7e1e
mingw: support long paths
kblees Jul 28, 2015
32624bb
Win32: fix 'lstat("dir/")' with long paths
kblees Jul 4, 2014
1b6d157
win32(long path support): leave drive-less absolute paths intact
dscho Sep 6, 2023
c020f14
compat/fsmonitor/fsm-*-win32: support long paths
jeffhostetler Mar 25, 2022
9c161b1
clean: suggest using `core.longPaths` if paths are too long to remove
mathstuf Apr 22, 2022
7b3ecaa
mingw: Support `git_terminal_prompt` with more terminals
kblees Mar 19, 2015
34a933a
strbuf_readlink: don't call readlink twice if hint is the exact link …
kblees May 11, 2015
42cf85d
strbuf_readlink: support link targets that exceed PATH_MAX
kblees May 11, 2015
fa1bf38
lockfile.c: use is_dir_sep() instead of hardcoded '/' checks
kblees May 11, 2015
6f1a739
Win32: don't call GetFileAttributes twice in mingw_lstat()
kblees May 12, 2015
dada6d0
Win32: implement stat() with symlink support
kblees May 15, 2015
d4a2b56
compat/terminal.c: only use the Windows console if bash 'read -r' fails
kblees May 9, 2015
2a2665c
Win32: remove separate do_lstat() function
kblees May 11, 2015
83d310a
mingw (git_terminal_prompt): do fall back to CONIN$/CONOUT$ method
dscho Feb 23, 2018
996eb09
Win32: let mingw_lstat() error early upon problems with reparse points
kblees May 23, 2015
fede48b
Unbreak interactive GPG prompt upon signing
dscho Sep 6, 2016
185b204
mingw: teach fscache and dirent about symlinks
kblees Jan 10, 2017
113ca09
Win32: lstat(): return adequate stat.st_size for symlinks
kblees May 15, 2015
534a752
Win32: factor out retry logic
kblees May 19, 2015
179020e
Win32: change default of 'core.symlinks' to false
kblees May 23, 2015
1d95e40
Win32: add symlink-specific error codes
kblees May 15, 2015
3148b50
Win32: mingw_unlink: support symlinks to directories
kblees May 23, 2015
4491333
Win32: mingw_rename: support renaming symlinks
kblees May 19, 2015
2a19c8e
Win32: mingw_chdir: change to symlink-resolved directory
kblees May 23, 2015
977b781
Win32: implement readlink()
kblees May 23, 2015
fccf215
mingw: lstat: compute correct size for symlinks
billziss-gh May 28, 2020
18ca6d4
Win32: implement basic symlink() functionality (file symlinks only)
kblees May 23, 2015
aceda06
Win32: symlink: add support for symlinks to directories
kblees May 23, 2015
a6b014c
mingw: try to create symlinks without elevated permissions
dscho May 30, 2017
1dc87ff
mingw: emulate stat() a little more faithfully
dscho Mar 2, 2020
b24bb5c
mingw: special-case index entries for symlinks with buggy size
dscho Jun 4, 2020
8f4dae0
mingw: introduce code to detect whether we're inside a Windows container
ZCube Apr 23, 2018
7c0eb61
Win32: symlink: move phantom symlink creation to a separate function
piscisaureus Oct 26, 2018
b13757e
mingw: when running in a Windows container, try to rename() harder
ZCube Apr 23, 2018
c6fd0ea
Introduce helper to create symlinks that knows about index_state
dscho Feb 11, 2019
2852c4e
mingw: move the file_attr_to_st_mode() function definition
ZCube Apr 23, 2018
3b56754
mingw: allow to specify the symlink type in .gitattributes
piscisaureus Oct 26, 2018
3d21db0
mingw: Windows Docker volumes are *not* symbolic links
dscho Apr 23, 2018
8732850
mingw: work around rename() failing on a read-only file
dsl101 Jul 28, 2023
3f4790b
mingw: explicitly specify with which cmd to prefix the cmdline
dscho Jul 20, 2017
ab039e9
mingw: when path_lookup() failed, try BusyBox
dscho Jul 20, 2017
35e7204
test-lib: avoid unnecessary Perl invocation
dscho Aug 5, 2017
9dd0520
test-tool: learn to act as a drop-in replacement for `iconv`
dscho Jul 20, 2017
ee66969
tests(mingw): if `iconv` is unavailable, use `test-helper --iconv`
dscho Jul 20, 2017
6cfa349
gitattributes: mark .png files as binary
dscho Oct 11, 2018
f941f55
tests: move test PNGs into t/lib-diff/
dscho Aug 5, 2017
6bf2469
tests: only override sort & find if there are usable ones in /usr/bin/
dscho Jul 17, 2017
4a500ff
Win32: symlink: add test for `symlink` attribute
piscisaureus Oct 26, 2018
4a15dc6
tests: use the correct path separator with BusyBox
dscho Nov 19, 2018
9b21147
mingw: only use Bash-ism `builtin pwd -W` when available
dscho Jun 29, 2017
1432f3b
tests (mingw): remove Bash-specific pwd option
dscho Jun 30, 2017
ee9645f
test-lib: add BUSYBOX prerequisite
dscho Jul 19, 2017
32f116d
t5003: use binary file from t/lib-diff/
dscho Aug 5, 2017
27e1ff9
t5532: workaround for BusyBox on Windows
dscho Jul 21, 2017
388ddea
t5605: special-case hardlink test for BusyBox-w32
dscho Jul 21, 2017
4135380
t5813: allow for $PWD to be a Windows path
dscho Jul 5, 2017
4e1c3ca
t9200: skip tests when $PWD contains a colon
dscho Jul 7, 2017
8a79bc2
mingw: kill child processes in a gentler way
dscho May 17, 2017
58dfc2b
mingw: add a Makefile target to copy test artifacts
dscho Jul 19, 2017
b29a9ac
mingw: optionally enable wsl compability file mode bits
swigger Jun 7, 2023
57cc6f2
mingw: really handle SIGINT
dscho Apr 22, 2018
f95abb6
mingw: do not call xutftowcs_path in mingw_mktemp
neerajsi-msft Oct 27, 2021
1606d61
Partially un-revert "editor: save and reset terminal after calling ED…
dscho Nov 25, 2021
052add7
reset: reinstate support for the deprecated --stdin option
dscho Dec 10, 2019
6fc41b6
fsmonitor: reintroduce core.useBuiltinFSMonitor
vdye Apr 4, 2022
7db097f
Describe Git for Windows' architecture [no ci]
dscho Feb 13, 2023
7a503f1
Add a GitHub workflow to monitor component updates
dscho Sep 29, 2020
666c595
Modify the Code of Conduct for Git for Windows
dscho Oct 11, 2019
8d8b80e
CONTRIBUTING.md: add guide for first-time contributors
derrickstolee Mar 1, 2018
80818bc
README.md: Add a Windows-specific preamble
dscho Jan 10, 2014
2be1a7b
Add an issue template
shiftkey Feb 18, 2016
08ec415
Modify the GitHub Pull Request template (to reflect Git for Windows)
Dec 22, 2017
f9944c3
.github: Add configuration for the Sentiment Bot
dscho Feb 20, 2018
f25e24d
Merge branch 'gitk-and-git-gui-patches'
dscho Oct 11, 2018
4d421e5
Document how $HOME is set on Windows
alejandro5042 Mar 9, 2018
6eb260c
Merge branch 'long-paths'
dscho Nov 15, 2018
a5db93a
SECURITY.md: document Git for Windows' policies
dscho Aug 23, 2019
598acfb
Merge branch 'fix-v4-fsmonitor-long-paths' into try-v4-fsmonitor
jeffhostetler Sep 29, 2021
3e8a0cc
Merge pull request #3817 from mathstuf/name-too-long-advice
dscho Apr 22, 2022
9ec64ac
Merge branch 'msys2'
dscho Nov 15, 2018
f497ce4
Merge branch 'kblees/kb/symlinks'
dscho Nov 15, 2018
ccde843
Merge 'docker-volumes-are-no-symlinks'
dscho Oct 12, 2018
3ba601f
mingw: try resetting the read-only bit if rename fails (#4527)
dscho Aug 7, 2023
91992b4
Merge pull request #1897 from piscisaureus/symlink-attr
dscho Oct 31, 2018
a2ca067
Merge branch 'busybox-w32'
dscho Feb 7, 2019
84101a8
Merge branch 'wsl-file-mode-bits'
dscho Aug 7, 2023
366e304
Merge pull request #1170 from dscho/mingw-kill-process
dscho Oct 11, 2018
802d57b
Merge pull request #3492 from dscho/ns/batched-fsync
vdye Oct 28, 2021
2de4c5a
Merge branch 'un-revert-editor-save-and-reset'
dscho Jan 15, 2022
88dc3b8
Merge branch 'phase-out-reset-stdin'
dscho Jun 8, 2018
c21757d
Merge branch 'deprecate-core.useBuiltinFSMonitor'
dscho Jan 24, 2023
1e1fae8
Merge pull request #2837 from dscho/monitor-component-updates
dscho Oct 7, 2020
5cff971
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
6 changes: 3 additions & 3 deletions compat/fsmonitor/fsm-health-win32.c
Original file line number Diff line number Diff line change
@@ -34,7 +34,7 @@ struct fsm_health_data

struct wt_moved
{
wchar_t wpath[MAX_PATH + 1];
wchar_t wpath[MAX_LONG_PATH + 1];
BY_HANDLE_FILE_INFORMATION bhfi;
} wt_moved;
};
@@ -143,8 +143,8 @@ static int has_worktree_moved(struct fsmonitor_daemon_state *state,
return 0;

case CTX_INIT:
if (xutftowcs_path(data->wt_moved.wpath,
state->path_worktree_watch.buf) < 0) {
if (xutftowcs_long_path(data->wt_moved.wpath,
state->path_worktree_watch.buf) < 0) {
error(_("could not convert to wide characters: '%s'"),
state->path_worktree_watch.buf);
return -1;
18 changes: 9 additions & 9 deletions compat/fsmonitor/fsm-listen-win32.c
Original file line number Diff line number Diff line change
@@ -28,7 +28,7 @@ struct one_watch
DWORD count;

struct strbuf path;
wchar_t wpath_longname[MAX_PATH + 1];
wchar_t wpath_longname[MAX_LONG_PATH + 1];
DWORD wpath_longname_len;

HANDLE hDir;
@@ -131,8 +131,8 @@ static int normalize_path_in_utf8(wchar_t *wpath, DWORD wpath_len,
*/
static void check_for_shortnames(struct one_watch *watch)
{
wchar_t buf_in[MAX_PATH + 1];
wchar_t buf_out[MAX_PATH + 1];
wchar_t buf_in[MAX_LONG_PATH + 1];
wchar_t buf_out[MAX_LONG_PATH + 1];
wchar_t *last;
wchar_t *p;

@@ -197,8 +197,8 @@ static enum get_relative_result get_relative_longname(
const wchar_t *wpath, DWORD wpath_len,
wchar_t *wpath_longname, size_t bufsize_wpath_longname)
{
wchar_t buf_in[2 * MAX_PATH + 1];
wchar_t buf_out[MAX_PATH + 1];
wchar_t buf_in[2 * MAX_LONG_PATH + 1];
wchar_t buf_out[MAX_LONG_PATH + 1];
DWORD root_len;
DWORD out_len;

@@ -298,10 +298,10 @@ static struct one_watch *create_watch(const char *path)
FILE_SHARE_WRITE | FILE_SHARE_READ | FILE_SHARE_DELETE;
HANDLE hDir;
DWORD len_longname;
wchar_t wpath[MAX_PATH + 1];
wchar_t wpath_longname[MAX_PATH + 1];
wchar_t wpath[MAX_LONG_PATH + 1];
wchar_t wpath_longname[MAX_LONG_PATH + 1];

if (xutftowcs_path(wpath, path) < 0) {
if (xutftowcs_long_path(wpath, path) < 0) {
error(_("could not convert to wide characters: '%s'"), path);
return NULL;
}
@@ -545,7 +545,7 @@ static int process_worktree_events(struct fsmonitor_daemon_state *state)
struct string_list cookie_list = STRING_LIST_INIT_DUP;
struct fsmonitor_batch *batch = NULL;
const char *p = watch->buffer;
wchar_t wpath_longname[MAX_PATH + 1];
wchar_t wpath_longname[MAX_LONG_PATH + 1];

/*
* If the kernel gets more events than will fit in the kernel
8 changes: 4 additions & 4 deletions compat/fsmonitor/fsm-path-utils-win32.c
Original file line number Diff line number Diff line change
@@ -69,16 +69,16 @@ static int check_remote_protocol(wchar_t *wpath)
*/
int fsmonitor__get_fs_info(const char *path, struct fs_info *fs_info)
{
wchar_t wpath[MAX_PATH];
wchar_t wfullpath[MAX_PATH];
wchar_t wpath[MAX_LONG_PATH];
wchar_t wfullpath[MAX_LONG_PATH];
size_t wlen;
UINT driveType;

/*
* Do everything in wide chars because the drive letter might be
* a multi-byte sequence. See win32_has_dos_drive_prefix().
*/
if (xutftowcs_path(wpath, path) < 0) {
if (xutftowcs_long_path(wpath, path) < 0) {
return -1;
}

@@ -97,7 +97,7 @@ int fsmonitor__get_fs_info(const char *path, struct fs_info *fs_info)
* slashes to backslashes. This is essential to get GetDriveTypeW()
* correctly handle some UNC "\\server\share\..." paths.
*/
if (!GetFullPathNameW(wpath, MAX_PATH, wfullpath, NULL)) {
if (!GetFullPathNameW(wpath, MAX_LONG_PATH, wfullpath, NULL)) {
return -1;
}