Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
969 commits
Select commit Hold shift + click to select a range
1011d6d
mingw: allow for longer paths in `parse_interpreter()`
dscho Apr 2, 2021
d69b540
compat/vcbuild: document preferred way to build in Visual Studio
dscho May 17, 2021
e378893
http: optionally send SSL client certificate
pascalmuller Jun 23, 2021
7792eef
ci: run `contrib/subtree` tests in CI builds
vdye Aug 5, 2021
001489b
hash-object: demonstrate a >4GB/LLP64 problem
PhilipOakley Oct 31, 2021
0d8e804
object-file.c: use size_t for header lengths
PhilipOakley Nov 12, 2021
9352436
.gitignore: add Visual Studio CMakeSetting.json file
PhilipOakley Apr 24, 2021
fdfc689
hash algorithms: use size_t for section lengths
PhilipOakley Nov 12, 2021
2ce83f5
CMakeLists: add default "x64-windows" arch for Visual Studio
PhilipOakley Apr 22, 2021
8720c7d
hash-object --stdin: verify that it works with >4GB/LLP64
PhilipOakley Dec 6, 2021
8c2962a
CMake: show Win32 and Generator_platform build-option values
PhilipOakley May 10, 2021
193e05c
init: do parse _all_ core.* settings early
dscho Sep 8, 2021
a154e12
hash-object: add another >4GB/LLP64 test case
PhilipOakley Dec 6, 2021
296424c
setup: properly use "%(prefix)/" when in WSL
derrickstolee Apr 13, 2022
c6eebee
hash-object: add a >4GB/LLP64 test case using filtered input
PhilipOakley Dec 7, 2021
6211858
compat/mingw.c: do not warn when failing to get owner
derrickstolee Apr 13, 2022
be3f49a
mingw: $env:TERM="xterm-256color" for newer OSes
rkitover Apr 12, 2022
bbeecf5
winansi: check result and Buffer before using Name
1480c1 May 28, 2022
d25ad44
Add config option `windows.appendAtomically`
sunzhuoshi Jan 15, 2022
971e3d9
mingw: change core.fsyncObjectFiles = 1 by default
dscho Sep 4, 2017
652ff9e
MinGW: link as terminal server aware
rimrul Jul 10, 2022
94860dd
Fix Windows version resources
Mortein Nov 2, 2022
2c242e8
status: fix for old-style submodules with commondir
sceptical-coder Oct 28, 2022
ea12902
http: optionally load libcurl lazily
dscho May 6, 2023
ea63210
http: support lazy-loading libcurl also on Windows
dscho May 7, 2023
54646b6
http: when loading libcurl lazily, allow for multiple SSL backends
dscho May 7, 2023
e5cfbad
windows: skip linking `git-<command>` for built-ins
dscho Jan 27, 2023
49bb928
mingw: do load libcurl dynamically by default
dscho May 7, 2023
ee1aea0
Add a GitHub workflow to verify that Git/Scalar work in Nano Server
dscho Nov 2, 2022
7f29ccb
mingw: suggest `windows.appendAtomically` in more cases
dsl101 Jul 28, 2023
1373ef1
win32: use native ANSI sequence processing, if possible
dscho Nov 22, 2023
e0b8767
git.rc: include winuser.h
rimrul Dec 2, 2023
90d838a
common-main.c: fflush stdout buffer upon exit
chengzhuo5 Apr 8, 2024
2b85892
t5601/t7406(mingw): do run tests with symlink support
dscho Apr 9, 2024
041f274
win32: ensure that `localtime_r()` is declared even in i686 builds
dscho May 21, 2024
94e3ebb
Fallback to AppData if XDG_CONFIG_HOME is unset
ariellourenco Jul 2, 2024
9da4650
run-command: be helpful with Git LFS fails on Windows 7
dscho Jul 4, 2024
4f7698a
revision: create mark_trees_uninteresting_dense()
derrickstolee Sep 6, 2024
2811f84
ci: work around a problem with HTTP/2 vs libcurl v8.10.0
dscho Sep 24, 2024
ab8a27d
mingw: make sure `errno` is set correctly when socket operations fail
dscho Nov 14, 2019
5e290d3
compat/mingw: handle WSA errors in strerror
rimrul Dec 22, 2024
c9a2bf2
compat/mingw: drop outdated comment
rimrul Dec 22, 2024
aed5ff5
t0301: actually test credential-cache on Windows
rimrul Dec 29, 2024
d36a294
credential-cache: handle ECONNREFUSED gracefully
rimrul Dec 22, 2024
234527f
max_tree_depth: lower it for clangarm64 on Windows
dscho Apr 15, 2025
f9d7c21
reftable: do make sure to use custom allocators
dscho Mar 6, 2025
c9b2450
check-whitespace: avoid alerts about upstream commits
dscho Jun 3, 2025
6b067e5
mingw: avoid the comma operator
dscho Jun 5, 2025
880ba11
wincred: Avoid memory corruption
elieux Oct 3, 2025
3e22bb0
Merge 'remote-hg-prerequisites' into HEAD
dscho Jun 8, 2018
ba3bf75
Merge branch 'drive-prefix'
dscho Jun 8, 2018
9b2bb4b
Merge branch 'dont-clean-junctions'
dscho Jul 30, 2019
4e56b93
Merge branch 'msys2-python'
dscho May 31, 2019
8bee118
Merge branch 'mimalloc-v2.2.3'
dscho Sep 8, 2022
c80b9ef
Merge pull request #2375 from assarbad/reintroduce-sideband-config
dscho Oct 30, 2019
5d40de6
Merge pull request #2449 from dscho/mingw-getcwd-and-symlinks
dscho Jan 3, 2020
d0a499e
Merge pull request #2488 from bmueller84/master
dscho Jan 22, 2020
e7a22e5
Merge pull request #2501 from jeffhostetler/clink-debug-curl
dscho Jan 30, 2020
00c4388
Merge pull request #2504 from dscho/access-repo-via-junction
dscho Feb 1, 2020
fd0684e
Merge pull request #2506 from dscho/issue-2283
dscho Feb 11, 2020
ed6e880
Merge pull request #2535 from dscho/schannel-revoke-best-effort
dscho Mar 4, 2020
a52ba9f
Merge pull request #2618 from dscho/avoid-d/f-conflict-in-vs/master
dscho May 9, 2020
b14642a
Merge 'add-p-many-files'
dscho Jun 8, 2018
b001bd1
Merge pull request #2714 from lbonanomi/crlf-scissors
dscho Jul 3, 2020
db6caf2
Merge pull request #2655 from jglathe/jg/t0014_trace_extra_info
dscho Oct 9, 2020
ad9ace0
Merge 'git-gui/js/intent-to-add'
dscho Oct 18, 2020
f11316c
Merge pull request #2974 from derrickstolee/maintenance-and-headless
dscho Jan 11, 2021
ab0d03e
cmake: install headless-git. (#4338)
dscho Mar 13, 2023
829db30
Merge pull request #2351 from PhilipOakley/vcpkg-tip
dscho Oct 7, 2019
ec9a1d5
Merge pull request #2915 from dennisameling/windows-arm64-support
dscho Dec 9, 2020
e84ff78
Merge pull request #3327 from dennisameling/fix-host-cpu
dscho Jul 19, 2021
c720a28
Merge pull request #3165 from dscho/increase-allowed-length-of-interp…
dscho Apr 3, 2021
c478660
Merge pull request #3220 from dscho/there-is-no-vs/master-anymore
dscho May 17, 2021
85a0d50
Merge pull request #3293 from pascalmuller/http-support-automatically…
dscho Jun 24, 2021
f3e7e5f
Merge pull request #3349 from vdye/feature/ci-subtree-tests
dscho Aug 10, 2021
3101478
Merge pull request #3306 from PhilipOakley/vs-sln
dscho Oct 12, 2021
0d8c285
Merge pull request #3417 from dscho/initialize-core.symlinks-earlier
dscho Oct 13, 2021
d3ceaed
Merge pull request #3533 from PhilipOakley/hashliteral_t
dscho Dec 15, 2021
199e7b8
Merge pull request #3791: Various fixes around `safe.directory`
derrickstolee Apr 13, 2022
31454b6
Merge pull request #3751 from rkitover/native-term
dscho Apr 21, 2022
406d6fc
Merge pull request #3875 from 1480c1/wine/detect_msys_tty
dscho May 30, 2022
55fb2c5
Merge branch 'optionally-dont-append-atomically-on-windows'
dscho Jun 23, 2022
05c25b2
Merge branch 'fsync-object-files-always'
dscho Oct 11, 2018
5c0b18b
Merge pull request #3942 from rimrul/mingw-tsaware
dscho Jul 27, 2022
67cf52f
Fix Windows version resources (#4092)
dscho Nov 3, 2022
6f920ac
Fix global repository field not being cleared (#4083)
dscho Dec 20, 2022
76a71bf
Skip linking the "dashed" `git-<command>`s for built-ins (#4252)
dscho Jan 31, 2023
508e621
Lazy load libcurl, allowing for an SSL/TLS backend-specific libcurl (…
dscho May 15, 2023
fb3a1cd
Merge branch 'nano-server'
dscho Aug 7, 2023
f5a2c32
Additional error checks for issuing the windows.appendAtomically warn…
dscho Aug 7, 2023
039ae08
win32: use native ANSI sequence processing, if possible (#4700)
dscho Dec 2, 2023
a4538f2
ARM64: Embed manifest properly (#4718)
dscho Dec 7, 2023
c9a1f8d
common-main.c: fflush stdout buffer when exit (#4901)
dscho Apr 12, 2024
591dcb9
Merge branch 'run-t5601-and-t7406-with-symlinks-on-windows-10'
dscho Jul 12, 2024
a2b93a7
Merge branch 'Fix-i686-build-with-GCC-v14'
dscho Jul 12, 2024
b7efe81
Merge branch 'Fallback-to-AppData-if-XDG-CONFIG-HOME-is-unset'
dscho Jul 12, 2024
ce504a8
Merge branch 'run-command-be-helpful-when-Git-LFS-fails-on-Windows-7'
dscho Jul 12, 2024
ad10160
pack-objects: create new name-hash algorithm (#5157)
dscho Sep 24, 2024
aa3b46d
Add path walk API and its use in 'git pack-objects' (#5171)
derrickstolee Sep 25, 2024
01539cb
survey: stub in new experimental 'git-survey' command
Apr 29, 2024
afd5327
survey: add command line opts to select references
Apr 29, 2024
41a9da2
survey: start pretty printing data in table form
derrickstolee Sep 1, 2024
4b55e93
survey: add object count summary
derrickstolee Sep 2, 2024
afa04f6
survey: summarize total sizes by object type
derrickstolee Sep 2, 2024
6dbae86
survey: show progress during object walk
derrickstolee Sep 2, 2024
6ced93b
survey: add ability to track prioritized lists
derrickstolee Sep 2, 2024
3678ea7
survey: add report of "largest" paths
derrickstolee Sep 2, 2024
6288825
survey: add --top=<N> option and config
derrickstolee Sep 23, 2024
3f1bf3b
survey: clearly note the experimental nature in the output
dscho Jul 1, 2024
f4fc15b
cmake: stop trying to build the reftable and xdiff libraries
dscho Oct 27, 2025
d8ddd28
ci(dockerized): do show the result of failing tests again
dscho Nov 3, 2025
1968702
Add experimental 'git survey' builtin (#5174)
dscho Sep 26, 2024
5247140
credential-cache: handle ECONNREFUSED gracefully (#5329)
dscho Jan 1, 2025
f2a1c14
clangarm64: let the tests pass! (#5586)
dscho Apr 21, 2025
e05868c
Merge branch 'reftable-vs-custom-allocators'
dscho Jun 2, 2025
a938a72
Merge branch 'check-whitespace-only-downstream'
dscho Jun 3, 2025
9d3d296
mingw: avoid the comma operator (#5660)
dscho Jun 5, 2025
9e42172
wincred: Avoid memory corruption (#5856)
dscho Oct 6, 2025
57851f5
Merge branch 'adjust-cmake-to-xdiff-and-reftable-merge-into-libgit'
dscho Nov 4, 2025
9f1af41
Merge branch 'fix-failure-reporting-in-dockerized-ci'
dscho Nov 4, 2025
efc989b
git-svn: mark it as unsupported by the Git for Windows project
dscho Nov 3, 2025
5a839ba
Merge branch 'ready-for-upstream'
dscho Oct 11, 2018
ce3bfe1
git-gui--askyesno: fix funny text wrapping
dscho Sep 20, 2017
5145822
git-gui--askyesno (mingw): use Git for Windows' icon, if available
dscho Sep 20, 2017
d42269d
git-svn: mark it as unsupported by the Git for Windows project (#5923)
dscho Nov 4, 2025
bce890d
Win32: make FILETIME conversion functions public
kblees Jul 6, 2013
8f4fb6a
Win32: dirent.c: Move opendir down
kblees Sep 8, 2013
a18dbc4
mingw: make the dirent implementation pluggable
kblees Sep 8, 2013
df6d161
Win32: make the lstat implementation pluggable
kblees Sep 8, 2013
b8672f0
mingw: add infrastructure for read-only file system level caches
kblees Sep 8, 2013
b758d7a
Merge branch 'git-gui-askyesno'
dscho Jun 8, 2018
c54684c
mingw: add a cache below mingw's lstat and dirent implementations
kblees Oct 1, 2013
5cb5985
fscache: load directories only once
kblees Jun 24, 2014
0c3b164
fscache: add key for GIT_TRACE_FSCACHE
jeffhostetler Jan 24, 2017
e237353
fscache: remember not-found directories
jeffhostetler Dec 13, 2016
babeaa6
fscache: add a test for the dir-not-found optimization
dscho Jan 25, 2017
560881e
add: use preload-index and fscache for performance
jeffhostetler Nov 22, 2016
dc5eb45
dir.c: make add_excludes aware of fscache during status
jeffhostetler Nov 1, 2017
a87ad7b
fscache: make fscache_enabled() public
jeffhostetler Dec 20, 2017
4a6ccdb
dir.c: regression fix for add_excludes with fscache
jeffhostetler Dec 20, 2017
6fe9406
fetch-pack.c: enable fscache for stats under .git/objects
Nov 22, 2017
b0c90ce
checkout.c: enable fscache for checkout again
Jan 30, 2018
623bbbf
Enable the filesystem cache (fscache) in refresh_index().
benpeart Sep 7, 2018
bd54877
fscache: use FindFirstFileExW to avoid retrieving the short name
benpeart Oct 23, 2018
5ef6d28
fscache: add GIT_TEST_FSCACHE support
benpeart Oct 4, 2018
2c3a25f
mem_pool: add GIT_TRACE_MEMPOOL support
benpeart Oct 4, 2018
9f04a6e
fscache: fscache takes an initial size
benpeart Nov 2, 2018
2d2b947
fscache: add fscache hit statistics
benpeart Sep 25, 2018
1d1534b
fscache: update fscache to be thread specific instead of global
benpeart Oct 4, 2018
47a202e
unpack-trees: enable fscache for sparse-checkout
derrickstolee Jun 12, 2019
1780102
status: disable and free fscache at the end of the status command
benpeart Nov 1, 2018
b8f21dd
fscache: teach fscache to use mempool
benpeart Nov 2, 2018
56d67c7
fscache: remember the reparse tag for each entry
dscho Dec 11, 2018
314f6f1
fscache: make fscache_enable() thread safe
benpeart Nov 16, 2018
b0d0758
fscache: implement an FSCache-aware is_mount_point()
dscho Dec 11, 2018
30695b8
fscache: teach fscache to use NtQueryDirectoryFile
benpeart Nov 15, 2018
f833a3a
clean: make use of FSCache
dscho Dec 11, 2018
3e52eb8
Merge branch 'fscache'
dscho Nov 15, 2018
f6897ea
Merge pull request #1909 from benpeart/free-fscache-after-status-gfw
dscho Nov 5, 2018
16cbefb
Merge remote-tracking branch 'benpeart/fscache-per-thread-gfw'
dscho Nov 16, 2018
6383de2
Merge branch 'dont-clean-junctions-fscache'
dscho Jul 23, 2019
249feba
pack-objects (mingw): demonstrate a segmentation fault with large deltas
vangdfang Jan 9, 2014
7927d9b
mingw: support long paths
kblees Jul 28, 2015
7cd4397
Win32: fix 'lstat("dir/")' with long paths
kblees Jul 4, 2014
b333c34
win32(long path support): leave drive-less absolute paths intact
dscho Sep 6, 2023
718ad51
mingw: Support `git_terminal_prompt` with more terminals
kblees Mar 19, 2015
a12e912
compat/fsmonitor/fsm-*-win32: support long paths
jeffhostetler Mar 25, 2022
d0a209f
compat/terminal.c: only use the Windows console if bash 'read -r' fails
kblees May 9, 2015
90dbb0a
clean: suggest using `core.longPaths` if paths are too long to remove
mathstuf Apr 22, 2022
35f01c4
mingw (git_terminal_prompt): do fall back to CONIN$/CONOUT$ method
dscho Feb 23, 2018
fe16528
strbuf_readlink: don't call readlink twice if hint is the exact link …
kblees May 11, 2015
3b0be7a
strbuf_readlink: support link targets that exceed PATH_MAX
kblees May 11, 2015
98d4ba1
lockfile.c: use is_dir_sep() instead of hardcoded '/' checks
kblees May 11, 2015
1f527b2
Win32: don't call GetFileAttributes twice in mingw_lstat()
kblees May 12, 2015
195285f
Win32: implement stat() with symlink support
kblees May 15, 2015
d9dd8d7
Win32: remove separate do_lstat() function
kblees May 11, 2015
6a98333
Win32: let mingw_lstat() error early upon problems with reparse points
kblees May 23, 2015
9c2deb8
mingw: teach fscache and dirent about symlinks
kblees Jan 10, 2017
b3bd1d0
Win32: lstat(): return adequate stat.st_size for symlinks
kblees May 15, 2015
f1c56c2
Win32: factor out retry logic
kblees May 19, 2015
79bd46b
Win32: change default of 'core.symlinks' to false
kblees May 23, 2015
ac8951d
Win32: add symlink-specific error codes
kblees May 15, 2015
c173034
Win32: mingw_unlink: support symlinks to directories
kblees May 23, 2015
f7ebf9c
Win32: mingw_rename: support renaming symlinks
kblees May 19, 2015
f1f4f47
Win32: mingw_chdir: change to symlink-resolved directory
kblees May 23, 2015
bc8e81b
Win32: implement readlink()
kblees May 23, 2015
9a9a444
mingw: lstat: compute correct size for symlinks
billziss-gh May 28, 2020
e229f98
Win32: implement basic symlink() functionality (file symlinks only)
kblees May 23, 2015
787aa20
Win32: symlink: add support for symlinks to directories
kblees May 23, 2015
040e620
mingw: try to create symlinks without elevated permissions
dscho May 30, 2017
fba11de
mingw: emulate stat() a little more faithfully
dscho Mar 2, 2020
26725e3
mingw: introduce code to detect whether we're inside a Windows container
zcube Apr 23, 2018
8e2487b
mingw: special-case index entries for symlinks with buggy size
dscho Jun 4, 2020
a727c7a
mingw: when running in a Windows container, try to rename() harder
zcube Apr 23, 2018
9b7959d
Win32: symlink: move phantom symlink creation to a separate function
piscisaureus Oct 26, 2018
855b3ab
mingw: move the file_attr_to_st_mode() function definition
zcube Apr 23, 2018
9f9c9ab
Introduce helper to create symlinks that knows about index_state
dscho Feb 11, 2019
e163529
mingw: Windows Docker volumes are *not* symbolic links
dscho Apr 23, 2018
e3d9d7a
mingw: work around rename() failing on a read-only file
dsl101 Jul 28, 2023
b213367
mingw: explicitly specify with which cmd to prefix the cmdline
dscho Jul 20, 2017
07250ad
mingw: when path_lookup() failed, try BusyBox
dscho Jul 20, 2017
142409f
test-tool: learn to act as a drop-in replacement for `iconv`
dscho Jul 20, 2017
d880b9d
tests(mingw): if `iconv` is unavailable, use `test-helper --iconv`
dscho Jul 20, 2017
b8757ee
mingw: allow to specify the symlink type in .gitattributes
piscisaureus Oct 26, 2018
5035906
gitattributes: mark .png files as binary
dscho Oct 11, 2018
6a7e516
Win32: symlink: add test for `symlink` attribute
piscisaureus Oct 26, 2018
ea7fe36
tests: move test PNGs into t/lib-diff/
dscho Aug 5, 2017
d615688
tests: only override sort & find if there are usable ones in /usr/bin/
dscho Jul 17, 2017
d8d6f30
tests: use the correct path separator with BusyBox
dscho Nov 19, 2018
8ac4078
mingw: only use Bash-ism `builtin pwd -W` when available
dscho Jun 29, 2017
c237249
tests (mingw): remove Bash-specific pwd option
dscho Jun 30, 2017
90b41b7
test-lib: add BUSYBOX prerequisite
dscho Jul 19, 2017
a60280e
t5003: use binary file from t/lib-diff/
dscho Aug 5, 2017
45ae67e
t5532: workaround for BusyBox on Windows
dscho Jul 21, 2017
7d7551e
t5605: special-case hardlink test for BusyBox-w32
dscho Jul 21, 2017
d8ece8a
t5813: allow for $PWD to be a Windows path
dscho Jul 5, 2017
cb280cb
t9200: skip tests when $PWD contains a colon
dscho Jul 7, 2017
5ecdd42
mingw: add a Makefile target to copy test artifacts
dscho Jul 19, 2017
fd5d163
mingw: kill child processes in a gentler way
dscho May 17, 2017
95b3cea
mingw: optionally enable wsl compability file mode bits
swigger Jun 7, 2023
fa02dcf
mingw: really handle SIGINT
dscho Apr 22, 2018
c8ca8c3
mingw: do not call xutftowcs_path in mingw_mktemp
neerajsi-msft Oct 27, 2021
30dda97
Partially un-revert "editor: save and reset terminal after calling ED…
dscho Nov 25, 2021
1d282a1
Add a GitHub workflow to monitor component updates
dscho Sep 29, 2020
e568e3d
Describe Git for Windows' architecture [no ci]
dscho Feb 13, 2023
e96387e
reset: reinstate support for the deprecated --stdin option
dscho Dec 10, 2019
314c9f7
fsmonitor: reintroduce core.useBuiltinFSMonitor
vdye Apr 4, 2022
2a51156
dependabot: help keeping GitHub Actions versions up to date
dscho Feb 6, 2024
6fe751d
Modify the Code of Conduct for Git for Windows
dscho Oct 11, 2019
c14bc73
CONTRIBUTING.md: add guide for first-time contributors
derrickstolee Mar 1, 2018
1f96778
README.md: Add a Windows-specific preamble
dscho Jan 10, 2014
0fef800
Add an issue template
shiftkey Feb 18, 2016
435759f
Modify the GitHub Pull Request template (to reflect Git for Windows)
Dec 22, 2017
9a26095
SECURITY.md: document Git for Windows' policies
dscho Aug 23, 2019
f044921
Merge branch 'gitk-and-git-gui-patches'
dscho Oct 11, 2018
a9a69b3
Merge branch 'long-paths'
dscho Nov 15, 2018
3bf0682
Merge branch 'msys2'
dscho Nov 15, 2018
999edee
Merge branch 'kblees/kb/symlinks'
dscho Nov 15, 2018
6b3b049
Merge 'docker-volumes-are-no-symlinks'
dscho Oct 12, 2018
f8c19da
mingw: try resetting the read-only bit if rename fails (#4527)
dscho Aug 7, 2023
eada1f9
Merge pull request #1897 from piscisaureus/symlink-attr
dscho Oct 31, 2018
66fa80c
Merge branch 'busybox-w32'
dscho Feb 7, 2019
d6e6902
Merge branch 'wsl-file-mode-bits'
dscho Aug 7, 2023
b4bd514
Merge pull request #1170 from dscho/mingw-kill-process
dscho Oct 11, 2018
203ed0b
Merge pull request #3492 from dscho/ns/batched-fsync
vdye Oct 28, 2021
c36465c
Merge branch 'un-revert-editor-save-and-reset'
dscho Jan 15, 2022
4f89f61
Merge branch 'phase-out-reset-stdin'
dscho Jun 8, 2018
9b56c36
Merge branch 'deprecate-core.useBuiltinFSMonitor'
dscho Jan 24, 2023
b100e7c
Merge pull request #2837 from dscho/monitor-component-updates
dscho Oct 7, 2020
21f188e
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
  •  
  •  
  •  
21 changes: 18 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,8 @@ jobs:
- jobname: linux-breaking-changes
cc: gcc
image: ubuntu:rolling
- jobname: fedora-breaking-changes-meson
image: fedora:latest
- jobname: linux-leaks
image: ubuntu:rolling
cc: gcc
Expand All @@ -399,8 +401,6 @@ jobs:
# Supported until 2025-04-02.
- jobname: linux32
image: i386/ubuntu:focal
- jobname: pedantic
image: fedora:latest
# A RHEL 8 compatible distro. Supported until 2029-05-31.
- jobname: almalinux-8
image: almalinux:8
Expand Down Expand Up @@ -436,7 +436,7 @@ jobs:
- run: ci/install-dependencies.sh
- run: useradd builder --create-home
- run: chown -R builder .
- run: sudo --preserve-env --set-home --user=builder ci/run-build-and-tests.sh
- run: chmod o+w $GITHUB_ENV && sudo --preserve-env --set-home --user=builder ci/run-build-and-tests.sh
- name: print test failures
if: failure() && env.FAILED_TEST_ARTIFACTS != ''
run: sudo --preserve-env --set-home --user=builder ci/print-test-failures.sh
Expand All @@ -461,6 +461,21 @@ jobs:
- run: ci/install-dependencies.sh
- run: ci/run-static-analysis.sh
- run: ci/check-directional-formatting.bash
rust-analysis:
needs: ci-config
if: needs.ci-config.outputs.enabled == 'yes'
env:
jobname: RustAnalysis
CI_JOB_IMAGE: ubuntu:rolling
runs-on: ubuntu-latest
container: ubuntu:rolling
concurrency:
group: rust-analysis-${{ github.ref }}
cancel-in-progress: ${{ needs.ci-config.outputs.skip_concurrent == 'yes' }}
steps:
- uses: actions/checkout@v4
- run: ci/install-dependencies.sh
- run: ci/run-rust-checks.sh
sparse:
needs: ci-config
if: needs.ci-config.outputs.enabled == 'yes'
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/fuzz_corpora
/target/
/Cargo.lock
/GIT-BUILD-DIR
/GIT-BUILD-OPTIONS
/GIT-CFLAGS
Expand Down Expand Up @@ -87,6 +89,7 @@
/git-init-db
/git-interpret-trailers
/git-instaweb
/git-last-modified
/git-log
/git-ls-files
/git-ls-remote
Expand Down Expand Up @@ -139,6 +142,7 @@
/git-repack
/git-replace
/git-replay
/git-repo
/git-request-pull
/git-rerere
/git-reset
Expand Down
44 changes: 30 additions & 14 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ test:linux:
- jobname: linux-breaking-changes
image: ubuntu:20.04
CC: gcc
- jobname: fedora-breaking-changes-meson
image: fedora:latest
- jobname: linux-TEST-vars
image: ubuntu:20.04
CC: gcc
Expand All @@ -58,8 +60,6 @@ test:linux:
- jobname: linux-asan-ubsan
image: ubuntu:rolling
CC: clang
- jobname: pedantic
image: fedora:latest
- jobname: linux-musl-meson
image: alpine:latest
- jobname: linux32
Expand All @@ -70,6 +70,8 @@ test:linux:
artifacts:
paths:
- t/failed-test-artifacts
reports:
junit: build/meson-logs/testlog.junit.xml
when: on_failure

test:osx:
Expand Down Expand Up @@ -110,16 +112,24 @@ test:osx:
artifacts:
paths:
- t/failed-test-artifacts
reports:
junit: build/meson-logs/testlog.junit.xml
when: on_failure

.windows_before_script: &windows_before_script
# Disabling realtime monitoring fails on some of the runners, but it
# significantly speeds up test execution in the case where it works. We thus
# try our luck, but ignore any failures.
- Set-MpPreference -DisableRealtimeMonitoring $true; $true

build:mingw64:
stage: build
tags:
- saas-windows-medium-amd64
variables:
NO_PERL: 1
before_script:
- Set-MpPreference -DisableRealtimeMonitoring $true
- *windows_before_script
- ./ci/install-sdk.ps1 -directory "git-sdk"
script:
- git-sdk/usr/bin/bash.exe -l -c 'ci/make-test-artifacts.sh artifacts'
Expand All @@ -136,7 +146,7 @@ test:mingw64:
- job: "build:mingw64"
artifacts: true
before_script:
- Set-MpPreference -DisableRealtimeMonitoring $true
- *windows_before_script
- git-sdk/usr/bin/bash.exe -l -c 'tar xf artifacts/artifacts.tar.gz'
- New-Item -Path .git/info -ItemType Directory
- New-Item .git/info/exclude -ItemType File -Value "/git-sdk"
Expand All @@ -150,18 +160,10 @@ test:mingw64:
tags:
- saas-windows-medium-amd64
before_script:
- Set-MpPreference -DisableRealtimeMonitoring $true
- choco install -y git meson ninja openssl
- *windows_before_script
- choco install -y git meson ninja rust-ms
- 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
Expand All @@ -183,6 +185,9 @@ test:msvc-meson:
script:
- meson test -C build --no-rebuild --print-errorlogs --slice $Env:CI_NODE_INDEX/$Env:CI_NODE_TOTAL
parallel: 10
artifacts:
reports:
junit: build/meson-logs/testlog.junit.xml

test:fuzz-smoke-tests:
image: ubuntu:latest
Expand All @@ -207,6 +212,17 @@ static-analysis:
- ./ci/run-static-analysis.sh
- ./ci/check-directional-formatting.bash

rust-analysis:
image: ubuntu:rolling
stage: analyze
needs: [ ]
variables:
jobname: RustAnalysis
before_script:
- ./ci/install-dependencies.sh
script:
- ./ci/run-rust-checks.sh

check-whitespace:
image: ubuntu:latest
stage: analyze
Expand Down
3 changes: 3 additions & 0 deletions .mailmap
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ Fredrik Kuivinen <frekui@gmail.com> <freku045@student.liu.se>
Frédéric Heitzmann <frederic.heitzmann@gmail.com>
Garry Dolley <gdolley@ucla.edu> <gdolley@arpnetworks.com>
Glen Choo <glencbz@gmail.com> <chooglen@google.com>
Greg Hurrell <greg@hurrell.net> <greg.hurrell@datadoghq.com>
Greg Hurrell <greg@hurrell.net> <win@wincent.com>
Greg Price <price@mit.edu> <price@MIT.EDU>
Greg Price <price@mit.edu> <price@ksplice.com>
Heiko Voigt <hvoigt@hvoigt.net> <git-list@hvoigt.net>
Expand Down Expand Up @@ -124,6 +126,7 @@ Jon Loeliger <jdl@jdl.com> <jdl@freescale.org>
Jon Seymour <jon.seymour@gmail.com> <jon@blackcubes.dyndns.org>
Jonathan Nieder <jrnieder@gmail.com> <jrnieder@uchicago.edu>
Jonathan del Strother <jon.delStrother@bestbefore.tv> <maillist@steelskies.com>
Jonathan Tan <jonathantanmy@fastmail.com> <jonathantanmy@google.com>
Josh Triplett <josh@joshtriplett.org> <josh@freedesktop.org>
Josh Triplett <josh@joshtriplett.org> <josht@us.ibm.com>
Julian Phillips <julian@quantumfyre.co.uk> <jp3@quantumfyre.co.uk>
Expand Down
10 changes: 10 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[package]
name = "gitcore"
version = "0.1.0"
edition = "2018"
rust-version = "1.49.0"

[lib]
crate-type = ["staticlib"]

[dependencies]
76 changes: 76 additions & 0 deletions Documentation/BreakingChanges.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,57 @@ A prerequisite for this change is that the ecosystem is ready to support the
"reftable" format. Most importantly, alternative implementations of Git like
JGit, libgit2 and Gitoxide need to support it.

* In new repositories, the default branch name will be `main`. We have been
warning that the default name will change since 675704c74dd (init:
provide useful advice about init.defaultBranch, 2020-12-11). The new name
matches the default branch name used in new repositories by many of the
big Git forges.

* Git will require Rust as a mandatory part of the build process. While Git
already started to adopt Rust in Git 2.49, all parts written in Rust are
optional for the time being. This includes:
+
** The Rust wrapper around libgit.a that is part of "contrib/" and which has
been introduced in Git 2.49.
** Subsystems that have an alternative implementation in Rust to test
interoperability between our C and Rust codebase.
** Newly written features that are not mission critical for a fully functional
Git client.
+
These changes are meant as test balloons to allow distributors of Git to prepare
for Rust becoming a mandatory part of the build process. There will be multiple
milestones for the introduction of Rust:
+
--
1. Initially, with Git 2.52, support for Rust will be auto-detected by Meson and
disabled in our Makefile so that the project can sort out the initial
infrastructure.
2. In Git 2.53, both build systems will default-enable support for Rust.
Consequently, builds will break by default if Rust is not available on the
build host. The use of Rust can still be explicitly disabled via build
flags.
3. In Git 3.0, the build options will be removed and support for Rust is
mandatory.
--
+
You can explicitly ask both Meson and our Makefile-based system to enable Rust
by saying `meson configure -Drust=enabled` and `make WITH_RUST=YesPlease`,
respectively.
+
The Git project will declare the last version before Git 3.0 to be a long-term
support release. This long-term release will receive important bug fixes for at
least four release cycles and security fixes for six release cycles. The Git
project will hand over maintainership of the long-term release to distributors
in case they need to extend the life of that long-term release even further.
Details of how this long-term release will be handed over to the community will
be discussed once the Git project decides to stop officially supporting it.
+
We will evaluate the impact on downstream distributions before making Rust
mandatory in Git 3.0. If we see that the impact on downstream distributions
would be significant, we may decide to defer this change to a subsequent minor
release. This evaluation will also take into account our own experience with
how painful it is to keep Rust an optional component.

=== Removals

* Support for grafting commits has long been superseded by git-replace(1).
Expand Down Expand Up @@ -239,6 +290,31 @@ These features will be removed.
+
The command will be removed.

* Support for `core.commentString=auto` has been deprecated and will
be removed in Git 3.0.
+
cf. <xmqqa59i45wc.fsf@gitster.g>

* Support for `core.preferSymlinkRefs=true` has been deprecated and will be
removed in Git 3.0. Writing symbolic refs as symbolic links will be phased
out in favor of using plain files using the textual representation of
symbolic refs.
+
Symbolic references were initially always stored as a symbolic link. This was
changed in 9b143c6e15 (Teach update-ref about a symbolic ref stored in a
textfile., 2005-09-25), where a new textual symref format was introduced to
store those symbolic refs in a plain file. In 9f0bb90d16
(core.prefersymlinkrefs: use symlinks for .git/HEAD, 2006-05-02), the Git
project switched the default to use the textual symrefs in favor of symbolic
links.
+
The migration away from symbolic links has happened almost 20 years ago by now,
and there is no known reason why one should prefer them nowadays. Furthermore,
symbolic links are not supported on some platforms.
+
Note that only the writing side for such symbolic links is deprecated. Reading
such symbolic links is still supported for now.

== Superseded features that will not be deprecated

Some features have gained newer replacements that aim to improve the design in
Expand Down
6 changes: 6 additions & 0 deletions Documentation/CodingGuidelines
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,12 @@ For C programs:
cases. However, it is recommended to find a more descriptive name wherever
possible to improve the readability and maintainability of the code.

- Bit fields should be defined without a space around the colon. E.g.

unsigned my_field:1;
unsigned other_field:1;
unsigned field_with_longer_name:1;

For Perl programs:

- Most of the C guidelines above apply.
Expand Down
31 changes: 30 additions & 1 deletion Documentation/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ MAN5_TXT += gitformat-bundle.adoc
MAN5_TXT += gitformat-chunk.adoc
MAN5_TXT += gitformat-commit-graph.adoc
MAN5_TXT += gitformat-index.adoc
MAN5_TXT += gitformat-loose.adoc
MAN5_TXT += gitformat-pack.adoc
MAN5_TXT += gitformat-signature.adoc
MAN5_TXT += githooks.adoc
Expand Down Expand Up @@ -119,18 +120,27 @@ TECH_DOCS += ToolsForGit
TECH_DOCS += technical/bitmap-format
TECH_DOCS += technical/build-systems
TECH_DOCS += technical/bundle-uri
TECH_DOCS += technical/commit-graph
TECH_DOCS += technical/directory-rename-detection
TECH_DOCS += technical/hash-function-transition
TECH_DOCS += technical/large-object-promisors
TECH_DOCS += technical/long-running-process-protocol
TECH_DOCS += technical/multi-pack-index
TECH_DOCS += technical/packfile-uri
TECH_DOCS += technical/pack-heuristics
TECH_DOCS += technical/parallel-checkout
TECH_DOCS += technical/partial-clone
TECH_DOCS += technical/platform-support
TECH_DOCS += technical/racy-git
TECH_DOCS += technical/reftable
TECH_DOCS += technical/remembering-renames
TECH_DOCS += technical/repository-version
TECH_DOCS += technical/rerere
TECH_DOCS += technical/scalar
TECH_DOCS += technical/send-pack-pipeline
TECH_DOCS += technical/shallow
TECH_DOCS += technical/sparse-checkout
TECH_DOCS += technical/sparse-index
TECH_DOCS += technical/trivial-merge
TECH_DOCS += technical/unit-tests
SP_ARTICLES += $(TECH_DOCS)
Expand Down Expand Up @@ -497,9 +507,26 @@ $(LINT_DOCS_FSCK_MSGIDS): ../fsck.h fsck-msgids.adoc
$(call mkdir_p_parent_template)
$(QUIET_GEN)$(PERL_PATH) lint-fsck-msgids.perl \
../fsck.h fsck-msgids.adoc $@

lint-docs-fsck-msgids: $(LINT_DOCS_FSCK_MSGIDS)

## Lint: delimited sections
LINT_DOCS_DELIMITED_SECTIONS = $(patsubst %.adoc,.build/lint-docs/delimited-sections/%.ok,$(MAN_TXT))
$(LINT_DOCS_DELIMITED_SECTIONS): lint-delimited-sections.perl
$(LINT_DOCS_DELIMITED_SECTIONS): .build/lint-docs/delimited-sections/%.ok: %.adoc
$(call mkdir_p_parent_template)
$(QUIET_LINT_DELIMSEC)$(PERL_PATH) lint-delimited-sections.perl $< >$@
.PHONY: lint-docs-delimited-sections
lint-docs-delimited-sections: $(LINT_DOCS_DELIMITED_SECTIONS)

## Lint: Documentation style
LINT_DOCS_DOC_STYLE = $(patsubst %.adoc,.build/lint-docs/doc-style/%.ok,$(DOC_DEP_TXT))
$(LINT_DOCS_DOC_STYLE): lint-documentation-style.perl
$(LINT_DOCS_DOC_STYLE): .build/lint-docs/doc-style/%.ok: %.adoc
$(call mkdir_p_parent_template)
$(QUIET_LINT_DOCSTYLE)$(PERL_PATH) lint-documentation-style.perl $< >$@
.PHONY: lint-docs-doc-style
lint-docs-doc-style: $(LINT_DOCS_DOC_STYLE)

lint-docs-manpages:
$(QUIET_GEN)./lint-manpages.sh

Expand Down Expand Up @@ -528,6 +555,8 @@ lint-docs: lint-docs-fsck-msgids
lint-docs: lint-docs-gitlink
lint-docs: lint-docs-man-end-blurb
lint-docs: lint-docs-man-section-order
lint-docs: lint-docs-delimited-sections
lint-docs: lint-docs-doc-style
lint-docs: lint-docs-manpages
lint-docs: lint-docs-meson

Expand Down
Loading
Loading