Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
389 commits
Select commit Hold shift + click to select a range
3c10558
CMakeLists: add default "x64-windows" arch for Visual Studio
PhilipOakley Apr 22, 2021
31f2195
fsmonitor: reintroduce core.useBuiltinFSMonitor
vdye Apr 4, 2022
029348b
ci(vs-build): download the vcpkg artifacts using a dedicated Action
dscho Feb 19, 2021
3d7a8ed
mingw: allow for longer paths in `parse_interpreter()`
dscho Apr 2, 2021
b88a439
compat/vcbuild: document preferred way to build in Visual Studio
dscho May 17, 2021
0ccc1e3
http: optionally send SSL client certificate
pascalmuller Jun 23, 2021
3cd850c
ci: run `contrib/subtree` tests in CI builds
vdye Aug 5, 2021
677b209
CMake: show Win32 and Generator_platform build-option values
PhilipOakley May 10, 2021
9734bc7
init: do parse _all_ core.* settings early
dscho Sep 8, 2021
a2f6369
Enable the built-in FSMonitor as an experimental feature
dscho Mar 5, 2021
ba255eb
hash-object: demonstrate a >4GB/LLP64 problem
PhilipOakley Oct 31, 2021
b1a6529
hash_object_file_literally(): use size_t
PhilipOakley Nov 12, 2021
eb57df1
object-file.c: use size_t for header lengths
PhilipOakley Nov 12, 2021
c2129f4
hash algorithms: use size_t for section lengths
PhilipOakley Nov 12, 2021
8fb6b60
hash-object --stdin: verify that it works with >4GB/LLP64
PhilipOakley Dec 6, 2021
6dfc114
hash-object: add another >4GB/LLP64 test case
PhilipOakley Dec 6, 2021
d38618c
setup: properly use "%(prefix)/" when in WSL
derrickstolee Apr 13, 2022
de49b9e
hash-object: add a >4GB/LLP64 test case using filtered input
PhilipOakley Dec 7, 2021
63d85c2
compat/mingw.c: do not warn when failing to get owner
derrickstolee Apr 13, 2022
232e78d
mingw: $env:TERM="xterm-256color" for newer OSes
rkitover Apr 12, 2022
98d736c
winansi: check result and Buffer before using Name
1480c1 May 28, 2022
e4ff2e1
Add config option `windows.appendAtomically`
sunzhuoshi Jan 15, 2022
6821b1b
vcxproj: allow building with `NO_PERL` again
dscho Mar 29, 2022
23a5b80
vcxproj: require C11
dscho Jun 28, 2022
4cbf48c
vcxproj: ignore the `-pedantic` option
dscho Jun 28, 2022
ce51c4b
vcxproj: include reftable when committing `.vcxproj` files
dscho Jun 28, 2022
4b53100
vcxproj: handle libreftable_test, too
dscho Jun 28, 2022
eef0909
vcxproj: avoid escaping double quotes in the defines
dscho Jun 28, 2022
0e640bd
ci: adjust Azure Pipeline for `runs_on_pool`
dscho Jul 9, 2022
5c7ae16
ci: stop linking the `prove` cache
dscho Jul 9, 2022
351e738
ci: reinstate Azure Pipelines support
dscho Feb 11, 2021
3ec7a9d
azure-pipeline: drop the `GETTEXT_POISON` job
dscho Mar 29, 2022
3da72b6
azure-pipeline: stop hard-coding `apt-get` calls
dscho Mar 29, 2022
d8abffa
azure-pipeline: drop the code to write to/read from a file share
dscho Jul 9, 2022
678a6f6
azure-pipeline: use partial clone/parallel checkout to initialize min…
dscho Jul 9, 2022
907dee9
azure-pipeline: downcase the job name of the `Linux32` job
dscho Jul 9, 2022
227d366
azure-pipeline: run static-analysis on jammy
ttaylorr Feb 8, 2021
9c39bf8
win32/pthread: avoid name clashes with winpthread
dscho Oct 20, 2019
ce57e9d
git-compat-util: avoid redeclaring _DEFAULT_SOURCE
dscho Aug 12, 2022
bf85ce4
Import the source code of mimalloc
dscho Jun 24, 2019
3cdcee1
mimalloc: allow running in Windows Nano Server containers
dscho Oct 18, 2022
b773e72
mimalloc: adjust for building inside Git
dscho Jun 24, 2019
ee710ee
mimalloc: avoid `%z` format
dscho Aug 12, 2022
a6af047
mimalloc: avoid having to link to `psapi` just for mimalloc
dscho Oct 20, 2019
e8bf98e
mimalloc: avoid having to link to `bcrypt` just for mimalloc
dscho Aug 12, 2022
71d9208
mimalloc: offer a build-time option to enable it
dscho Jun 24, 2019
7405e25
mimalloc: make MIMALLOC_SHOW_STATS work with redirected `stderr`
dscho Aug 12, 2022
8951c39
MinGW: link as terminal server aware
rimrul Jul 10, 2022
247b10b
mingw: use mimalloc
dscho Jun 24, 2019
1249926
Merge 'remote-hg-prerequisites' into HEAD
dscho Jun 8, 2018
c1d7652
Merge branch 'drive-prefix'
dscho Jun 8, 2018
6a78c64
Merge branch 'fsync-object-files-always'
dscho Oct 11, 2018
d46dd39
config.mak.uname: add support for clangarm64
dennisameling Oct 4, 2022
9191ee4
Merge pull request #2170 from dscho/gitk-long-cmdline
dscho Apr 26, 2019
0ce7524
Fix Windows version resources
Mortein Nov 2, 2022
6c59151
bswap.h: add support for built-in bswap functions
dennisameling Oct 4, 2022
5dd7d76
ci: create clangarm64-build.yml
dennisameling Oct 4, 2022
5899117
Merge branch 'dont-clean-junctions'
dscho Jul 30, 2019
e1ac7d5
Merge branch 'msys2-python'
dscho May 31, 2019
47ea074
Merge pull request #2375 from assarbad/reintroduce-sideband-config
dscho Oct 30, 2019
7598f0f
Merge pull request #2405 from dscho/mingw-setsockopt
dscho Nov 25, 2019
7a86231
Merge pull request #2449 from dscho/mingw-getcwd-and-symlinks
dscho Jan 3, 2020
b2a469b
Merge pull request #2488 from bmueller84/master
dscho Jan 22, 2020
5b99b61
Merge pull request #2501 from jeffhostetler/clink-debug-curl
dscho Jan 30, 2020
597bbad
Merge pull request #2504 from dscho/access-repo-via-junction
dscho Feb 1, 2020
38e1df1
Merge pull request #2506 from dscho/issue-2283
dscho Feb 11, 2020
bb736b0
Merge pull request #2535 from dscho/schannel-revoke-best-effort
dscho Mar 4, 2020
7996b7d
Merge pull request #2618 from dscho/avoid-d/f-conflict-in-vs/master
dscho May 9, 2020
571041b
Merge 'add-p-many-files'
dscho Jun 8, 2018
11306ea
Merge pull request #2730 from dscho/crlf-aware-git-add-i
dscho Jul 2, 2020
5c3230e
Merge pull request #2714 from lbonanomi/crlf-scissors
dscho Jul 3, 2020
5dfd7c3
Merge pull request #2655 from jglathe/jg/t0014_trace_extra_info
dscho Oct 9, 2020
8ec2a59
Merge 'git-gui/js/intent-to-add'
dscho Oct 18, 2020
5ea7d19
Merge pull request #2974 from derrickstolee/maintenance-and-headless
dscho Jan 11, 2021
adc4197
Merge pull request #2351 from PhilipOakley/vcpkg-tip
dscho Oct 7, 2019
b2d922c
Merge pull request #2915 from dennisameling/windows-arm64-support
dscho Dec 9, 2020
33005ee
Merge pull request #3327 from dennisameling/fix-host-cpu
dscho Jul 19, 2021
741097f
Merge pull request #3150 from dscho/ci-cache-vcpkg-artifacts-g4w
dscho Mar 28, 2021
af0bb08
Merge pull request #3165 from dscho/increase-allowed-length-of-interp…
dscho Apr 3, 2021
d9b8c0f
Merge pull request #3220 from dscho/there-is-no-vs/master-anymore
dscho May 17, 2021
52323bb
Merge pull request #3293 from pascalmuller/http-support-automatically…
dscho Jun 24, 2021
36a9107
Merge pull request #3349 from vdye/feature/ci-subtree-tests
dscho Aug 10, 2021
b4b6bbc
Merge pull request #3306 from PhilipOakley/vs-sln
dscho Oct 12, 2021
4b834cc
Merge pull request #3417 from dscho/initialize-core.symlinks-earlier
dscho Oct 13, 2021
2e47b53
Merge branch 'mark-v4-fsmonitor-experimental' into try-v4-fsmonitor
jeffhostetler Sep 29, 2021
4bc6c6a
Merge pull request #3533 from PhilipOakley/hashliteral_t
dscho Dec 15, 2021
80b0e48
Merge pull request #3791: Various fixes around `safe.directory`
derrickstolee Apr 13, 2022
89e8c02
Merge pull request #3751 from rkitover/native-term
dscho Apr 21, 2022
bc6f61b
Merge pull request #3875 from 1480c1/wine/detect_msys_tty
dscho May 30, 2022
aa21e2d
Merge branch 'optionally-dont-append-atomically-on-windows'
dscho Jun 23, 2022
7a3be5a
Merge branch 'ci-fixes'
dscho Feb 11, 2021
2886e69
Merge pull request #3942 from rimrul/mingw-tsaware
dscho Jul 27, 2022
9890bc3
Merge pull request #4013 from dscho/mimalloc
dscho Sep 8, 2022
2c5e666
Fix Windows version resources (#4092)
dscho Nov 3, 2022
44b61d3
Merge branch 'builtin-swap-functions'
dscho Nov 23, 2022
30b9c17
Add support for CLANGARM64 target (#3916)
dscho Oct 28, 2022
3982c6f
git-gui--askyesno: fix funny text wrapping
dscho Sep 20, 2017
4ac0857
git-gui: provide question helper for retry fallback on Windows
hvoigt Feb 21, 2010
404d76d
git-gui--askyesno: allow overriding the window title
dscho Sep 20, 2017
7aa73cf
git gui: set GIT_ASKPASS=git-gui--askpass if not set yet
dscho Jul 23, 2010
a49623a
respect core.hooksPath, falling back to .git/hooks
dscho Oct 4, 2018
c8cad21
git-gui--askyesno (mingw): use Git for Windows' icon, if available
dscho Sep 20, 2017
e2d5a38
gitk: Unicode file name support
kblees Feb 4, 2012
ecb9750
gitk: Use an external icon file on Windows
sschuberth Jul 22, 2012
e3e9022
Merge 'git-gui' into HEAD
dscho Jun 7, 2018
45c1b86
gitk: fix arrow keys in input fields with Tcl/Tk >= 8.6
dscho Feb 16, 2016
d78f789
Merge branch 'git-gui-hooks-path' of https://github.com/dscho/git-gui
dscho Jul 10, 2018
e4f4a34
gitk: make the "list references" default window width wider
sidecut Jan 21, 2016
02b0c46
Merge branch 'git-gui-askyesno'
dscho Jun 8, 2018
0fa62fd
Merge 'gitk' into HEAD
dscho Jun 7, 2018
d45e369
reset: reinstate support for the deprecated --stdin option
dscho Dec 10, 2019
af2c4c0
Modify the Code of Conduct for Git for Windows
dscho Oct 11, 2019
b7298d9
CONTRIBUTING.md: add guide for first-time contributors
derrickstolee Mar 1, 2018
02f5296
README.md: Add a Windows-specific preamble
dscho Jan 10, 2014
ff79eb4
Add an issue template
shiftkey Feb 18, 2016
2bfa378
Modify the GitHub Pull Request template (to reflect Git for Windows)
Dec 22, 2017
f146746
.github: Add configuration for the Sentiment Bot
dscho Feb 20, 2018
eee1123
Document how $HOME is set on Windows
alejandro5042 Mar 9, 2018
c1c71e2
mingw: deprecate old-style runtime-prefix handling in interpolate_path()
dscho Dec 11, 2015
7939584
Add a GitHub workflow to monitor component updates
dscho Sep 29, 2020
2f345a0
SECURITY.md: document Git for Windows' policies
dscho Aug 23, 2019
bd960da
status: fix for old-style submodules with commondir
sceptical-coder Oct 28, 2022
20d7415
Fix global repository field not being cleared (#4083)
dscho Dec 20, 2022
5f26bfa
Merge branch 'ready-for-upstream'
dscho Oct 11, 2018
8d7f3dc
Win32: make FILETIME conversion functions public
kblees Jul 6, 2013
6a084f6
Win32: dirent.c: Move opendir down
kblees Sep 8, 2013
458b902
mingw: make the dirent implementation pluggable
kblees Sep 8, 2013
025130f
Win32: make the lstat implementation pluggable
kblees Sep 8, 2013
f498642
add infrastructure for read-only file system level caches
kblees Sep 8, 2013
10bc0ac
fscache: add key for GIT_TRACE_FSCACHE
jeffhostetler Jan 24, 2017
9a9ef74
mingw: add a cache below mingw's lstat and dirent implementations
kblees Oct 1, 2013
ae0d457
fscache: remember not-found directories
jeffhostetler Dec 13, 2016
5abfb17
dir.c: make add_excludes aware of fscache during status
jeffhostetler Nov 1, 2017
c789371
fscache: load directories only once
kblees Jun 24, 2014
625859a
fscache: add a test for the dir-not-found optimization
dscho Jan 25, 2017
25642ca
add: use preload-index and fscache for performance
jeffhostetler Nov 22, 2016
28df33a
mem_pool: add GIT_TRACE_MEMPOOL support
benpeart Oct 4, 2018
96ac7d6
fscache: make fscache_enabled() public
jeffhostetler Dec 20, 2017
589dd91
fscache: fscache takes an initial size
benpeart Nov 2, 2018
178bf80
dir.c: regression fix for add_excludes with fscache
jeffhostetler Dec 20, 2017
dd4482c
fetch-pack.c: enable fscache for stats under .git/objects
Nov 22, 2017
e736803
checkout.c: enable fscache for checkout again
Jan 30, 2018
aa316c8
Enable the filesystem cache (fscache) in refresh_index().
benpeart Sep 7, 2018
cc33eea
fscache: use FindFirstFileExW to avoid retrieving the short name
benpeart Oct 23, 2018
4503be0
status: disable and free fscache at the end of the status command
benpeart Nov 1, 2018
348b6bf
fscache: add GIT_TEST_FSCACHE support
benpeart Oct 4, 2018
529fdf7
fscache: add fscache hit statistics
benpeart Sep 25, 2018
d79c547
fscache: remember the reparse tag for each entry
dscho Dec 11, 2018
86a31e0
fscache: update fscache to be thread specific instead of global
benpeart Oct 4, 2018
8882fc7
fscache: implement an FSCache-aware is_mount_point()
dscho Dec 11, 2018
cb29c86
fscache: teach fscache to use mempool
benpeart Nov 2, 2018
23aeb81
fscache: make fscache_enable() thread safe
benpeart Nov 16, 2018
dee7495
fscache: teach fscache to use NtQueryDirectoryFile
benpeart Nov 15, 2018
954dd4a
unpack-trees: enable fscache for sparse-checkout
derrickstolee Jun 12, 2019
ddfc775
clean: make use of FSCache
dscho Dec 11, 2018
caf4f79
Merge branch 'fscache'
dscho Nov 15, 2018
805a875
Merge pull request #994 from jeffhostetler/jeffhostetler/fscache_nfd
dscho Jun 8, 2018
e25ff08
Merge pull request #971 from jeffhostetler/jeffhostetler/add_preload_…
dscho Jun 8, 2018
6ebb56e
Merge pull request #1344 from jeffhostetler/perf_add_excludes_with_fs…
dscho Jun 8, 2018
e1191a6
Merge pull request #1426 from atetubou/fetch_pack
dscho Jun 8, 2018
6b88b21
Merge pull request #1468 from atetubou/fscache_checkout_flush
dscho Oct 12, 2018
1b4d89b
Merge pull request #1827 from benpeart/fscache_refresh_index
dscho Sep 27, 2018
ec4cd6e
Merge pull request #1908 from benpeart/FindFirstFileEx-gfw
dscho Nov 5, 2018
5199466
Merge pull request #1909 from benpeart/free-fscache-after-status-gfw
dscho Nov 5, 2018
425b107
Merge pull request #1911 from benpeart/git_test_fscache-gfw
dscho Nov 5, 2018
9ab65d5
Merge pull request #1910 from benpeart/fscache_statistics-gfw
dscho Nov 16, 2018
e0f0e9d
Merge remote-tracking branch 'benpeart/fscache-per-thread-gfw'
dscho Nov 16, 2018
a03c220
Merge pull request #1934 from benpeart/fscache-thread-safe-enable-gfw
dscho Nov 26, 2018
e42ff2c
Merge pull request #1937 from benpeart/fscache-NtQueryDirectoryFile-gfw
dscho Nov 27, 2018
fbd0caa
Merge branch 'fscache-and-sparse-checkout'
derrickstolee Jun 18, 2019
67ec4ec
Merge branch 'dont-clean-junctions-fscache'
dscho Jul 23, 2019
6f59661
mingw: Support `git_terminal_prompt` with more terminals
kblees Mar 19, 2015
188e93e
strbuf_readlink: don't call readlink twice if hint is the exact link …
kblees May 11, 2015
700b0a4
pack-objects (mingw): demonstrate a segmentation fault with large deltas
vangdfang Jan 9, 2014
36a4872
compat/terminal.c: only use the Windows console if bash 'read -r' fails
kblees May 9, 2015
abe36db
strbuf_readlink: support link targets that exceed PATH_MAX
kblees May 11, 2015
1dd46b0
mingw: support long paths
kblees Jul 28, 2015
da59309
mingw (git_terminal_prompt): do fall back to CONIN$/CONOUT$ method
dscho Feb 23, 2018
cea7f4c
lockfile.c: use is_dir_sep() instead of hardcoded '/' checks
kblees May 11, 2015
684d8af
Win32: fix 'lstat("dir/")' with long paths
kblees Jul 4, 2014
1c21b98
compat/fsmonitor/fsm-*-win32: support long paths
jeffhostetler Mar 25, 2022
4bc3e07
clean: suggest using `core.longPaths` if paths are too long to remove
mathstuf Apr 22, 2022
860df69
Unbreak interactive GPG prompt upon signing
dscho Sep 6, 2016
2413b6c
Win32: don't call GetFileAttributes twice in mingw_lstat()
kblees May 12, 2015
559a3db
Win32: implement stat() with symlink support
kblees May 15, 2015
09304ec
Win32: remove separate do_lstat() function
kblees May 11, 2015
54e128e
Win32: let mingw_lstat() error early upon problems with reparse points
kblees May 23, 2015
0cfafc2
mingw: teach fscache and dirent about symlinks
kblees Jan 10, 2017
92750eb
Win32: lstat(): return adequate stat.st_size for symlinks
kblees May 15, 2015
89ccc03
Win32: factor out retry logic
kblees May 19, 2015
b668a81
Win32: change default of 'core.symlinks' to false
kblees May 23, 2015
2ce7fd0
Win32: add symlink-specific error codes
kblees May 15, 2015
4d1b34b
Win32: mingw_unlink: support symlinks to directories
kblees May 23, 2015
fc30cf9
Win32: mingw_rename: support renaming symlinks
kblees May 19, 2015
67176a5
Win32: mingw_chdir: change to symlink-resolved directory
kblees May 23, 2015
9d2e46b
Win32: implement readlink()
kblees May 23, 2015
ea6c7dd
mingw: lstat: compute correct size for symlinks
billziss-gh May 28, 2020
2bacac4
Win32: implement basic symlink() functionality (file symlinks only)
kblees May 23, 2015
e1e6cd1
Win32: symlink: add support for symlinks to directories
kblees May 23, 2015
c579749
mingw: try to create symlinks without elevated permissions
dscho May 30, 2017
b040e8e
mingw: explicitly specify with which cmd to prefix the cmdline
dscho Jul 20, 2017
2fdad18
mingw: introduce code to detect whether we're inside a Windows container
zcube Apr 23, 2018
9fa53dc
Win32: symlink: move phantom symlink creation to a separate function
piscisaureus Oct 26, 2018
5466252
mingw: when path_lookup() failed, try BusyBox
dscho Jul 20, 2017
cb11fdc
mingw: when running in a Windows container, try to rename() harder
zcube Apr 23, 2018
fdb4cad
Introduce helper to create symlinks that knows about index_state
dscho Feb 11, 2019
ac97db2
test-lib: avoid unnecessary Perl invocation
dscho Aug 5, 2017
08801bc
mingw: emulate stat() a little more faithfully
dscho Mar 2, 2020
48889b2
mingw: move the file_attr_to_st_mode() function definition
zcube Apr 23, 2018
b4cb448
mingw: allow to specify the symlink type in .gitattributes
piscisaureus Oct 26, 2018
2113589
tests: replace mingw_test_cmp with a helper in C
dscho Jun 7, 2018
bfe212a
mingw: special-case index entries for symlinks with buggy size
dscho Jun 4, 2020
d5144ce
mingw: Windows Docker volumes are *not* symbolic links
dscho Apr 23, 2018
a960df7
Win32: symlink: add test for `symlink` attribute
piscisaureus Oct 26, 2018
bc3d3ab
test-tool: learn to act as a drop-in replacement for `iconv`
dscho Jul 20, 2017
0c909eb
tests(mingw): if `iconv` is unavailable, use `test-helper --iconv`
dscho Jul 20, 2017
ab9f437
gitattributes: mark .png files as binary
dscho Oct 11, 2018
9f2babb
tests: move test PNGs into t/lib-diff/
dscho Aug 5, 2017
93dda77
tests: only override sort & find if there are usable ones in /usr/bin/
dscho Jul 17, 2017
f13b646
tests: use the correct path separator with BusyBox
dscho Nov 19, 2018
e498501
mingw: only use Bash-ism `builtin pwd -W` when available
dscho Jun 29, 2017
479577b
tests (mingw): remove Bash-specific pwd option
dscho Jun 30, 2017
017d3e0
test-lib: add BUSYBOX prerequisite
dscho Jul 19, 2017
7b339ab
t0021: use Windows path when appropriate
dscho Aug 4, 2017
4a33ff1
t5003: use binary file from t/lib-diff/
dscho Aug 5, 2017
4f84df7
t5532: workaround for BusyBox on Windows
dscho Jul 21, 2017
af59092
t5605: special-case hardlink test for BusyBox-w32
dscho Jul 21, 2017
5be343f
t5813: allow for $PWD to be a Windows path
dscho Jul 5, 2017
388093d
t9200: skip tests when $PWD contains a colon
dscho Jul 7, 2017
7f006f1
mingw: kill child processes in a gentler way
dscho May 17, 2017
e412431
mingw: add a Makefile target to copy test artifacts
dscho Jul 19, 2017
31a7626
mingw: really handle SIGINT
dscho Apr 22, 2018
49dc0b9
mingw: do not call xutftowcs_path in mingw_mktemp
neerajsi-msft Oct 27, 2021
048b598
Partially un-revert "editor: save and reset terminal after calling ED…
dscho Nov 25, 2021
77788a0
Merge branch 'gitk-and-git-gui-patches'
dscho Oct 11, 2018
d4cb68b
Merge branch 'long-paths'
dscho Nov 15, 2018
b771cee
Merge branch 'fix-v4-fsmonitor-long-paths' into try-v4-fsmonitor
jeffhostetler Sep 29, 2021
3a67adc
Merge pull request #3817 from mathstuf/name-too-long-advice
dscho Apr 22, 2022
d6a3d6e
Merge branch 'msys2'
dscho Nov 15, 2018
0626662
Merge branch 'kblees/kb/symlinks'
dscho Nov 15, 2018
dc6224e
Merge 'docker-volumes-are-no-symlinks'
dscho Oct 12, 2018
e4744fa
Merge pull request #1897 from piscisaureus/symlink-attr
dscho Oct 31, 2018
8ac38a7
Merge branch 'busybox-w32'
dscho Feb 7, 2019
ed7ce4c
Merge pull request #1170 from dscho/mingw-kill-process
dscho Oct 11, 2018
383b1a7
Merge pull request #3492 from dscho/ns/batched-fsync
vdye Oct 28, 2021
63f5ba8
Merge branch 'un-revert-editor-save-and-reset'
dscho Jan 15, 2022
6206f0b
Merge branch 'phase-out-reset-stdin'
dscho Jun 8, 2018
e440a4d
Merge branch 'deprecate-old-runtime-prefix-path-interpolation'
dscho Oct 15, 2021
c596745
Merge pull request #2837 from dscho/monitor-component-updates
dscho Oct 7, 2020
b03dafd
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
86 changes: 86 additions & 0 deletions Documentation/RelNotes/2.30.7.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
Git v2.30.7 Release Notes
=========================

This release addresses the security issues CVE-2022-41903 and
CVE-2022-23521.


Fixes since v2.30.6
-------------------

* CVE-2022-41903:

git log has the ability to display commits using an arbitrary
format with its --format specifiers. This functionality is also
exposed to git archive via the export-subst gitattribute.

When processing the padding operators (e.g., %<(, %<|(, %>(,
%>>(, or %><( ), an integer overflow can occur in
pretty.c::format_and_pad_commit() where a size_t is improperly
stored as an int, and then added as an offset to a subsequent
memcpy() call.

This overflow can be triggered directly by a user running a
command which invokes the commit formatting machinery (e.g., git
log --format=...). It may also be triggered indirectly through
git archive via the export-subst mechanism, which expands format
specifiers inside of files within the repository during a git
archive.

This integer overflow can result in arbitrary heap writes, which
may result in remote code execution.

* CVE-2022-23521:

gitattributes are a mechanism to allow defining attributes for
paths. These attributes can be defined by adding a `.gitattributes`
file to the repository, which contains a set of file patterns and
the attributes that should be set for paths matching this pattern.

When parsing gitattributes, multiple integer overflows can occur
when there is a huge number of path patterns, a huge number of
attributes for a single pattern, or when the declared attribute
names are huge.

These overflows can be triggered via a crafted `.gitattributes` file
that may be part of the commit history. Git silently splits lines
longer than 2KB when parsing gitattributes from a file, but not when
parsing them from the index. Consequentially, the failure mode
depends on whether the file exists in the working tree, the index or
both.

This integer overflow can result in arbitrary heap reads and writes,
which may result in remote code execution.

Credit for finding CVE-2022-41903 goes to Joern Schneeweisz of GitLab.
An initial fix was authored by Markus Vervier of X41 D-Sec. Credit for
finding CVE-2022-23521 goes to Markus Vervier and Eric Sesterhenn of X41
D-Sec. This work was sponsored by OSTIF.

The proposed fixes have been polished and extended to cover additional
findings by Patrick Steinhardt of GitLab, with help from others on the
Git security mailing list.

Patrick Steinhardt (21):
attr: fix overflow when upserting attribute with overly long name
attr: fix out-of-bounds read with huge attribute names
attr: fix integer overflow when parsing huge attribute names
attr: fix out-of-bounds write when parsing huge number of attributes
attr: fix out-of-bounds read with unreasonable amount of patterns
attr: fix integer overflow with more than INT_MAX macros
attr: harden allocation against integer overflows
attr: fix silently splitting up lines longer than 2048 bytes
attr: ignore attribute lines exceeding 2048 bytes
attr: ignore overly large gitattributes files
pretty: fix out-of-bounds write caused by integer overflow
pretty: fix out-of-bounds read when left-flushing with stealing
pretty: fix out-of-bounds read when parsing invalid padding format
pretty: fix adding linefeed when placeholder is not expanded
pretty: fix integer overflow in wrapping format
utf8: fix truncated string lengths in `utf8_strnwidth()`
utf8: fix returning negative string width
utf8: fix overflow when returning string width
utf8: fix checking for glyph width in `strbuf_utf8_replace()`
utf8: refactor `strbuf_utf8_replace` to not rely on preallocated buffer
pretty: restrict input lengths for padding and wrapping formats

5 changes: 5 additions & 0 deletions Documentation/RelNotes/2.31.6.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Git v2.31.6 Release Notes
=========================

This release merges the security fix that appears in v2.30.7; see
the release notes for that version for details.
8 changes: 8 additions & 0 deletions Documentation/RelNotes/2.32.5.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Git v2.32.5 Release Notes
=========================

This release merges the security fix that appears in v2.30.7; see
the release notes for that version for details.

In addition, included are additional code for "git fsck" to check
for questionable .gitattributes files.
5 changes: 5 additions & 0 deletions Documentation/RelNotes/2.33.6.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Git v2.33.6 Release Notes
=========================

This release merges the security fix that appears in v2.30.7; see
the release notes for that version for details.
5 changes: 5 additions & 0 deletions Documentation/RelNotes/2.34.6.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Git v2.34.6 Release Notes
=========================

This release merges the security fix that appears in v2.30.7; see
the release notes for that version for details.
5 changes: 5 additions & 0 deletions Documentation/RelNotes/2.35.6.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Git v2.35.6 Release Notes
=========================

This release merges the security fix that appears in v2.30.7; see
the release notes for that version for details.
5 changes: 5 additions & 0 deletions Documentation/RelNotes/2.36.4.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Git v2.36.4 Release Notes
=========================

This release merges the security fix that appears in v2.30.7; see
the release notes for that version for details.
5 changes: 5 additions & 0 deletions Documentation/RelNotes/2.37.5.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Git v2.37.5 Release Notes
=========================

This release merges the security fix that appears in v2.30.7; see
the release notes for that version for details.
5 changes: 5 additions & 0 deletions Documentation/RelNotes/2.38.3.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Git v2.38.3 Release Notes
=========================

This release merges the security fix that appears in v2.30.7; see
the release notes for that version for details.
5 changes: 5 additions & 0 deletions Documentation/RelNotes/2.39.1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Git v2.39.1 Release Notes
=========================

This release merges the security fix that appears in v2.30.7; see
the release notes for that version for details.
12 changes: 12 additions & 0 deletions Documentation/fsck-msgids.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,18 @@
`fullPathname`::
(WARN) A path contains the full path starting with "/".

`gitattributesBlob`::
(ERROR) A non-blob found at `.gitattributes`.

`gitattributesLarge`::
(ERROR) The `.gitattributes` blob is too large.

`gitattributesLineLength`::
(ERROR) The `.gitattributes` blob contains too long lines.

`gitattributesMissing`::
(ERROR) Unable to read `.gitattributes` blob.

`gitattributesSymlink`::
(INFO) `.gitattributes` is a symlink.

Expand Down
2 changes: 1 addition & 1 deletion GIT-VERSION-GEN
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh

GVF=GIT-VERSION-FILE
DEF_VER=v2.39.0
DEF_VER=v2.39.1

LF='
'
Expand Down
2 changes: 1 addition & 1 deletion RelNotes
Loading