Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
287 commits
Select commit Hold shift + click to select a range
952a940
setup: properly use "%(prefix)/" when in WSL
derrickstolee Apr 13, 2022
2b3252e
mingw: include the Python parts in the build
dscho Feb 16, 2015
38d6c07
mingw: use mimalloc
dscho Jun 24, 2019
b87e3c7
transport: optionally disable side-band-64k
t-b May 8, 2014
11c72be
mingw: fix fatal error working on mapped network drives on Windows
bmueller84 Jan 22, 2020
72cfdc9
clink.pl: fix MSVC compile script to handle libcurl-d.lib
jeffhostetler Jan 30, 2020
2e6e812
mingw: implement a platform-specific `strbuf_realpath()`
dscho Jan 31, 2020
752f94f
http: use new "best effort" strategy for Secure Channel revoke checking
dscho Mar 4, 2020
844555b
t5505/t5516: fix white-space around redirectors
dscho May 9, 2020
d5caca7
t3701: verify that we can add *lots* of files interactively
dscho Sep 12, 2015
19642bc
commit: accept "scissors" with CR/LF line endings
lbonanomi Jun 24, 2020
d0060ab
t0014: fix indentation
jglathe Jun 2, 2020
8765400
git-gui: accommodate for intent-to-add files
dscho Aug 12, 2020
219e20f
vcpkg_install: add comment regarding slow network connections
PhilipOakley Oct 6, 2019
6cc7a87
Add schannel to curl installation
dennisameling Dec 6, 2020
c5c7d7f
cmake(): allow setting HOST_CPU for cross-compilation
dennisameling Jul 19, 2021
b31fe9a
mingw: allow for longer paths in `parse_interpreter()`
dscho Apr 2, 2021
011b4ff
compat/vcbuild: document preferred way to build in Visual Studio
dscho May 17, 2021
f555811
http: optionally send SSL client certificate
pascalmuller Jun 23, 2021
8e8f1e1
ci: run `contrib/subtree` tests in CI builds
vdye Aug 5, 2021
2e444ed
CMake: show Win32 and Generator_platform build-option values
PhilipOakley May 10, 2021
cf3461d
hash-object: add a >4GB/LLP64 test case using filtered input
PhilipOakley Dec 7, 2021
b1c7966
compat/mingw.c: do not warn when failing to get owner
derrickstolee Apr 13, 2022
365f848
mingw: $env:TERM="xterm-256color" for newer OSes
rkitover Apr 12, 2022
7f548b3
winansi: check result and Buffer before using Name
1480c1 May 28, 2022
1e8cc83
Add config option `windows.appendAtomically`
sunzhuoshi Jan 15, 2022
af3105c
survey: stub in new experimental 'git-survey' command
Apr 29, 2024
8b07c27
mingw: stop hard-coding `CC = gcc`
dscho Nov 23, 2025
ce2044e
survey: add command line opts to select references
Apr 29, 2024
d805be8
mingw: drop the -D_USE_32BIT_TIME_T option
dscho Nov 21, 2025
28e3247
Merge branch 'dscho-avoid-d-f-conflict-in-vs-master'
dscho Apr 13, 2021
add9439
survey: start pretty printing data in table form
derrickstolee Sep 1, 2024
8390539
mingw: only use -Wl,--large-address-aware for 32-bit builds
dscho Nov 21, 2025
a5f2178
clink.pl: fix libexpatd.lib link error when using MSVC
jeffhostetler Mar 30, 2021
d44b4da
survey: add object count summary
derrickstolee Sep 2, 2024
a7b6aba
mingw: avoid over-specifying `--pic-executable`
dscho Nov 21, 2025
e70195b
Makefile: clean up .ilk files when MSVC=1
jeffhostetler Apr 5, 2021
0b008a7
survey: summarize total sizes by object type
derrickstolee Sep 2, 2024
d4b17e1
mingw: set the prefix and HOST_CPU as per MSYS2's settings
dscho Nov 21, 2025
eee6034
vcbuild: add support for compiling Windows resource files
jeffhostetler Apr 5, 2021
1cd1e45
survey: show progress during object walk
derrickstolee Sep 2, 2024
41bdd18
mingw: only enable the MSYS2-specific stuff when compiling in MSYS2
dscho Nov 21, 2025
6bc527d
config.mak.uname: add git.rc to MSVC builds
jeffhostetler Apr 5, 2021
5450ec3
http: optionally load libcurl lazily
dscho May 6, 2023
c6adaa9
survey: add ability to track prioritized lists
derrickstolee Sep 2, 2024
1d4b9e2
mingw: rely on MSYS2's metadata instead of hard-coding it
dscho Nov 21, 2025
840faf5
mingw: ensure valid CTYPE
dscho Feb 21, 2017
34818ac
clink.pl: ignore no-stack-protector arg on MSVC=1 builds
jeffhostetler Apr 5, 2021
71467da
http: support lazy-loading libcurl also on Windows
dscho May 7, 2023
fe5b7b0
survey: add report of "largest" paths
derrickstolee Sep 2, 2024
8efab73
mingw: always define `ETC_*` for MSYS2 environments
dscho Nov 21, 2025
20cc316
mingw: allow `git.exe` to be used instead of the "Git wrapper"
dscho Jan 31, 2020
b43bf95
clink.pl: move default linker options for MSVC=1 builds
jeffhostetler Apr 5, 2021
2286f21
http: when loading libcurl lazily, allow for multiple SSL backends
dscho May 7, 2023
54fce0c
survey: add --top=<N> option and config
derrickstolee Sep 23, 2024
195d6dd
mingw: change core.fsyncObjectFiles = 1 by default
dscho Sep 4, 2017
4fa5c27
MinGW: link as terminal server aware
rimrul Jul 10, 2022
e8186d6
Fix Windows version resources
Mortein Nov 2, 2022
4414acd
status: fix for old-style submodules with commondir
sceptical-coder Oct 28, 2022
a4b7218
windows: skip linking `git-<command>` for built-ins
dscho Jan 27, 2023
2e844e8
max_tree_depth: lower it for clang builds in general on Windows
dscho Nov 21, 2025
08aae07
mingw: ignore HOMEDRIVE/HOMEPATH if it points to Windows' system dire…
dscho Aug 25, 2020
07d479c
cmake: install headless-git.
Berrysoft Mar 11, 2023
b13cebf
git.rc: include winuser.h
rimrul Dec 2, 2023
92b9913
mingw: do load libcurl dynamically by default
dscho May 7, 2023
0d96d0b
Add a GitHub workflow to verify that Git/Scalar work in Nano Server
dscho Nov 2, 2022
096e97a
mingw: suggest `windows.appendAtomically` in more cases
dsl101 Jul 28, 2023
3c53082
win32: use native ANSI sequence processing, if possible
dscho Nov 22, 2023
07a5242
common-main.c: fflush stdout buffer upon exit
chengzhuo5 Apr 8, 2024
42ccf79
t5601/t7406(mingw): do run tests with symlink support
dscho Apr 9, 2024
640acfd
win32: ensure that `localtime_r()` is declared even in i686 builds
dscho May 21, 2024
c9846a1
Fallback to AppData if XDG_CONFIG_HOME is unset
ariellourenco Jul 2, 2024
60feda8
run-command: be helpful with Git LFS fails on Windows 7
dscho Jul 4, 2024
05e9d2f
survey: clearly note the experimental nature in the output
dscho Jul 1, 2024
6e1c0d7
Merge 'remote-hg-prerequisites' into HEAD
dscho Jun 8, 2018
8556c7c
Merge branch 'drive-prefix'
dscho Jun 8, 2018
b2a4300
Merge branch 'dont-clean-junctions'
dscho Jul 30, 2019
6680826
Merge branch 'msys2-python'
dscho May 31, 2019
ab4f61d
Update mimalloc to v2.2.7 (#6048)
dscho Jan 19, 2026
a130fc2
Merge pull request #2375 from assarbad/reintroduce-sideband-config
dscho Oct 30, 2019
9be1790
Merge pull request #2488 from bmueller84/master
dscho Jan 22, 2020
956cb6d
Merge pull request #2501 from jeffhostetler/clink-debug-curl
dscho Jan 30, 2020
0260a46
Merge pull request #2504 from dscho/access-repo-via-junction
dscho Feb 1, 2020
a6ec2c1
Merge pull request #2535 from dscho/schannel-revoke-best-effort
dscho Mar 4, 2020
2f38070
Merge pull request #2618 from dscho/avoid-d/f-conflict-in-vs/master
dscho May 9, 2020
bb2e573
Merge 'add-p-many-files'
dscho Jun 8, 2018
0ae6c4e
Merge pull request #2714 from lbonanomi/crlf-scissors
dscho Jul 3, 2020
208b22c
Merge pull request #2655 from jglathe/jg/t0014_trace_extra_info
dscho Oct 9, 2020
11073a3
mingw: make sure `errno` is set correctly when socket operations fail
dscho Nov 14, 2019
400f3b9
Merge 'git-gui/js/intent-to-add'
dscho Oct 18, 2020
dee35c4
compat/mingw: handle WSA errors in strerror
rimrul Dec 22, 2024
624baa8
t5563: verify that NTLM authentication works
dscho Nov 26, 2025
c404271
Merge pull request #2351 from PhilipOakley/vcpkg-tip
dscho Oct 7, 2019
78769b4
compat/mingw: drop outdated comment
rimrul Dec 22, 2024
5b98300
http: disallow NTLM authentication by default
dscho Nov 26, 2025
38c1005
Merge pull request #2915 from dennisameling/windows-arm64-support
dscho Dec 9, 2020
8c5ec18
t0301: actually test credential-cache on Windows
rimrul Dec 29, 2024
421fc99
http: warn if might have failed because of NTLM
dscho Nov 26, 2025
85a55e6
Merge pull request #3327 from dennisameling/fix-host-cpu
dscho Jul 19, 2021
e6f1a1d
credential-cache: handle ECONNREFUSED gracefully
rimrul Dec 22, 2024
29c5f59
reftable: do make sure to use custom allocators
dscho Mar 6, 2025
d6a44ea
check-whitespace: avoid alerts about upstream commits
dscho Jun 3, 2025
77c0b81
t/t5571-prep-push-hook.sh: Add test with writing to stderr
t-b Jan 26, 2026
ec15fb1
credential: advertise NTLM suppression and allow helpers to re-enable
dscho Feb 9, 2026
947decc
dir: do not traverse mount points
maks244 Mar 30, 2026
7571bfe
win32: thread-utils: handle multi-socket systems
rimrul Feb 21, 2026
d38c57e
t5563: add tests for http.emptyAuth with Negotiate
mjcheetham Apr 13, 2026
44853db
Merge pull request #3165 from dscho/increase-allowed-length-of-interp…
dscho Apr 3, 2021
f7087b7
Merge pull request #3220 from dscho/there-is-no-vs/master-anymore
dscho May 17, 2021
7dd9582
Merge pull request #3293 from pascalmuller/http-support-automatically…
dscho Jun 24, 2021
4657ca9
Merge pull request #3349 from vdye/feature/ci-subtree-tests
dscho Aug 10, 2021
739b943
Merge pull request #3306 from PhilipOakley/vs-sln
dscho Oct 12, 2021
4f225e6
Merge pull request #3533 from PhilipOakley/hashliteral_t
dscho Dec 15, 2021
4e2f3c9
Merge pull request #3791: Various fixes around `safe.directory`
derrickstolee Apr 13, 2022
95aa6d7
Merge pull request #3751 from rkitover/native-term
dscho Apr 21, 2022
426b76a
Merge pull request #3875 from 1480c1/wine/detect_msys_tty
dscho May 30, 2022
5872087
Merge branch 'optionally-dont-append-atomically-on-windows'
dscho Jun 23, 2022
3c0c6ac
Merge branch 'fsync-object-files-always'
dscho Oct 11, 2018
03e92dd
Merge pull request #3942 from rimrul/mingw-tsaware
dscho Jul 27, 2022
f337e88
Fix Windows version resources (#4092)
dscho Nov 3, 2022
3fba85a
Fix global repository field not being cleared (#4083)
dscho Dec 20, 2022
a18143b
Skip linking the "dashed" `git-<command>`s for built-ins (#4252)
dscho Jan 31, 2023
210ca0c
Add full `mingw-w64-git` (i.e. regular MSYS2 ecosystem) support (#5971)
dscho Nov 25, 2025
c1b1168
Merge pull request #2506 from dscho/issue-2283
dscho Feb 11, 2020
e334b85
Merge pull request #2974 from derrickstolee/maintenance-and-headless
dscho Jan 11, 2021
6f7442a
ARM64: Embed manifest properly (#4718)
dscho Dec 7, 2023
93cc948
Lazy load libcurl, allowing for an SSL/TLS backend-specific libcurl (…
dscho May 15, 2023
9513a53
Merge branch 'nano-server'
dscho Aug 7, 2023
d4254c9
Additional error checks for issuing the windows.appendAtomically warn…
dscho Aug 7, 2023
68528a1
win32: use native ANSI sequence processing, if possible (#4700)
dscho Dec 2, 2023
d1e5f87
common-main.c: fflush stdout buffer when exit (#4901)
dscho Apr 12, 2024
fb851d4
Merge branch 'run-t5601-and-t7406-with-symlinks-on-windows-10'
dscho Jul 12, 2024
9332caa
Merge branch 'Fix-i686-build-with-GCC-v14'
dscho Jul 12, 2024
9f77b83
Merge branch 'Fallback-to-AppData-if-XDG-CONFIG-HOME-is-unset'
dscho Jul 12, 2024
dca5d8d
Merge branch 'run-command-be-helpful-when-Git-LFS-fails-on-Windows-7'
dscho Jul 12, 2024
002e3b6
Add experimental 'git survey' builtin (#5174)
dscho Sep 26, 2024
505c95d
Win32: make FILETIME conversion functions public
kblees Jul 6, 2013
e228ec1
Win32: dirent.c: Move opendir down
kblees Sep 8, 2013
a22b933
mingw: make the dirent implementation pluggable
kblees Sep 8, 2013
63877ff
credential-cache: handle ECONNREFUSED gracefully (#5329)
dscho Jan 1, 2025
2aa28f3
Win32: make the lstat implementation pluggable
kblees Sep 8, 2013
35e5844
Merge branch 'reftable-vs-custom-allocators'
dscho Jun 2, 2025
407bfd7
mingw: add infrastructure for read-only file system level caches
kblees Sep 8, 2013
9ea3604
Merge branch 'check-whitespace-only-downstream'
dscho Jun 3, 2025
ba668ad
mingw: add a cache below mingw's lstat and dirent implementations
kblees Oct 1, 2013
03bb591
t/t5571-prep-push-hook.sh: Add test with writing to stderr (#6063)
dscho Jan 27, 2026
c042992
fscache: load directories only once
kblees Jun 24, 2014
28186e0
Merge branch 'disallow-ntlm-auth-by-default'
dscho Feb 12, 2026
df82632
fscache: add key for GIT_TRACE_FSCACHE
jeffhostetler Jan 24, 2017
dd16019
Don't traverse mount points in `remove_dir_recurse()` (#6151)
dscho Mar 31, 2026
3a423e2
fscache: remember not-found directories
jeffhostetler Dec 13, 2016
492ab31
Detect number of cores better on multi-socket systems (#6108)
dscho Apr 6, 2026
83f3d23
fscache: add a test for the dir-not-found optimization
dscho Jan 25, 2017
66111e2
git-gui--askyesno: fix funny text wrapping
dscho Sep 20, 2017
c68e2d0
http: fix emptyAuth=auto for Negotiate/SPNEGO (#6170)
dscho Apr 14, 2026
589a062
add: use preload-index and fscache for performance
jeffhostetler Nov 22, 2016
02d33e4
git-gui--askyesno (mingw): use Git for Windows' icon, if available
dscho Sep 20, 2017
8986aff
ci(macos): skip the `git p4` tests
dscho Nov 13, 2025
0d14c8d
Merge branch 'ready-for-upstream'
dscho Oct 11, 2018
fb0c255
dir.c: make add_excludes aware of fscache during status
jeffhostetler Nov 1, 2017
0a6eeb8
Merge branch 'git-gui-askyesno'
dscho Jun 8, 2018
b33dfd1
ci(macos): skip the `git p4` tests (#5954)
dscho Nov 14, 2025
17cf276
fscache: make fscache_enabled() public
jeffhostetler Dec 20, 2017
95bc65b
dir.c: regression fix for add_excludes with fscache
jeffhostetler Dec 20, 2017
088653e
fetch-pack.c: enable fscache for stats under .git/objects
Nov 22, 2017
e811f57
checkout.c: enable fscache for checkout again
Jan 30, 2018
685b589
Enable the filesystem cache (fscache) in refresh_index().
benpeart Sep 7, 2018
da07b79
mem_pool: add GIT_TRACE_MEMPOOL support
benpeart Oct 4, 2018
46aa167
fscache: use FindFirstFileExW to avoid retrieving the short name
benpeart Oct 23, 2018
5682795
fscache: fscache takes an initial size
benpeart Nov 2, 2018
dfc504e
fscache: add GIT_TEST_FSCACHE support
benpeart Oct 4, 2018
8161809
fscache: update fscache to be thread specific instead of global
benpeart Oct 4, 2018
5b5e9bd
fscache: add fscache hit statistics
benpeart Sep 25, 2018
a4a4a3d
fscache: teach fscache to use mempool
benpeart Nov 2, 2018
3a7ac46
unpack-trees: enable fscache for sparse-checkout
derrickstolee Jun 12, 2019
5e874ea
fscache: remember the reparse tag for each entry
dscho Dec 11, 2018
916416e
fscache: make fscache_enable() thread safe
benpeart Nov 16, 2018
ccdbe2f
status: disable and free fscache at the end of the status command
benpeart Nov 1, 2018
f87557d
Merge branch 'fscache'
dscho Nov 15, 2018
96f682e
fscache: implement an FSCache-aware is_mount_point()
dscho Dec 11, 2018
092fc4c
fscache: teach fscache to use NtQueryDirectoryFile
benpeart Nov 15, 2018
b63bf2c
Merge pull request #1909 from benpeart/free-fscache-after-status-gfw
dscho Nov 5, 2018
43597d7
clean: make use of FSCache
dscho Dec 11, 2018
560bbaf
Merge remote-tracking branch 'benpeart/fscache-per-thread-gfw'
dscho Nov 16, 2018
29cc8a2
Merge branch 'dont-clean-junctions-fscache'
dscho Jul 23, 2019
adb561b
pack-objects (mingw): demonstrate a segmentation fault with large deltas
vangdfang Jan 9, 2014
7097018
mingw: support long paths
kblees Jul 28, 2015
23b6243
win32(long path support): leave drive-less absolute paths intact
dscho Sep 6, 2023
425fcde
mingw: Support `git_terminal_prompt` with more terminals
kblees Mar 19, 2015
63c5be6
compat/fsmonitor/fsm-*-win32: support long paths
jeffhostetler Mar 25, 2022
62b56fc
compat/terminal.c: only use the Windows console if bash 'read -r' fails
kblees May 9, 2015
fa907f4
mingw: introduce code to detect whether we're inside a Windows container
zcube Apr 23, 2018
9b83451
clean: suggest using `core.longPaths` if paths are too long to remove
mathstuf Apr 22, 2022
e87fbb2
mingw (git_terminal_prompt): do fall back to CONIN$/CONOUT$ method
dscho Feb 23, 2018
dd07c74
mingw: explicitly specify with which cmd to prefix the cmdline
dscho Jul 20, 2017
df6af3e
mingw: when path_lookup() failed, try BusyBox
dscho Jul 20, 2017
9468536
test-tool: learn to act as a drop-in replacement for `iconv`
dscho Jul 20, 2017
ce85212
tests(mingw): if `iconv` is unavailable, use `test-helper --iconv`
dscho Jul 20, 2017
41bbc9b
gitattributes: mark .png files as binary
dscho Oct 11, 2018
fc4e02b
tests: move test PNGs into t/lib-diff/
dscho Aug 5, 2017
8774967
tests: only override sort & find if there are usable ones in /usr/bin/
dscho Jul 17, 2017
d256d66
tests: use the correct path separator with BusyBox
dscho Nov 19, 2018
a2d36cb
mingw: only use Bash-ism `builtin pwd -W` when available
dscho Jun 29, 2017
361bb6f
tests (mingw): remove Bash-specific pwd option
dscho Jun 30, 2017
e6f50c7
test-lib: add BUSYBOX prerequisite
dscho Jul 19, 2017
aca055a
t5003: use binary file from t/lib-diff/
dscho Aug 5, 2017
36460ae
Win32: symlink: move phantom symlink creation to a separate function
piscisaureus Oct 26, 2018
6f15a60
t5532: workaround for BusyBox on Windows
dscho Jul 21, 2017
82218c6
mingw: when running in a Windows container, try to rename() harder
zcube Apr 23, 2018
9179a18
Introduce helper to create symlinks that knows about index_state
dscho Feb 11, 2019
37e2aab
t5605: special-case hardlink test for BusyBox-w32
dscho Jul 21, 2017
dcd805b
mingw: move the file_attr_to_st_mode() function definition
zcube Apr 23, 2018
984f40e
mingw: allow to specify the symlink type in .gitattributes
piscisaureus Oct 26, 2018
3173419
Describe Git for Windows' architecture
dscho Feb 13, 2023
7823b75
t5813: allow for $PWD to be a Windows path
dscho Jul 5, 2017
a4415a9
mingw: kill child processes in a gentler way
dscho May 17, 2017
1ab7875
Add a GitHub workflow to monitor component updates
dscho Sep 29, 2020
b9da043
mingw: Windows Docker volumes are *not* symbolic links
dscho Apr 23, 2018
4d552f3
mingw: work around rename() failing on a read-only file
dsl101 Jul 28, 2023
8ef9ea9
Win32: symlink: add test for `symlink` attribute
piscisaureus Oct 26, 2018
46a562a
Modify the Code of Conduct for Git for Windows
dscho Oct 11, 2019
991f165
t9200: skip tests when $PWD contains a colon
dscho Jul 7, 2017
3919e00
mingw: optionally enable wsl compability file mode bits
swigger Jun 7, 2023
50b061d
mingw: really handle SIGINT
dscho Apr 22, 2018
9d44ebe
Partially un-revert "editor: save and reset terminal after calling ED…
dscho Nov 25, 2021
5029e48
reset: reinstate support for the deprecated --stdin option
dscho Dec 10, 2019
c5ce726
fsmonitor: reintroduce core.useBuiltinFSMonitor
vdye Apr 4, 2022
e5e0683
dependabot: help keeping GitHub Actions versions up to date
dscho Feb 6, 2024
80e2d45
Merge branch 'gitk-and-git-gui-patches'
dscho Oct 11, 2018
d8f33ff
Merge branch 'long-paths'
dscho Nov 15, 2018
538c206
Merge branch 'msys2'
dscho Nov 15, 2018
a5fb6c7
Merge 'docker-volumes-are-no-symlinks'
dscho Oct 12, 2018
4e25fb0
mingw: try resetting the read-only bit if rename fails (#4527)
dscho Aug 7, 2023
7f26307
Merge pull request #1897 from piscisaureus/symlink-attr
dscho Oct 31, 2018
d3bea13
CONTRIBUTING.md: add guide for first-time contributors
derrickstolee Mar 1, 2018
73c663a
Merge branch 'busybox-w32'
dscho Feb 7, 2019
012b6c3
README.md: Add a Windows-specific preamble
dscho Jan 10, 2014
4392fcd
Merge branch 'wsl-file-mode-bits'
dscho Aug 7, 2023
4e9bbbb
Add an issue template
shiftkey Feb 18, 2016
95842c0
Merge pull request #1170 from dscho/mingw-kill-process
dscho Oct 11, 2018
07b5527
Modify the GitHub Pull Request template (to reflect Git for Windows)
Dec 22, 2017
4cfdb53
Merge branch 'un-revert-editor-save-and-reset'
dscho Jan 15, 2022
5d73973
SECURITY.md: document Git for Windows' policies
dscho Aug 23, 2019
d997d81
Merge branch 'phase-out-reset-stdin'
dscho Jun 8, 2018
468efe9
Merge branch 'deprecate-core.useBuiltinFSMonitor'
dscho Jan 24, 2023
f057d8f
Merge pull request #2837 from dscho/monitor-component-updates
dscho Oct 7, 2020
746de54
Add an AGENTS.md file to help with AI-assisted debugging/development
dscho Jan 26, 2026
73aed6c
Merge 'readme' into HEAD
dscho Jun 7, 2018
4b42b79
Add an AGENTS.md file to help with AI-assisted debugging/development …
dscho Apr 23, 2026
23fd1f0
??? t5563: add tests for http.emptyAuth with Negotiate
dscho Apr 27, 2026
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
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
*.pm text eol=lf diff=perl
*.py text eol=lf diff=python
*.bat text eol=crlf
*.png binary
/AGENTS.md conflict-marker-size=32
CODE_OF_CONDUCT.md -whitespace
/Documentation/**/*.adoc text eol=lf whitespace=trail,space,incomplete
/command-list.txt text eol=lf
Expand Down
105 changes: 105 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
name: Bug report
description: Use this template to report bugs.
body:
- type: checkboxes
id: search
attributes:
label: Existing issues matching what you're seeing
description: Please search for [open](https://github.com/git-for-windows/git/issues?q=is%3Aopen) or [closed](https://github.com/git-for-windows/git/issues?q=is%3Aclosed) issue matching what you're seeing before submitting a new issue.
options:
- label: I was not able to find an open or closed issue matching what I'm seeing
- type: textarea
id: git-for-windows-version
attributes:
label: Git for Windows version
description: Which version of Git for Windows are you using?
placeholder: Please insert the output of `git --version --build-options` here
render: shell
validations:
required: true
- type: dropdown
id: windows-version
attributes:
label: Windows version
description: Which version of Windows are you running?
options:
- Windows 8.1
- Windows 10
- Windows 11
- Other
default: 2
validations:
required: true
- type: dropdown
id: windows-arch
attributes:
label: Windows CPU architecture
description: What CPU Archtitecture does your Windows target?
options:
- i686 (32-bit)
- x86_64 (64-bit)
- ARM64
default: 1
validations:
required: true
- type: textarea
id: windows-version-cmd
attributes:
label: Additional Windows version information
description: This provides us with further information about your Windows such as the build number
placeholder: Please insert the output of `cmd.exe /c ver` here
render: shell
- type: textarea
id: options
attributes:
label: Options set during installation
description: What options did you set as part of the installation? Or did you choose the defaults?
placeholder: |
One of the following:
> type "C:\Program Files\Git\etc\install-options.txt"
> type "C:\Program Files (x86)\Git\etc\install-options.txt"
> type "%USERPROFILE%\AppData\Local\Programs\Git\etc\install-options.txt"
> type "$env:USERPROFILE\AppData\Local\Programs\Git\etc\install-options.txt"
$ cat /etc/install-options.txt
render: shell
validations:
required: true
- type: textarea
id: other-things
attributes:
label: Other interesting things
description: Any other interesting things about your environment that might be related to the issue you're seeing?
- type: input
id: terminal
attributes:
label: Terminal/shell
description: Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other
validations:
required: true
- type: textarea
id: commands
attributes:
label: Commands that trigger the issue
description: What commands did you run to trigger this issue? If you can provide a [Minimal, Complete, and Verifiable example](http://stackoverflow.com/help/mcve) this will help us understand the issue.
render: shell
validations:
required: true
- type: textarea
id: expected-behaviour
attributes:
label: Expected behaviour
description: What did you expect to occur after running these commands?
validations:
required: true
- type: textarea
id: actual-behaviour
attributes:
label: Actual behaviour
description: What actually happened instead?
validations:
required: true
- type: textarea
id: repository
attributes:
label: Repository
description: If the problem was occurring with a specific repository, can you provide the URL to that repository to help us with testing?
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blank_issues_enabled: false
20 changes: 16 additions & 4 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
Thanks for taking the time to contribute to Git! Please be advised that the
Git community does not use github.com for their contributions. Instead, we use
a mailing list (git@vger.kernel.org) for code submissions, code reviews, and
bug reports. Nevertheless, you can use GitGitGadget (https://gitgitgadget.github.io/)
Thanks for taking the time to contribute to Git!

Those seeking to contribute to the Git for Windows fork should see
http://gitforwindows.org/#contribute on how to contribute Windows specific
enhancements.

If your contribution is for the core Git functions and documentation
please be aware that the Git community does not use the github.com issues
or pull request mechanism for their contributions.

Instead, we use the Git mailing list (git@vger.kernel.org) for code and
documentation submissions, code reviews, and bug reports. The
mailing list is plain text only (anything with HTML is sent directly
to the spam folder).

Nevertheless, you can use GitGitGadget (https://gitgitgadget.github.io/)
to conveniently send your Pull Requests commits to our mailing list.

For a single-commit pull request, please *leave the pull request description
Expand Down
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
# especially
# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot#enabling-dependabot-version-updates-for-actions

version: 2
updates:
- package-ecosystem: "github-actions" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
21 changes: 13 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,11 @@ jobs:
NO_PERL: 1
GIT_CONFIG_PARAMETERS: "'user.name=CI' 'user.email=ci@git'"
runs-on: windows-latest
strategy:
matrix:
arch: [x64, arm64]
concurrency:
group: vs-build-${{ github.ref }}
group: vs-build-${{ github.ref }}-${{ matrix.arch }}
cancel-in-progress: ${{ needs.ci-config.outputs.skip_concurrent == 'yes' }}
steps:
- uses: actions/checkout@v6
Expand All @@ -189,14 +192,14 @@ jobs:
uses: microsoft/setup-msbuild@v3
- name: copy dlls to root
shell: cmd
run: compat\vcbuild\vcpkg_copy_dlls.bat release
run: compat\vcbuild\vcpkg_copy_dlls.bat release ${{ matrix.arch }}-windows
- name: generate Visual Studio solution
shell: bash
run: |
cmake `pwd`/contrib/buildsystems/ -DCMAKE_PREFIX_PATH=`pwd`/compat/vcbuild/vcpkg/installed/x64-windows \
-DNO_GETTEXT=YesPlease -DPERL_TESTS=OFF -DPYTHON_TESTS=OFF -DCURL_NO_CURL_CMAKE=ON
cmake `pwd`/contrib/buildsystems/ -DCMAKE_PREFIX_PATH=`pwd`/compat/vcbuild/vcpkg/installed/${{ matrix.arch }}-windows \
-DNO_GETTEXT=YesPlease -DPERL_TESTS=OFF -DPYTHON_TESTS=OFF -DCURL_NO_CURL_CMAKE=ON -DCMAKE_GENERATOR_PLATFORM=${{ matrix.arch }} -DVCPKG_ARCH=${{ matrix.arch }}-windows -DHOST_CPU=${{ matrix.arch }}
- name: MSBuild
run: msbuild git.sln -property:Configuration=Release -property:Platform=x64 -maxCpuCount:4 -property:PlatformToolset=v142
run: msbuild git.sln -property:Configuration=Release -property:Platform=${{ matrix.arch }} -maxCpuCount:4 -property:PlatformToolset=v142
- name: bundle artifact tar
shell: bash
env:
Expand All @@ -210,7 +213,7 @@ jobs:
- name: upload tracked files and build artifacts
uses: actions/upload-artifact@v7
with:
name: vs-artifacts
name: vs-artifacts-${{ matrix.arch }}
path: artifacts
vs-test:
name: win+VS test
Expand All @@ -228,7 +231,7 @@ jobs:
- name: download tracked files and build artifacts
uses: actions/download-artifact@v8
with:
name: vs-artifacts
name: vs-artifacts-x64
path: ${{github.workspace}}
- name: extract tracked files and build artifacts
shell: bash
Expand Down Expand Up @@ -420,7 +423,9 @@ jobs:
CI_JOB_IMAGE: ${{matrix.vector.image}}
CUSTOM_PATH: /custom
runs-on: ubuntu-latest
container: ${{matrix.vector.image}}
container:
image: ${{ matrix.vector.image }}
options: ${{ github.repository_visibility == 'private' && '--pids-limit 16384 --ulimit nproc=16384:16384 --ulimit nofile=32768:32768' || '' }}
steps:
- name: prepare libc6 for actions
if: matrix.vector.jobname == 'linux32'
Expand Down
94 changes: 94 additions & 0 deletions .github/workflows/monitor-components.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
name: Monitor component updates

# Git for Windows is a slightly modified subset of MSYS2. Some of its
# components are maintained by Git for Windows, others by MSYS2. To help
# keeping the former up to date, this workflow monitors the Atom/RSS feeds
# and opens new tickets for each new component version.

on:
schedule:
- cron: "23 8,11,14,17 * * *"
workflow_dispatch:

env:
CHARACTER_LIMIT: 5000
MAX_AGE: 7d

jobs:
job:
# Only run this in Git for Windows' fork
if: github.event.repository.owner.login == 'git-for-windows'
runs-on: ubuntu-latest
permissions:
issues: write
strategy:
matrix:
component:
- label: git
feed: https://github.com/git/git/tags.atom
- label: git-lfs
feed: https://github.com/git-lfs/git-lfs/tags.atom
- label: git-credential-manager
feed: https://github.com/git-ecosystem/git-credential-manager/tags.atom
- label: tig
feed: https://github.com/jonas/tig/tags.atom
- label: cygwin
feed: https://github.com/cygwin/cygwin/releases.atom
title-pattern: ^(?!.*newlib)
- label: msys2-runtime-package
feed: https://github.com/msys2/MSYS2-packages/commits/master/msys2-runtime.atom
- label: msys2-runtime
feed: https://github.com/msys2/msys2-runtime/commits/HEAD.atom
aggregate: true
- label: openssh
feed: https://github.com/openssh/openssh-portable/tags.atom
- label: libfido2
feed: https://github.com/Yubico/libfido2/tags.atom
- label: libcbor
feed: https://github.com/PJK/libcbor/tags.atom
- label: openssl
feed: https://github.com/openssl/openssl/tags.atom
title-pattern: ^(?!.*alpha)
- label: gnutls
feed: https://gnutls.org/news.atom
- label: heimdal
feed: https://github.com/heimdal/heimdal/tags.atom
- label: git-sizer
feed: https://github.com/github/git-sizer/tags.atom
- label: gitflow
feed: https://github.com/petervanderdoes/gitflow-avh/tags.atom
- label: curl
feed: https://github.com/curl/curl/tags.atom
title-pattern: ^(?!rc-)
- label: mintty
feed: https://github.com/mintty/mintty/releases.atom
- label: 7-zip
feed: https://sourceforge.net/projects/sevenzip/rss?path=/7-Zip
aggregate: true
- label: bash
feed: https://git.savannah.gnu.org/cgit/bash.git/atom/?h=master
aggregate: true
- label: perl
feed: https://github.com/Perl/perl5/tags.atom
title-pattern: ^(?!.*(5\.[0-9]+[13579]|RC))
- label: pcre2
feed: https://github.com/PCRE2Project/pcre2/tags.atom
- label: mingw-w64-llvm
feed: https://github.com/msys2/MINGW-packages/commits/master/mingw-w64-llvm.atom
- label: innosetup
feed: https://github.com/jrsoftware/issrc/tags.atom
- label: mimalloc
feed: https://github.com/microsoft/mimalloc/tags.atom
title-pattern: ^(?!v1\.|v3\.[01]\.)
fail-fast: false
steps:
- uses: git-for-windows/rss-to-issues@v0
with:
feed: ${{matrix.component.feed}}
prefix: "[New ${{matrix.component.label}} version]"
labels: component-update
github-token: ${{ secrets.GITHUB_TOKEN }}
character-limit: ${{ env.CHARACTER_LIMIT }}
max-age: ${{ env.MAX_AGE }}
aggregate: ${{matrix.component.aggregate}}
title-pattern: ${{matrix.component.title-pattern}}
76 changes: 76 additions & 0 deletions .github/workflows/nano-server.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: Windows Nano Server tests

on:
workflow_dispatch:

env:
DEVELOPER: 1

jobs:
test-nano-server:
runs-on: windows-2022
env:
WINDBG_DIR: "C:/Program Files (x86)/Windows Kits/10/Debuggers/x64"
IMAGE: mcr.microsoft.com/powershell:nanoserver-ltsc2022

steps:
- uses: actions/checkout@v6
- uses: git-for-windows/setup-git-for-windows-sdk@v2
- name: build Git
shell: bash
run: make -j15
- name: pull nanoserver image
shell: bash
run: docker pull $IMAGE
- name: run nano-server test
shell: bash
run: |
docker run \
--user "ContainerAdministrator" \
-v "$WINDBG_DIR:C:/dbg" \
-v "$(cygpath -aw /mingw64/bin):C:/mingw64-bin" \
-v "$(cygpath -aw .):C:/test" \
$IMAGE pwsh.exe -Command '
# Extend the PATH to include the `.dll` files in /mingw64/bin/
$env:PATH += ";C:\mingw64-bin"

# For each executable to test pick some no-operation set of
# flags/subcommands or something that should quickly result in an
# error with known exit code that is not a negative 32-bit
# number, and set the expected return code appropriately.
#
# Only test executables that could be expected to run in a UI
# less environment.
#
# ( Executable path, arguments, expected return code )
# also note space is required before close parenthesis (a
# powershell quirk when defining nested arrays like this)

$executables_to_test = @(
("C:\test\git.exe", "", 1 ),
("C:\test\scalar.exe", "version", 0 )
)

foreach ($executable in $executables_to_test)
{
Write-Output "Now testing $($executable[0])"
&$executable[0] $executable[1]
if ($LASTEXITCODE -ne $executable[2]) {
# if we failed, run the debugger to find out what function
# or DLL could not be found and then exit the script with
# failure The missing DLL or EXE will be referenced near
# the end of the output

# Set a flag to have the debugger show loader stub
# diagnostics. This requires running as administrator,
# otherwise the flag will be ignored.
C:\dbg\gflags -i $executable[0] +SLS

C:\dbg\cdb.exe -c "g" -c "q" $executable[0] $executable[1]

exit 1
}
}

exit 0
'
Loading