Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
331 commits
Select commit Hold shift + click to select a range
4c0a4a9
cmake(): allow setting HOST_CPU for cross-compilation
dennisameling Jul 19, 2021
269f1a1
ci(vs-build): download the vcpkg artifacts using a dedicated Action
dscho Feb 19, 2021
0bbe622
mingw: allow for longer paths in `parse_interpreter()`
dscho Apr 2, 2021
d7b762a
compat/vcbuild: document preferred way to build in Visual Studio
dscho May 17, 2021
bccb9e7
http: optionally send SSL client certificate
pascalmuller Jun 23, 2021
46578ac
ci: run `contrib/subtree` tests in CI builds
vdye Aug 5, 2021
107e29a
CMake: default Visual Studio generator has changed
PhilipOakley Jul 1, 2021
5115238
hash-object: demonstrate a >4GB/LLP64 problem
PhilipOakley Oct 31, 2021
7d86aaf
.gitignore: add Visual Studio CMakeSetting.json file
PhilipOakley Apr 24, 2021
60c04af
hash_object_file_literally(): use size_t
PhilipOakley Nov 12, 2021
31b9681
CMakeLists: add default "x64-windows" arch for Visual Studio
PhilipOakley Apr 22, 2021
f31959d
object-file.c: use size_t for header lengths
PhilipOakley Nov 12, 2021
7ebf6f2
CMake: show Win32 and Generator_platform build-option values
PhilipOakley May 10, 2021
4cafe5b
init: do parse _all_ core.* settings early
dscho Sep 8, 2021
51ea61e
Enable the built-in FSMonitor as an experimental feature
dscho Mar 5, 2021
a87f83a
hash algorithms: use size_t for section lengths
PhilipOakley Nov 12, 2021
585bb5d
hash-object --stdin: verify that it works with >4GB/LLP64
PhilipOakley Dec 6, 2021
6344040
hash-object: add another >4GB/LLP64 test case
PhilipOakley Dec 6, 2021
8eb9bb2
setup: properly use "%(prefix)/" when in WSL
derrickstolee Apr 13, 2022
2db4ab3
hash-object: add a >4GB/LLP64 test case using filtered input
PhilipOakley Dec 7, 2021
a3dd0bc
compat/mingw.c: do not warn when failing to get owner
derrickstolee Apr 13, 2022
220e95f
mingw: $env:TERM="xterm-256color" for newer OSes
rkitover Apr 12, 2022
db272b6
winansi: check result and Buffer before using Name
1480c1 May 28, 2022
f2faaaf
Add config option `windows.appendAtomically`
sunzhuoshi Jan 15, 2022
8746017
mingw: change core.fsyncObjectFiles = 1 by default
dscho Sep 4, 2017
91ff569
vcxproj: allow building with `NO_PERL` again
dscho Mar 29, 2022
f51cd73
vcxproj: require C11
dscho Jun 28, 2022
23f5c84
vcxproj: ignore the `-pedantic` option
dscho Jun 28, 2022
170db65
vcxproj: include reftable when committing `.vcxproj` files
dscho Jun 28, 2022
fdfc5ae
vcxproj: handle libreftable_test, too
dscho Jun 28, 2022
02d2977
vcxproj: avoid escaping double quotes in the defines
dscho Jun 28, 2022
5c7aebf
ci: adjust Azure Pipeline for `runs_on_pool`
dscho Jul 9, 2022
ab6345c
ci: stop linking the `prove` cache
dscho Jul 9, 2022
92f8086
ci: reinstate Azure Pipelines support
dscho Feb 11, 2021
ed5deb1
azure-pipeline: drop the `GETTEXT_POISON` job
dscho Mar 29, 2022
bba23ce
azure-pipeline: stop hard-coding `apt-get` calls
dscho Mar 29, 2022
e00d24a
azure-pipeline: drop the code to write to/read from a file share
dscho Jul 9, 2022
c5202db
azure-pipeline: use partial clone/parallel checkout to initialize min…
dscho Jul 9, 2022
2dd5fab
azure-pipeline: downcase the job name of the `Linux32` job
dscho Jul 9, 2022
3fcad41
config.mak.uname: add support for clangarm64
dennisameling Oct 4, 2022
f41f3b2
azure-pipeline: run static-analysis on jammy
ttaylorr Feb 8, 2021
0b81fad
MinGW: link as terminal server aware
rimrul Jul 10, 2022
08e9b07
Fix Windows version resources
Mortein Nov 2, 2022
a4a3fb9
bswap.h: add support for built-in bswap functions
dennisameling Oct 4, 2022
7ec4f13
ci: create clangarm64-build.yml
dennisameling Oct 4, 2022
dd2ea10
status: fix for old-style submodules with commondir
sceptical-coder Oct 28, 2022
c3ca238
windows: skip linking `git-<command>` for built-ins
dscho Jan 27, 2023
c389eb9
http: optionally load libcurl lazily
dscho May 6, 2023
db2c476
http: support lazy-loading libcurl also on Windows
dscho May 7, 2023
256c941
Merge 'remote-hg-prerequisites' into HEAD
dscho Jun 8, 2018
83acbeb
http: when loading libcurl lazily, allow for multiple SSL backends
dscho May 7, 2023
0c218e6
Merge branch 'drive-prefix'
dscho Jun 8, 2018
e493c1a
windows: fix Repository>Explore Working Copy
dscho Mar 21, 2023
7400bc7
mingw: do load libcurl dynamically by default
dscho May 7, 2023
7e064cc
Merge branch 'dont-clean-junctions'
dscho Jul 30, 2019
38e593f
Merge branch 'msys2-python'
dscho May 31, 2019
3601a4e
Merge branch 'mimalloc-v2.0.9'
dscho Sep 8, 2022
29416ed
Merge pull request #2375 from assarbad/reintroduce-sideband-config
dscho Oct 30, 2019
f87f254
Merge pull request #2405 from dscho/mingw-setsockopt
dscho Nov 25, 2019
a7a46df
Merge pull request #2449 from dscho/mingw-getcwd-and-symlinks
dscho Jan 3, 2020
e51a0a3
Merge pull request #2488 from bmueller84/master
dscho Jan 22, 2020
ebe257c
Merge pull request #2501 from jeffhostetler/clink-debug-curl
dscho Jan 30, 2020
dbaf0e4
Merge pull request #2504 from dscho/access-repo-via-junction
dscho Feb 1, 2020
7ef487d
Merge pull request #2506 from dscho/issue-2283
dscho Feb 11, 2020
001a8d2
Merge pull request #2535 from dscho/schannel-revoke-best-effort
dscho Mar 4, 2020
9ec018b
Merge pull request #2618 from dscho/avoid-d/f-conflict-in-vs/master
dscho May 9, 2020
ac3dbbe
Merge 'add-p-many-files'
dscho Jun 8, 2018
2e094f1
Merge pull request #2730 from dscho/crlf-aware-git-add-i
dscho Jul 2, 2020
6d440a5
Merge pull request #2714 from lbonanomi/crlf-scissors
dscho Jul 3, 2020
350f6f8
Merge pull request #2655 from jglathe/jg/t0014_trace_extra_info
dscho Oct 9, 2020
81ae264
Merge 'git-gui/js/intent-to-add'
dscho Oct 18, 2020
27a4d3e
Merge pull request #2974 from derrickstolee/maintenance-and-headless
dscho Jan 11, 2021
3488109
cmake: install headless-git. (#4338)
dscho Mar 13, 2023
d2c334c
Merge pull request #2351 from PhilipOakley/vcpkg-tip
dscho Oct 7, 2019
fcaa458
Merge pull request #2915 from dennisameling/windows-arm64-support
dscho Dec 9, 2020
7072e2b
Merge pull request #3327 from dennisameling/fix-host-cpu
dscho Jul 19, 2021
f432be1
Merge pull request #3150 from dscho/ci-cache-vcpkg-artifacts-g4w
dscho Mar 28, 2021
00cfd45
Merge pull request #3165 from dscho/increase-allowed-length-of-interp…
dscho Apr 3, 2021
8603564
Merge pull request #3220 from dscho/there-is-no-vs/master-anymore
dscho May 17, 2021
25c5cc7
Merge pull request #3293 from pascalmuller/http-support-automatically…
dscho Jun 24, 2021
61d713e
Merge pull request #3349 from vdye/feature/ci-subtree-tests
dscho Aug 10, 2021
5339577
Merge pull request #3306 from PhilipOakley/vs-sln
dscho Oct 12, 2021
209b3e8
Merge pull request #3417 from dscho/initialize-core.symlinks-earlier
dscho Oct 13, 2021
a548c62
Merge branch 'mark-v4-fsmonitor-experimental' into try-v4-fsmonitor
jeffhostetler Sep 29, 2021
e1152b2
Merge pull request #3533 from PhilipOakley/hashliteral_t
dscho Dec 15, 2021
f716194
Merge pull request #3791: Various fixes around `safe.directory`
derrickstolee Apr 13, 2022
c3e2ab1
Merge pull request #3751 from rkitover/native-term
dscho Apr 21, 2022
dc744cc
Merge pull request #3875 from 1480c1/wine/detect_msys_tty
dscho May 30, 2022
69e0e58
Merge branch 'optionally-dont-append-atomically-on-windows'
dscho Jun 23, 2022
add187c
Merge branch 'fsync-object-files-always'
dscho Oct 11, 2018
b9f664a
Merge branch 'ci-fixes'
dscho Feb 11, 2021
5f909d7
Merge pull request #3942 from rimrul/mingw-tsaware
dscho Jul 27, 2022
8b1fc75
Fix Windows version resources (#4092)
dscho Nov 3, 2022
cf7eac3
Merge branch 'builtin-swap-functions'
dscho Nov 23, 2022
6c50ecd
Add support for CLANGARM64 target (#3916)
dscho Oct 28, 2022
eebf21a
Fix global repository field not being cleared (#4083)
dscho Dec 20, 2022
89fc416
Skip linking the "dashed" `git-<command>`s for built-ins (#4252)
dscho Jan 31, 2023
b559960
Git GUI: fix Repository>Explore Working Copy (#4357)
dscho Mar 21, 2023
1f81003
Lazy load libcurl, allowing for an SSL/TLS backend-specific libcurl (…
dscho May 15, 2023
d6530a1
Win32: make FILETIME conversion functions public
kblees Jul 6, 2013
d2516e6
Win32: dirent.c: Move opendir down
kblees Sep 8, 2013
47599bc
mingw: make the dirent implementation pluggable
kblees Sep 8, 2013
363c7cb
Win32: make the lstat implementation pluggable
kblees Sep 8, 2013
7077efd
add infrastructure for read-only file system level caches
kblees Sep 8, 2013
046c50b
mingw: add a cache below mingw's lstat and dirent implementations
kblees Oct 1, 2013
91e79a0
fscache: load directories only once
kblees Jun 24, 2014
1e3287b
Merge branch 'ready-for-upstream'
dscho Oct 11, 2018
063de26
fscache: add key for GIT_TRACE_FSCACHE
jeffhostetler Jan 24, 2017
39b6eba
dir.c: make add_excludes aware of fscache during status
jeffhostetler Nov 1, 2017
4f22e39
fscache: remember not-found directories
jeffhostetler Dec 13, 2016
c7c8fb2
fscache: make fscache_enabled() public
jeffhostetler Dec 20, 2017
4715d48
fscache: add a test for the dir-not-found optimization
dscho Jan 25, 2017
6372dc8
add: use preload-index and fscache for performance
jeffhostetler Nov 22, 2016
94657c8
dir.c: regression fix for add_excludes with fscache
jeffhostetler Dec 20, 2017
88f48a3
fetch-pack.c: enable fscache for stats under .git/objects
Nov 22, 2017
d74314b
checkout.c: enable fscache for checkout again
Jan 30, 2018
39c3752
Enable the filesystem cache (fscache) in refresh_index().
benpeart Sep 7, 2018
0136273
mem_pool: add GIT_TRACE_MEMPOOL support
benpeart Oct 4, 2018
a9fb296
fscache: fscache takes an initial size
benpeart Nov 2, 2018
f9b5ea2
fscache: update fscache to be thread specific instead of global
benpeart Oct 4, 2018
40675f9
fscache: use FindFirstFileExW to avoid retrieving the short name
benpeart Oct 23, 2018
039eab9
status: disable and free fscache at the end of the status command
benpeart Nov 1, 2018
488adea
fscache: add GIT_TEST_FSCACHE support
benpeart Oct 4, 2018
37429da
fscache: add fscache hit statistics
benpeart Sep 25, 2018
a41b646
fscache: teach fscache to use mempool
benpeart Nov 2, 2018
fa663c8
fscache: make fscache_enable() thread safe
benpeart Nov 16, 2018
49e7a2d
fscache: teach fscache to use NtQueryDirectoryFile
benpeart Nov 15, 2018
0b3d932
fscache: remember the reparse tag for each entry
dscho Dec 11, 2018
34ee57c
fscache: implement an FSCache-aware is_mount_point()
dscho Dec 11, 2018
82e8446
unpack-trees: enable fscache for sparse-checkout
derrickstolee Jun 12, 2019
9bb2d36
clean: make use of FSCache
dscho Dec 11, 2018
122cb43
gitk: Unicode file name support
kblees Feb 4, 2012
f7fe718
git-gui--askyesno: fix funny text wrapping
dscho Sep 20, 2017
3fc9a51
gitk: Use an external icon file on Windows
sschuberth Jul 22, 2012
c1378c8
git-gui: provide question helper for retry fallback on Windows
hvoigt Feb 21, 2010
cd568e8
git-gui--askyesno: allow overriding the window title
dscho Sep 20, 2017
86f611c
gitk: fix arrow keys in input fields with Tcl/Tk >= 8.6
dscho Feb 16, 2016
bb4e3f4
git gui: set GIT_ASKPASS=git-gui--askpass if not set yet
dscho Jul 23, 2010
c60a6f9
respect core.hooksPath, falling back to .git/hooks
dscho Oct 4, 2018
77e6495
git-gui--askyesno (mingw): use Git for Windows' icon, if available
dscho Sep 20, 2017
7a355b6
gitk: make the "list references" default window width wider
sidecut Jan 21, 2016
f8a0b03
Merge 'git-gui' into HEAD
dscho Jun 7, 2018
3f96aa9
Merge branch 'git-gui-hooks-path' of https://github.com/dscho/git-gui
dscho Jul 10, 2018
207c55d
Merge branch 'git-gui-askyesno'
dscho Jun 8, 2018
ccae74e
Merge branch 'fscache'
dscho Nov 15, 2018
dd8a9c5
Merge 'gitk' into HEAD
dscho Jun 7, 2018
bcbaa80
Merge pull request #994 from jeffhostetler/jeffhostetler/fscache_nfd
dscho Jun 8, 2018
dff8237
Merge pull request #971 from jeffhostetler/jeffhostetler/add_preload_…
dscho Jun 8, 2018
4e514b0
Merge pull request #1344 from jeffhostetler/perf_add_excludes_with_fs…
dscho Jun 8, 2018
2e8725d
Merge pull request #1426 from atetubou/fetch_pack
dscho Jun 8, 2018
3c5c704
Merge pull request #1468 from atetubou/fscache_checkout_flush
dscho Oct 12, 2018
0dc2874
Merge pull request #1827 from benpeart/fscache_refresh_index
dscho Sep 27, 2018
5dad60c
Merge pull request #1908 from benpeart/FindFirstFileEx-gfw
dscho Nov 5, 2018
0b2ef9c
Merge pull request #1909 from benpeart/free-fscache-after-status-gfw
dscho Nov 5, 2018
e4cec1a
Merge pull request #1911 from benpeart/git_test_fscache-gfw
dscho Nov 5, 2018
f253a95
Merge pull request #1910 from benpeart/fscache_statistics-gfw
dscho Nov 16, 2018
08e72fa
Merge remote-tracking branch 'benpeart/fscache-per-thread-gfw'
dscho Nov 16, 2018
9d619f2
Merge pull request #1934 from benpeart/fscache-thread-safe-enable-gfw
dscho Nov 26, 2018
eb39b24
Merge pull request #1937 from benpeart/fscache-NtQueryDirectoryFile-gfw
dscho Nov 27, 2018
0a7cc63
Merge branch 'fscache-and-sparse-checkout'
derrickstolee Jun 18, 2019
f0a8046
mingw: Support `git_terminal_prompt` with more terminals
kblees Mar 19, 2015
b368524
pack-objects (mingw): demonstrate a segmentation fault with large deltas
vangdfang Jan 9, 2014
eee72a7
compat/terminal.c: only use the Windows console if bash 'read -r' fails
kblees May 9, 2015
e28db14
mingw: support long paths
kblees Jul 28, 2015
f28b98c
mingw (git_terminal_prompt): do fall back to CONIN$/CONOUT$ method
dscho Feb 23, 2018
b1c5501
Merge branch 'dont-clean-junctions-fscache'
dscho Jul 23, 2019
23cd1ad
Win32: fix 'lstat("dir/")' with long paths
kblees Jul 4, 2014
ebaa689
compat/fsmonitor/fsm-*-win32: support long paths
jeffhostetler Mar 25, 2022
3a9d1ba
clean: suggest using `core.longPaths` if paths are too long to remove
mathstuf Apr 22, 2022
bb13a59
strbuf_readlink: don't call readlink twice if hint is the exact link …
kblees May 11, 2015
1b8f49e
strbuf_readlink: support link targets that exceed PATH_MAX
kblees May 11, 2015
46b0ded
lockfile.c: use is_dir_sep() instead of hardcoded '/' checks
kblees May 11, 2015
37c2e28
Win32: don't call GetFileAttributes twice in mingw_lstat()
kblees May 12, 2015
1557155
Win32: implement stat() with symlink support
kblees May 15, 2015
2ce2208
Win32: remove separate do_lstat() function
kblees May 11, 2015
beebbdb
Win32: let mingw_lstat() error early upon problems with reparse points
kblees May 23, 2015
3931a56
mingw: teach fscache and dirent about symlinks
kblees Jan 10, 2017
334d3e0
Win32: lstat(): return adequate stat.st_size for symlinks
kblees May 15, 2015
c0b3608
Win32: factor out retry logic
kblees May 19, 2015
a08cfe5
Win32: change default of 'core.symlinks' to false
kblees May 23, 2015
0e29aa7
Win32: add symlink-specific error codes
kblees May 15, 2015
2294f8e
Win32: mingw_unlink: support symlinks to directories
kblees May 23, 2015
1fc8dad
Unbreak interactive GPG prompt upon signing
dscho Sep 6, 2016
a15cc39
Win32: mingw_rename: support renaming symlinks
kblees May 19, 2015
5f105e5
Win32: mingw_chdir: change to symlink-resolved directory
kblees May 23, 2015
8d3c556
Win32: implement readlink()
kblees May 23, 2015
d92a1f8
mingw: lstat: compute correct size for symlinks
billziss-gh May 28, 2020
9714d3f
Win32: implement basic symlink() functionality (file symlinks only)
kblees May 23, 2015
ac543f4
Win32: symlink: add support for symlinks to directories
kblees May 23, 2015
f86ebb1
mingw: introduce code to detect whether we're inside a Windows container
zcube Apr 23, 2018
d5eca7b
mingw: try to create symlinks without elevated permissions
dscho May 30, 2017
5875222
mingw: when running in a Windows container, try to rename() harder
zcube Apr 23, 2018
c3a8bfd
mingw: emulate stat() a little more faithfully
dscho Mar 2, 2020
4eb6570
mingw: move the file_attr_to_st_mode() function definition
zcube Apr 23, 2018
e993ce4
mingw: special-case index entries for symlinks with buggy size
dscho Jun 4, 2020
d219466
mingw: Windows Docker volumes are *not* symbolic links
dscho Apr 23, 2018
03b505c
mingw: explicitly specify with which cmd to prefix the cmdline
dscho Jul 20, 2017
addcf25
mingw: when path_lookup() failed, try BusyBox
dscho Jul 20, 2017
1f91a8a
test-lib: avoid unnecessary Perl invocation
dscho Aug 5, 2017
f183dd1
Win32: symlink: move phantom symlink creation to a separate function
piscisaureus Oct 26, 2018
f15fd08
test-tool: learn to act as a drop-in replacement for `iconv`
dscho Jul 20, 2017
9543a03
Introduce helper to create symlinks that knows about index_state
dscho Feb 11, 2019
74901bc
tests(mingw): if `iconv` is unavailable, use `test-helper --iconv`
dscho Jul 20, 2017
2650b4b
mingw: allow to specify the symlink type in .gitattributes
piscisaureus Oct 26, 2018
0ab33c3
gitattributes: mark .png files as binary
dscho Oct 11, 2018
25e1dca
Win32: symlink: add test for `symlink` attribute
piscisaureus Oct 26, 2018
5689f7a
tests: move test PNGs into t/lib-diff/
dscho Aug 5, 2017
1bcdcf3
tests: only override sort & find if there are usable ones in /usr/bin/
dscho Jul 17, 2017
fac7d72
tests: use the correct path separator with BusyBox
dscho Nov 19, 2018
d078d42
mingw: only use Bash-ism `builtin pwd -W` when available
dscho Jun 29, 2017
d477630
tests (mingw): remove Bash-specific pwd option
dscho Jun 30, 2017
f5c0284
test-lib: add BUSYBOX prerequisite
dscho Jul 19, 2017
c549b5a
t5003: use binary file from t/lib-diff/
dscho Aug 5, 2017
b1215e3
t5532: workaround for BusyBox on Windows
dscho Jul 21, 2017
3e93482
t5605: special-case hardlink test for BusyBox-w32
dscho Jul 21, 2017
249439c
t5813: allow for $PWD to be a Windows path
dscho Jul 5, 2017
b3c6f24
t9200: skip tests when $PWD contains a colon
dscho Jul 7, 2017
859e1c1
mingw: kill child processes in a gentler way
dscho May 17, 2017
cc746ec
mingw: add a Makefile target to copy test artifacts
dscho Jul 19, 2017
642bc32
mingw: really handle SIGINT
dscho Apr 22, 2018
0671842
mingw: do not call xutftowcs_path in mingw_mktemp
neerajsi-msft Oct 27, 2021
1b21cbe
Partially un-revert "editor: save and reset terminal after calling ED…
dscho Nov 25, 2021
eb41e9c
reset: reinstate support for the deprecated --stdin option
dscho Dec 10, 2019
ffd8e89
fsmonitor: reintroduce core.useBuiltinFSMonitor
vdye Apr 4, 2022
a93cd55
Add a GitHub workflow to monitor component updates
dscho Sep 29, 2020
732da04
Describe Git for Windows' architecture [no ci]
dscho Feb 13, 2023
d146e95
Modify the Code of Conduct for Git for Windows
dscho Oct 11, 2019
39b509a
CONTRIBUTING.md: add guide for first-time contributors
derrickstolee Mar 1, 2018
f4a6f74
README.md: Add a Windows-specific preamble
dscho Jan 10, 2014
4f54c09
Add an issue template
shiftkey Feb 18, 2016
de06de2
Modify the GitHub Pull Request template (to reflect Git for Windows)
Dec 22, 2017
024a796
.github: Add configuration for the Sentiment Bot
dscho Feb 20, 2018
c878fc5
Document how $HOME is set on Windows
alejandro5042 Mar 9, 2018
bd9880a
SECURITY.md: document Git for Windows' policies
dscho Aug 23, 2019
a36f4ab
Merge branch 'gitk-and-git-gui-patches'
dscho Oct 11, 2018
0a25a95
Merge branch 'long-paths'
dscho Nov 15, 2018
0f4946d
Merge branch 'fix-v4-fsmonitor-long-paths' into try-v4-fsmonitor
jeffhostetler Sep 29, 2021
f21f067
Merge pull request #3817 from mathstuf/name-too-long-advice
dscho Apr 22, 2022
fe0ccb4
Merge branch 'msys2'
dscho Nov 15, 2018
e92a0c3
Merge branch 'kblees/kb/symlinks'
dscho Nov 15, 2018
d3a949c
Merge 'docker-volumes-are-no-symlinks'
dscho Oct 12, 2018
b1dc0af
Merge pull request #1897 from piscisaureus/symlink-attr
dscho Oct 31, 2018
47f3148
Merge branch 'busybox-w32'
dscho Feb 7, 2019
143c346
Merge pull request #1170 from dscho/mingw-kill-process
dscho Oct 11, 2018
b8d288a
Merge pull request #3492 from dscho/ns/batched-fsync
vdye Oct 28, 2021
a73fce1
Merge branch 'un-revert-editor-save-and-reset'
dscho Jan 15, 2022
60a72cd
Merge branch 'phase-out-reset-stdin'
dscho Jun 8, 2018
c34c13a
Merge branch 'deprecate-core.useBuiltinFSMonitor'
dscho Jan 24, 2023
8aac252
Merge pull request #2837 from dscho/monitor-component-updates
dscho Oct 7, 2020
90ec798
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
10 changes: 7 additions & 3 deletions Documentation/RelNotes/2.41.0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ UI, Workflows & Features
has symbolic links inside its $GIT_DIR; an error message when that
happens has been updated.

* "git branch --format=..." and "git format-patch --format=..."
learns "--omit-empty" to hide refs that whose formatting result
becomes an empty string from the output.
* The "--format=..." option of "git for-each-ref", "git branch", and
"git tag" commands learn "--omit-empty" to hide refs whose
formatting results in an empty string from the output.

* The sendemail-validate validate hook learned to pass the total
number of input files and where in the sequence each invocation is
Expand Down Expand Up @@ -369,6 +369,10 @@ Fixes since v2.40
by git forges to disable replace-refs feature.
(merge b6551feadf ds/merge-tree-use-config later to maint).

* A few bugs in the sequencer machinery that results in miscounting
the steps have been corrected.
(merge 170eea9750 js/rebase-count-fixes later to maint).

* Other code cleanup, docfix, build fix, etc.
(merge f7111175df as/doc-markup-fix later to maint).
(merge 90ff7c9898 fc/test-aggregation-clean-up later to maint).
Expand Down
5 changes: 3 additions & 2 deletions Documentation/config/http.txt
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,9 @@ significantly since the entire buffer is allocated even for small
pushes.

http.lowSpeedLimit, http.lowSpeedTime::
If the HTTP transfer speed is less than 'http.lowSpeedLimit'
for longer than 'http.lowSpeedTime' seconds, the transfer is aborted.
If the HTTP transfer speed, in bytes per second, is less than
'http.lowSpeedLimit' for longer than 'http.lowSpeedTime' seconds,
the transfer is aborted.
Can be overridden by the `GIT_HTTP_LOW_SPEED_LIMIT` and
`GIT_HTTP_LOW_SPEED_TIME` environment variables.

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.40.GIT
DEF_VER=v2.41.0-rc2

LF='
'
Expand Down
13 changes: 8 additions & 5 deletions sequencer.c
Original file line number Diff line number Diff line change
Expand Up @@ -2477,7 +2477,6 @@ void todo_list_release(struct todo_list *todo_list)
static struct todo_item *append_new_todo(struct todo_list *todo_list)
{
ALLOC_GROW(todo_list->items, todo_list->nr + 1, todo_list->alloc);
todo_list->total_nr++;
return todo_list->items + todo_list->nr++;
}

Expand Down Expand Up @@ -2668,7 +2667,7 @@ int todo_list_parse_insn_buffer(struct repository *r, char *buf,
char *p = buf, *next_p;
int i, res = 0, fixup_okay = file_exists(rebase_path_done());

todo_list->current = todo_list->nr = 0;
todo_list->current = todo_list->nr = todo_list->total_nr = 0;

for (i = 1; *p; i++, p = next_p) {
char *eol = strchrnul(p, '\n');
Expand All @@ -2689,6 +2688,9 @@ int todo_list_parse_insn_buffer(struct repository *r, char *buf,
item->commit = NULL;
}

if (item->command != TODO_COMMENT)
todo_list->total_nr++;

if (fixup_okay)
; /* do nothing */
else if (is_fixup(item->command))
Expand Down Expand Up @@ -4270,7 +4272,7 @@ void todo_list_filter_update_refs(struct repository *r,
if (!is_null_oid(&rec->after))
continue;

for (j = 0; !found && j < todo_list->total_nr; j++) {
for (j = 0; !found && j < todo_list->nr; j++) {
struct todo_item *item = &todo_list->items[j];
const char *arg = todo_list->buf.buf + item->arg_offset;

Expand Down Expand Up @@ -4300,7 +4302,7 @@ void todo_list_filter_update_refs(struct repository *r,
* For each todo_item, check if its ref is in the update_refs list.
* If not, then add it as an un-updated ref.
*/
for (i = 0; i < todo_list->total_nr; i++) {
for (i = 0; i < todo_list->nr; i++) {
struct todo_item *item = &todo_list->items[i];
const char *arg = todo_list->buf.buf + item->arg_offset;
int j, found = 0;
Expand Down Expand Up @@ -6148,7 +6150,8 @@ int complete_action(struct repository *r, struct replay_opts *opts, unsigned fla
todo_list_to_strbuf(r, &new_todo, &buf2, -1, 0);
strbuf_swap(&new_todo.buf, &buf2);
strbuf_release(&buf2);
new_todo.total_nr -= new_todo.nr;
/* Nothing is done yet, and we're reparsing, so let's reset the count */
new_todo.total_nr = 0;
if (todo_list_parse_insn_buffer(r, new_todo.buf.buf, &new_todo) < 0)
BUG("invalid todo list after expanding IDs:\n%s",
new_todo.buf.buf);
Expand Down
2 changes: 1 addition & 1 deletion t/lib-submodule-update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,7 @@ test_submodule_recursing_with_args_common () {
git branch -t no_submodule origin/no_submodule &&
$command no_submodule &&
test_superproject_content origin/no_submodule &&
! test_path_is_dir sub1 &&
test_path_is_missing sub1 &&
test_must_fail git config -f .git/modules/sub1/config core.worktree &&
test_must_fail git config -f .git/modules/sub1/modules/sub2/config core.worktree
)
Expand Down
18 changes: 14 additions & 4 deletions t/t1092-sparse-checkout-compatibility.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2089,22 +2089,32 @@ test_expect_success 'grep sparse directory within submodules' '
test_cmp actual expect
'

test_expect_success 'write-tree on all' '
test_expect_success 'write-tree' '
init_repos &&

test_all_match git write-tree &&

write_script edit-contents <<-\EOF &&
echo text >>"$1"
EOF

# make a change inside the sparse cone
run_on_all ../edit-contents deep/a &&
run_on_all git update-index deep/a &&
test_all_match git update-index deep/a &&
test_all_match git write-tree &&
test_all_match git status --porcelain=v2 &&

# make a change outside the sparse cone
run_on_all mkdir -p folder1 &&
run_on_all cp a folder1/a &&
run_on_all ../edit-contents folder1/a &&
run_on_all git update-index folder1/a &&
test_all_match git write-tree
test_all_match git update-index folder1/a &&
test_all_match git write-tree &&
test_all_match git status --porcelain=v2 &&

# check that SKIP_WORKTREE files are not materialized
test_path_is_missing sparse-checkout/folder2/a &&
test_path_is_missing sparse-index/folder2/a
'

test_expect_success 'sparse-index is not expanded: write-tree' '
Expand Down
2 changes: 1 addition & 1 deletion t/t2021-checkout-overwrite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ test_expect_success 'checkout --overwrite-ignore should succeed if only ignored
echo autogenerated information >some_dir/ignore &&
echo ignore >.git/info/exclude &&
git checkout --overwrite-ignore df_conflict &&
! test_path_is_dir some_dir
test_path_is_file some_dir
'

test_done
8 changes: 8 additions & 0 deletions t/t3430-rebase-merges.sh
Original file line number Diff line number Diff line change
Expand Up @@ -578,4 +578,12 @@ test_expect_success '--rebase-merges with message matched with onto label' '
EOF
'

test_expect_success 'progress shows the correct total' '
git checkout -b progress H &&
git rebase --rebase-merges --force-rebase --verbose A 2> err &&
# Expecting "Rebasing (N/14)" here, no bogus total number
grep "^Rebasing.*/14.$" err >progress &&
test_line_count = 14 progress
'

test_done
4 changes: 2 additions & 2 deletions t/t4067-diff-partial-clone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ test_expect_success 'diff does not fetch anything if inexact rename detection is

# Ensure no fetches.
GIT_TRACE_PACKET="$(pwd)/trace" git -C client diff --raw -M HEAD^ HEAD &&
! test_path_exists trace
test_path_is_missing trace
'

test_expect_success 'diff --break-rewrites fetches only if necessary, and batches blobs if it does' '
Expand All @@ -171,7 +171,7 @@ test_expect_success 'diff --break-rewrites fetches only if necessary, and batche

# Ensure no fetches.
GIT_TRACE_PACKET="$(pwd)/trace" git -C client diff --raw -M HEAD^ HEAD &&
! test_path_exists trace &&
test_path_is_missing trace &&

# But with --break-rewrites, ensure that there is exactly 1 negotiation
# by checking that there is only 1 "done" line sent. ("done" marks the
Expand Down
2 changes: 1 addition & 1 deletion t/t4115-apply-symlink.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ test_expect_success SYMLINKS 'symlink escape when creating new files' '
error: affected file ${SQ}renamed-symlink/create-me${SQ} is beyond a symbolic link
EOF
test_cmp expected_stderr stderr &&
! test_path_exists .git/create-me
test_path_is_missing .git/create-me
'

test_expect_success SYMLINKS 'symlink escape when modifying file' '
Expand Down
4 changes: 2 additions & 2 deletions t/t5572-pull-submodule.sh
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ test_expect_success "fetch.recurseSubmodules option triggers recursive fetch (bu
sub_oid=$(git -C child rev-parse HEAD) &&
git -C super/sub cat-file -e $sub_oid &&
# Check that the submodule worktree did not update
! test_path_is_file super/sub/merge_strategy_5.t
test_path_is_missing super/sub/merge_strategy_5.t
'

test_expect_success "fetch.recurseSubmodules takes precedence over submodule.recurse" '
Expand All @@ -134,7 +134,7 @@ test_expect_success "fetch.recurseSubmodules takes precedence over submodule.rec
sub_oid=$(git -C child rev-parse HEAD) &&
git -C super/sub cat-file -e $sub_oid &&
# Check that the submodule worktree did not update
! test_path_is_file super/sub/merge_strategy_6.t
test_path_is_missing super/sub/merge_strategy_6.t
'

test_expect_success 'pull --rebase --recurse-submodules (remote superproject submodule changes, local submodule changes)' '
Expand Down