Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rebase to v2.48.0 rc2 #5348

Merged
merged 423 commits into from
Jan 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
423 commits
Select commit Hold shift + click to select a range
0e42bfa
path-walk: allow visiting tags
derrickstolee Sep 9, 2024
63fa634
revision: create mark_trees_uninteresting_dense()
derrickstolee Sep 6, 2024
e545bee
path-walk: add prune_all_uninteresting option
derrickstolee Sep 4, 2024
d90b21c
pack-objects: extract should_attempt_deltas()
derrickstolee Sep 24, 2024
159547f
pack-objects: add --path-walk option
derrickstolee Sep 5, 2024
fc70c9f
pack-objects: introduce GIT_TEST_PACK_PATH_WALK
derrickstolee Sep 6, 2024
34e991a
repack: add --path-walk option
derrickstolee Sep 5, 2024
557e23b
pack-objects: enable --path-walk via config
derrickstolee Sep 5, 2024
b1d9661
scalar: enable path-walk during push via config
derrickstolee Sep 5, 2024
7b59e6c
pack-objects: refactor path-walk delta phase
derrickstolee Sep 18, 2024
a7681ff
pack-objects: thread the path-based compression
derrickstolee Sep 18, 2024
9ed9a44
path-walk API: avoid adding a root tree more than once
dscho Oct 7, 2024
4c45df7
Merge branch 'safe-PATH-lookup-in-gitk-on-Windows'
dscho Jan 21, 2023
90aaa6b
Merge 'remote-hg-prerequisites' into HEAD
dscho Jun 8, 2018
a9491eb
Merge branch 'drive-prefix'
dscho Jun 8, 2018
7523ea6
Merge branch 'dont-clean-junctions'
dscho Jul 30, 2019
e8bc47c
Merge branch 'msys2-python'
dscho May 31, 2019
1350d79
t-reftable-basics: stop assuming that `malloc` is not a constant
dscho Jan 7, 2025
c6b7ce0
survey: stub in new experimental 'git-survey' command
Apr 29, 2024
7d894d8
survey: add command line opts to select references
Apr 29, 2024
0d8393e
survey: start pretty printing data in table form
derrickstolee Sep 1, 2024
5de5395
backfill: add builtin boilerplate
derrickstolee Jun 7, 2024
db19259
survey: add object count summary
derrickstolee Sep 2, 2024
ec146ba
backfill: basic functionality and tests
derrickstolee Sep 1, 2024
4019c90
survey: summarize total sizes by object type
derrickstolee Sep 2, 2024
dc94934
backfill: add --batch-size=<n> option
derrickstolee Sep 1, 2024
1edff6d
survey: show progress during object walk
derrickstolee Sep 2, 2024
35b7e38
backfill: add --sparse option
derrickstolee Sep 1, 2024
e65957e
survey: add ability to track prioritized lists
derrickstolee Sep 2, 2024
2264e15
backfill: assume --sparse when sparse-checkout is enabled
derrickstolee Sep 1, 2024
fc9fb68
survey: add report of "largest" paths
derrickstolee Sep 2, 2024
a86d017
backfill: mark it as experimental
dscho Sep 26, 2024
41c7575
Merge branch 'mimalloc-v2.0.9'
dscho Sep 8, 2022
cd11368
Merge pull request #2375 from assarbad/reintroduce-sideband-config
dscho Oct 30, 2019
5c03374
survey: add --top=<N> option and config
derrickstolee Sep 23, 2024
9374b57
Merge pull request #2405 from dscho/mingw-setsockopt
dscho Nov 25, 2019
c1267cc
survey: clearly note the experimental nature in the output
dscho Jul 1, 2024
084fec0
path-walk: improve path-walk speed with many tags
derrickstolee Oct 9, 2024
8baa1f3
Merge pull request #2449 from dscho/mingw-getcwd-and-symlinks
dscho Jan 3, 2020
08c68ca
Merge pull request #2488 from bmueller84/master
dscho Jan 22, 2020
cd22a8a
Merge pull request #2501 from jeffhostetler/clink-debug-curl
dscho Jan 30, 2020
ced4776
Merge pull request #2504 from dscho/access-repo-via-junction
dscho Feb 1, 2020
36858e5
Merge pull request #2506 from dscho/issue-2283
dscho Feb 11, 2020
6db6131
Merge pull request #2535 from dscho/schannel-revoke-best-effort
dscho Mar 4, 2020
e11b446
Merge pull request #2618 from dscho/avoid-d/f-conflict-in-vs/master
dscho May 9, 2020
8352fff
Merge 'add-p-many-files'
dscho Jun 8, 2018
4028b22
Merge pull request #2730 from dscho/crlf-aware-git-add-i
dscho Jul 2, 2020
578804d
Merge pull request #2714 from lbonanomi/crlf-scissors
dscho Jul 3, 2020
4d9c135
Merge pull request #2655 from jglathe/jg/t0014_trace_extra_info
dscho Oct 9, 2020
0c9da05
Merge 'git-gui/js/intent-to-add'
dscho Oct 18, 2020
94fb395
Merge pull request #2974 from derrickstolee/maintenance-and-headless
dscho Jan 11, 2021
3602d90
cmake: install headless-git. (#4338)
dscho Mar 13, 2023
67e774d
Merge pull request #2351 from PhilipOakley/vcpkg-tip
dscho Oct 7, 2019
d747609
Merge pull request #2915 from dennisameling/windows-arm64-support
dscho Dec 9, 2020
62ad011
Merge pull request #3327 from dennisameling/fix-host-cpu
dscho Jul 19, 2021
0b13068
Merge pull request #3165 from dscho/increase-allowed-length-of-interp…
dscho Apr 3, 2021
6be4ac4
Merge pull request #3220 from dscho/there-is-no-vs/master-anymore
dscho May 17, 2021
19c7062
Merge pull request #3293 from pascalmuller/http-support-automatically…
dscho Jun 24, 2021
ab9a4ba
Merge pull request #3349 from vdye/feature/ci-subtree-tests
dscho Aug 10, 2021
37747ca
Merge pull request #3306 from PhilipOakley/vs-sln
dscho Oct 12, 2021
537b219
Merge pull request #3417 from dscho/initialize-core.symlinks-earlier
dscho Oct 13, 2021
4ec8907
Merge pull request #3533 from PhilipOakley/hashliteral_t
dscho Dec 15, 2021
d17189c
Merge pull request #3791: Various fixes around `safe.directory`
derrickstolee Apr 13, 2022
7b8e9a1
Merge pull request #3751 from rkitover/native-term
dscho Apr 21, 2022
9cee9a6
Merge pull request #3875 from 1480c1/wine/detect_msys_tty
dscho May 30, 2022
029173f
Merge branch 'optionally-dont-append-atomically-on-windows'
dscho Jun 23, 2022
02683de
Merge branch 'fsync-object-files-always'
dscho Oct 11, 2018
925aecf
Merge branch 'ci-fixes'
dscho Feb 11, 2021
f2ad2d9
Merge pull request #3942 from rimrul/mingw-tsaware
dscho Jul 27, 2022
a6f3f11
Fix Windows version resources (#4092)
dscho Nov 3, 2022
8a311fa
Merge branch 'builtin-swap-functions'
dscho Nov 23, 2022
3390ca2
Add support for CLANGARM64 target (#3916)
dscho Oct 28, 2022
958f617
Fix global repository field not being cleared (#4083)
dscho Dec 20, 2022
c67b1bd
Skip linking the "dashed" `git-<command>`s for built-ins (#4252)
dscho Jan 31, 2023
18ab4d3
Git GUI: fix Repository>Explore Working Copy (#4357)
dscho Mar 21, 2023
b9ae91f
Lazy load libcurl, allowing for an SSL/TLS backend-specific libcurl (…
dscho May 15, 2023
66992b8
Merge branch 'nano-server'
dscho Aug 7, 2023
eea4fad
Additional error checks for issuing the windows.appendAtomically warn…
dscho Aug 7, 2023
29433bc
win32: use native ANSI sequence processing, if possible (#4700)
dscho Dec 2, 2023
4f18fd6
ARM64: Embed manifest properly (#4718)
dscho Dec 7, 2023
7c6c597
common-main.c: fflush stdout buffer when exit (#4901)
dscho Apr 12, 2024
459b21a
Merge branch 'run-t5601-and-t7406-with-symlinks-on-windows-10'
dscho Jul 12, 2024
4008e06
Merge branch 'Fix-i686-build-with-GCC-v14'
dscho Jul 12, 2024
68084cf
Merge branch 'Fallback-to-AppData-if-XDG-CONFIG-HOME-is-unset'
dscho Jul 12, 2024
855e4db
Merge branch 'run-command-be-helpful-when-Git-LFS-fails-on-Windows-7'
dscho Jul 12, 2024
aab8e71
pack-objects: create new name-hash algorithm (#5157)
dscho Sep 24, 2024
4a3cf1d
Add path walk API and its use in 'git pack-objects' (#5171)
derrickstolee Sep 25, 2024
6b7c591
path-walk API: avoid adding a root tree more than once (#5195)
dscho Oct 8, 2024
0e35554
Introduce 'git backfill' to get missing blobs in a partial clone (#5172)
dscho Sep 26, 2024
390736b
Add experimental 'git survey' builtin (#5174)
dscho Sep 26, 2024
20eae0d
path-walk: improve path-walk speed with many tags (#5205)
dscho Oct 11, 2024
09c9eaf
Win32: make FILETIME conversion functions public
kblees Jul 6, 2013
8a2cf44
Win32: dirent.c: Move opendir down
kblees Sep 8, 2013
8bccc70
mingw: make the dirent implementation pluggable
kblees Sep 8, 2013
d70dde0
Win32: make the lstat implementation pluggable
kblees Sep 8, 2013
79b7550
mingw: add infrastructure for read-only file system level caches
kblees Sep 8, 2013
101b990
fscache: add key for GIT_TRACE_FSCACHE
jeffhostetler Jan 24, 2017
de1f16b
dir.c: make add_excludes aware of fscache during status
jeffhostetler Nov 1, 2017
31d1d18
mingw: add a cache below mingw's lstat and dirent implementations
kblees Oct 1, 2013
537c684
fscache: remember not-found directories
jeffhostetler Dec 13, 2016
ccae4a7
fscache: make fscache_enabled() public
jeffhostetler Dec 20, 2017
fedce44
fscache: load directories only once
kblees Jun 24, 2014
26e514b
fscache: add a test for the dir-not-found optimization
dscho Jan 25, 2017
4a0b366
add: use preload-index and fscache for performance
jeffhostetler Nov 22, 2016
bd82ccf
Merge branch 'ready-for-upstream'
dscho Oct 11, 2018
409d6ec
mem_pool: add GIT_TRACE_MEMPOOL support
benpeart Oct 4, 2018
0d603f9
fscache: fscache takes an initial size
benpeart Nov 2, 2018
580ced9
fscache: update fscache to be thread specific instead of global
benpeart Oct 4, 2018
675d8dc
dir.c: regression fix for add_excludes with fscache
jeffhostetler Dec 20, 2017
62a3d3c
fetch-pack.c: enable fscache for stats under .git/objects
Nov 22, 2017
71c8974
checkout.c: enable fscache for checkout again
Jan 30, 2018
7ffa2ec
Enable the filesystem cache (fscache) in refresh_index().
benpeart Sep 7, 2018
0c81d79
fscache: use FindFirstFileExW to avoid retrieving the short name
benpeart Oct 23, 2018
d27fb3c
status: disable and free fscache at the end of the status command
benpeart Nov 1, 2018
b0da78f
fscache: add GIT_TEST_FSCACHE support
benpeart Oct 4, 2018
c27092b
fscache: add fscache hit statistics
benpeart Sep 25, 2018
2bd9665
git-gui--askyesno: fix funny text wrapping
dscho Sep 20, 2017
8ee5310
fscache: remember the reparse tag for each entry
dscho Dec 11, 2018
8393a50
git-gui: provide question helper for retry fallback on Windows
hvoigt Feb 21, 2010
7117b15
git-gui--askyesno: allow overriding the window title
dscho Sep 20, 2017
00da8ee
fscache: implement an FSCache-aware is_mount_point()
dscho Dec 11, 2018
6704d86
git gui: set GIT_ASKPASS=git-gui--askpass if not set yet
dscho Jul 23, 2010
cd492f2
git-gui--askyesno (mingw): use Git for Windows' icon, if available
dscho Sep 20, 2017
1ad0115
fscache: teach fscache to use mempool
benpeart Nov 2, 2018
8e76d16
fscache: make fscache_enable() thread safe
benpeart Nov 16, 2018
fe8536e
fscache: teach fscache to use NtQueryDirectoryFile
benpeart Nov 15, 2018
f67147a
unpack-trees: enable fscache for sparse-checkout
derrickstolee Jun 12, 2019
36b6ed3
clean: make use of FSCache
dscho Dec 11, 2018
908c5a1
gitk: Unicode file name support
kblees Feb 4, 2012
1a36bff
gitk: Use an external icon file on Windows
sschuberth Jul 22, 2012
8999621
gitk: fix arrow keys in input fields with Tcl/Tk >= 8.6
dscho Feb 16, 2016
bcbe82c
Merge 'git-gui' into HEAD
dscho Jun 7, 2018
cafd484
gitk: make the "list references" default window width wider
sidecut Jan 21, 2016
ddbc2c3
Merge branch 'git-gui-askyesno'
dscho Jun 8, 2018
29d446e
Merge 'gitk' into HEAD
dscho Jun 7, 2018
5d21182
Merge branch 'fscache'
dscho Nov 15, 2018
a7940ff
Merge pull request #994 from jeffhostetler/jeffhostetler/fscache_nfd
dscho Jun 8, 2018
72aebea
Merge pull request #971 from jeffhostetler/jeffhostetler/add_preload_…
dscho Jun 8, 2018
bc7366c
Merge pull request #1344 from jeffhostetler/perf_add_excludes_with_fs…
dscho Jun 8, 2018
c57a360
Merge pull request #1426 from atetubou/fetch_pack
dscho Jun 8, 2018
49ebfc9
Merge pull request #1468 from atetubou/fscache_checkout_flush
dscho Oct 12, 2018
4ab67db
Merge pull request #1827 from benpeart/fscache_refresh_index
dscho Sep 27, 2018
3e1442e
Merge pull request #1908 from benpeart/FindFirstFileEx-gfw
dscho Nov 5, 2018
21ac5fc
Merge pull request #1909 from benpeart/free-fscache-after-status-gfw
dscho Nov 5, 2018
5f26cc1
Merge pull request #1911 from benpeart/git_test_fscache-gfw
dscho Nov 5, 2018
54a8998
Merge pull request #1910 from benpeart/fscache_statistics-gfw
dscho Nov 16, 2018
a232598
Merge remote-tracking branch 'benpeart/fscache-per-thread-gfw'
dscho Nov 16, 2018
9828696
Merge pull request #1934 from benpeart/fscache-thread-safe-enable-gfw
dscho Nov 26, 2018
327543d
pack-objects (mingw): demonstrate a segmentation fault with large deltas
vangdfang Jan 9, 2014
f6aab38
Merge pull request #1937 from benpeart/fscache-NtQueryDirectoryFile-gfw
dscho Nov 27, 2018
bfc3db8
mingw: support long paths
kblees Jul 28, 2015
4efe8e6
Merge branch 'fscache-and-sparse-checkout'
derrickstolee Jun 18, 2019
05674cc
Win32: fix 'lstat("dir/")' with long paths
kblees Jul 4, 2014
16e6632
Merge branch 'dont-clean-junctions-fscache'
dscho Jul 23, 2019
4ec7736
win32(long path support): leave drive-less absolute paths intact
dscho Sep 6, 2023
af1cd45
strbuf_readlink: don't call readlink twice if hint is the exact link …
kblees May 11, 2015
dedb1ae
strbuf_readlink: support link targets that exceed PATH_MAX
kblees May 11, 2015
2e09e44
lockfile.c: use is_dir_sep() instead of hardcoded '/' checks
kblees May 11, 2015
aadf124
Win32: don't call GetFileAttributes twice in mingw_lstat()
kblees May 12, 2015
884eda4
mingw: Support `git_terminal_prompt` with more terminals
kblees Mar 19, 2015
de191d1
Win32: implement stat() with symlink support
kblees May 15, 2015
448abe1
compat/terminal.c: only use the Windows console if bash 'read -r' fails
kblees May 9, 2015
af7734a
Win32: remove separate do_lstat() function
kblees May 11, 2015
5f4c415
compat/fsmonitor/fsm-*-win32: support long paths
jeffhostetler Mar 25, 2022
4b2711a
clean: suggest using `core.longPaths` if paths are too long to remove
mathstuf Apr 22, 2022
7f91760
mingw (git_terminal_prompt): do fall back to CONIN$/CONOUT$ method
dscho Feb 23, 2018
7a45cf7
Win32: let mingw_lstat() error early upon problems with reparse points
kblees May 23, 2015
6c99a15
mingw: teach fscache and dirent about symlinks
kblees Jan 10, 2017
41c5c14
Win32: lstat(): return adequate stat.st_size for symlinks
kblees May 15, 2015
65b8430
Win32: factor out retry logic
kblees May 19, 2015
a67d839
Win32: change default of 'core.symlinks' to false
kblees May 23, 2015
24160db
Win32: add symlink-specific error codes
kblees May 15, 2015
d3df280
Win32: mingw_unlink: support symlinks to directories
kblees May 23, 2015
87b35ec
Win32: mingw_rename: support renaming symlinks
kblees May 19, 2015
4a58657
Win32: mingw_chdir: change to symlink-resolved directory
kblees May 23, 2015
585b4bb
Win32: implement readlink()
kblees May 23, 2015
4236f8c
mingw: lstat: compute correct size for symlinks
billziss-gh May 28, 2020
17bf729
Win32: implement basic symlink() functionality (file symlinks only)
kblees May 23, 2015
f7ab0fb
Win32: symlink: add support for symlinks to directories
kblees May 23, 2015
96891c3
mingw: try to create symlinks without elevated permissions
dscho May 30, 2017
06376e6
mingw: introduce code to detect whether we're inside a Windows container
ZCube Apr 23, 2018
eb17c48
mingw: when running in a Windows container, try to rename() harder
ZCube Apr 23, 2018
85d41e4
mingw: emulate stat() a little more faithfully
dscho Mar 2, 2020
f33e574
mingw: move the file_attr_to_st_mode() function definition
ZCube Apr 23, 2018
e13c7c6
Win32: symlink: move phantom symlink creation to a separate function
piscisaureus Oct 26, 2018
c80d141
mingw: special-case index entries for symlinks with buggy size
dscho Jun 4, 2020
167e81d
mingw: Windows Docker volumes are *not* symbolic links
dscho Apr 23, 2018
3e617a8
mingw: work around rename() failing on a read-only file
dsl101 Jul 28, 2023
dfbdd01
mingw: explicitly specify with which cmd to prefix the cmdline
dscho Jul 20, 2017
ad1b7a4
Introduce helper to create symlinks that knows about index_state
dscho Feb 11, 2019
0612f86
mingw: when path_lookup() failed, try BusyBox
dscho Jul 20, 2017
3199b1b
mingw: allow to specify the symlink type in .gitattributes
piscisaureus Oct 26, 2018
3b9554e
test-lib: avoid unnecessary Perl invocation
dscho Aug 5, 2017
faf1f46
Win32: symlink: add test for `symlink` attribute
piscisaureus Oct 26, 2018
f6719f8
test-tool: learn to act as a drop-in replacement for `iconv`
dscho Jul 20, 2017
d7f4c1d
tests(mingw): if `iconv` is unavailable, use `test-helper --iconv`
dscho Jul 20, 2017
f03dc97
gitattributes: mark .png files as binary
dscho Oct 11, 2018
14fa4bf
tests: move test PNGs into t/lib-diff/
dscho Aug 5, 2017
87dc864
tests: only override sort & find if there are usable ones in /usr/bin/
dscho Jul 17, 2017
3789353
tests: use the correct path separator with BusyBox
dscho Nov 19, 2018
6a6623b
mingw: only use Bash-ism `builtin pwd -W` when available
dscho Jun 29, 2017
7f70225
tests (mingw): remove Bash-specific pwd option
dscho Jun 30, 2017
5503200
test-lib: add BUSYBOX prerequisite
dscho Jul 19, 2017
7ccc72d
t5003: use binary file from t/lib-diff/
dscho Aug 5, 2017
bf6204f
t5532: workaround for BusyBox on Windows
dscho Jul 21, 2017
7c97cdd
t5605: special-case hardlink test for BusyBox-w32
dscho Jul 21, 2017
25a13ab
t5813: allow for $PWD to be a Windows path
dscho Jul 5, 2017
7e1cf71
t9200: skip tests when $PWD contains a colon
dscho Jul 7, 2017
77fb64f
mingw: add a Makefile target to copy test artifacts
dscho Jul 19, 2017
2e1f7ed
mingw: optionally enable wsl compability file mode bits
swigger Jun 7, 2023
0adaeae
mingw: kill child processes in a gentler way
dscho May 17, 2017
64b0171
mingw: really handle SIGINT
dscho Apr 22, 2018
a0a9279
Add a GitHub workflow to monitor component updates
dscho Sep 29, 2020
3a711ce
mingw: do not call xutftowcs_path in mingw_mktemp
neerajsi-msft Oct 27, 2021
de57309
Partially un-revert "editor: save and reset terminal after calling ED…
dscho Nov 25, 2021
db1e920
reset: reinstate support for the deprecated --stdin option
dscho Dec 10, 2019
c359f03
fsmonitor: reintroduce core.useBuiltinFSMonitor
vdye Apr 4, 2022
8732d41
dependabot: help keeping GitHub Actions versions up to date
dscho Feb 6, 2024
49453d0
Describe Git for Windows' architecture [no ci]
dscho Feb 13, 2023
2890784
Modify the Code of Conduct for Git for Windows
dscho Oct 11, 2019
2b556c9
CONTRIBUTING.md: add guide for first-time contributors
derrickstolee Mar 1, 2018
b7c9a2b
README.md: Add a Windows-specific preamble
dscho Jan 10, 2014
1f22ae1
Add an issue template
shiftkey Feb 18, 2016
b21c696
Merge branch 'gitk-and-git-gui-patches'
dscho Oct 11, 2018
5b004bc
Modify the GitHub Pull Request template (to reflect Git for Windows)
Dec 22, 2017
6e60531
Merge branch 'long-paths'
dscho Nov 15, 2018
b6c04e4
SECURITY.md: document Git for Windows' policies
dscho Aug 23, 2019
fa8749a
Merge branch 'fix-v4-fsmonitor-long-paths' into try-v4-fsmonitor
jeffhostetler Sep 29, 2021
635b3f1
Merge pull request #3817 from mathstuf/name-too-long-advice
dscho Apr 22, 2022
336f798
Merge branch 'msys2'
dscho Nov 15, 2018
8a402d8
Merge branch 'kblees/kb/symlinks'
dscho Nov 15, 2018
78c1b60
Merge 'docker-volumes-are-no-symlinks'
dscho Oct 12, 2018
1449d86
mingw: try resetting the read-only bit if rename fails (#4527)
dscho Aug 7, 2023
8e1685e
Merge pull request #1897 from piscisaureus/symlink-attr
dscho Oct 31, 2018
98aeb89
Merge branch 'busybox-w32'
dscho Feb 7, 2019
ac258fb
Merge branch 'wsl-file-mode-bits'
dscho Aug 7, 2023
593872a
Merge pull request #1170 from dscho/mingw-kill-process
dscho Oct 11, 2018
7ccbc9a
Merge pull request #3492 from dscho/ns/batched-fsync
vdye Oct 28, 2021
0de6448
Merge branch 'un-revert-editor-save-and-reset'
dscho Jan 15, 2022
9f28ec3
Merge branch 'phase-out-reset-stdin'
dscho Jun 8, 2018
011e1b9
Merge branch 'deprecate-core.useBuiltinFSMonitor'
dscho Jan 24, 2023
af9a2b6
compat/mingw: handle WSA errors in strerror
rimrul Dec 22, 2024
0cf45c8
compat/mingw: drop outdated comment
rimrul Dec 22, 2024
c4d7ea8
t0301: actually test credential-cache on Windows
rimrul Dec 29, 2024
0c6331f
Merge pull request #2837 from dscho/monitor-component-updates
dscho Oct 7, 2020
ef52c17
credential-cache: handle ECONNREFUSED gracefully
rimrul Dec 22, 2024
19a0d61
Merge 'readme' into HEAD
dscho Jun 7, 2018
783fac4
credential-cache: handle ECONNREFUSED gracefully (#5329)
dscho Jan 1, 2025
9b81fae
builtin/blame: fix out-of-bounds read with excessive `--abbrev`
pks-t Jan 9, 2025
049f0cf
GIT-VERSION-GEN: allow it to be run in parallel
dscho Jan 9, 2025
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
1 change: 1 addition & 0 deletions Documentation/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ cmds-*.txt
mergetools-*.txt
SubmittingPatches.txt
tmp-doc-diff/
tmp-meson-diff/
GIT-ASCIIDOCFLAGS
/.build/
/GIT-EXCLUDED-PROGRAMS
Expand Down
24 changes: 20 additions & 4 deletions Documentation/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,7 @@ clean:
$(RM) $(cmds_txt) $(mergetools_txt) *.made
$(RM) GIT-ASCIIDOCFLAGS
$(RM) asciidoc.conf asciidoctor-extensions.rb
$(RM) -rf tmp-meson-diff

docinfo.html: docinfo-html.in
$(QUIET_GEN)$(RM) $@ && cat $< >$@
Expand All @@ -362,12 +363,12 @@ manpage-cmd = $(QUIET_XMLTO)$(XMLTO) -m $(MANPAGE_XSL) $(XMLTO_EXTRA) man $<
%.xml : %.txt $(ASCIIDOC_DEPS)
$(QUIET_ASCIIDOC)$(TXT_TO_XML) -d manpage -o $@ $<

user-manual.xml: user-manual.txt user-manual.conf $(ASCIIDOC_DEPS)
user-manual.xml: user-manual.txt $(ASCIIDOC_DEPS)
$(QUIET_ASCIIDOC)$(TXT_TO_XML) -d book -o $@ $<

technical/api-index.txt: technical/api-index-skel.txt \
technical/api-index.sh $(patsubst %,%.txt,$(API_DOCS))
$(QUIET_GEN)cd technical && '$(SHELL_PATH_SQ)' ./api-index.sh
$(QUIET_GEN)'$(SHELL_PATH_SQ)' technical/api-index.sh ./technical ./technical/api-index.txt

technical/%.html: ASCIIDOC_EXTRA += -a git-relative-html-prefix=../
$(patsubst %,%.html,$(API_DOCS) technical/api-index $(TECH_DOCS)): %.html : %.txt \
Expand Down Expand Up @@ -411,8 +412,8 @@ gitman.info: gitman.texi
$(patsubst %.txt,%.texi,$(MAN_TXT)): %.texi : %.xml
$(QUIET_DB2TEXI)$(DOCBOOK2X_TEXI) --to-stdout $*.xml >$@

howto-index.txt: howto-index.sh $(HOWTO_TXT)
$(QUIET_GEN)'$(SHELL_PATH_SQ)' ./howto-index.sh $(sort $(HOWTO_TXT)) >$@
howto-index.txt: howto/howto-index.sh $(HOWTO_TXT)
$(QUIET_GEN)'$(SHELL_PATH_SQ)' ./howto/howto-index.sh $(sort $(HOWTO_TXT)) >$@

$(patsubst %,%.html,$(ARTICLES)) : %.html : %.txt $(ASCIIDOC_DEPS)
$(QUIET_ASCIIDOC)$(TXT_TO_HTML) $*.txt
Expand Down Expand Up @@ -494,13 +495,28 @@ lint-docs-fsck-msgids: $(LINT_DOCS_FSCK_MSGIDS)
lint-docs-manpages:
$(QUIET_GEN)./lint-manpages.sh

.PHONY: lint-docs-meson
lint-docs-meson:
@# awk acts up when trying to match single quotes, so we use \047 instead.
@mkdir -p tmp-meson-diff && \
awk "/^manpages = {$$/ {flag=1 ; next } /^}$$/ { flag=0 } flag { gsub(/^ \047/, \"\"); gsub(/\047 : [157],\$$/, \"\"); print }" meson.build | \
grep -v -e '#' -e '^$$' | \
sort >tmp-meson-diff/meson.txt && \
ls git*.txt scalar.txt | grep -v -e git-bisect-lk2009.txt -e git-tools.txt >tmp-meson-diff/actual.txt && \
if ! cmp tmp-meson-diff/meson.txt tmp-meson-diff/actual.txt; then \
echo "Meson man pages differ from actual man pages:"; \
diff -u tmp-meson-diff/meson.txt tmp-meson-diff/actual.txt; \
exit 1; \
fi

## Lint: list of targets above
.PHONY: lint-docs
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-manpages
lint-docs: lint-docs-meson

ifeq ($(wildcard po/Makefile),po/Makefile)
doc-l10n install-l10n::
Expand Down
10 changes: 10 additions & 0 deletions Documentation/RelNotes/2.48.0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@ Performance, Internal Implementation, Development Support etc.
info on gitk and git-gui maintainer.


* CI jobs that run threaded programs under LSan has been giving false
positives from time to time, which has been worked around.


Fixes since v2.47
-----------------

Expand Down Expand Up @@ -310,6 +314,12 @@ Fixes since v2.47
to avoid race condition even when multiple packs are involved.
(merge 62b3ec8a3f tb/bitmap-fix-pack-reuse later to maint).

* An earlier "csum-file checksum does not have to be computed with
sha1dc" topic had a few code paths that had initialized an
implementation of a hash function to be used by an unmatching hash
by mistake, which have been corrected.
(merge 599a63409b ps/weak-sha1-for-tail-sum-fix later to maint).

* Other code cleanup, docfix, build fix, etc.
(merge 77af53f56f aa/t7300-modernize later to maint).
(merge dcd590a39d bf/t-readme-mention-reftable later to maint).
Expand Down
10 changes: 10 additions & 0 deletions Documentation/asciidoc.conf.in
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,22 @@ manmanual=Git Manual
mansource=Git @GIT_VERSION@
revdate=@GIT_DATE@

ifdef::doctype-book[]
[titles]
underlines="__","==","--","~~","^^"
endif::doctype-book[]

ifdef::backend-docbook[]
[linkgit-inlinemacro]
ifndef::doctype-book[]
{0%{target}}
{0#<citerefentry>}
{0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>}
{0#</citerefentry>}
endif::doctype-book[]
ifdef::doctype-book[]
<ulink url="{target}.html">{target}{0?({0})}</ulink>
endif::doctype-book[]

[literal-inlinemacro]
{eval:re.sub(r'(&lt;[-a-zA-Z0-9.]+&gt;)', r'<emphasis>\1</emphasis>', re.sub(r'([\[\s|()>]|^|\]|&gt;)(\.?([-a-zA-Z0-9:+=~@,\/_^\$]+\.?)+)',r'\1<literal>\2</literal>', re.sub(r'(\.\.\.?)([^\]$.])', r'<literal>\1</literal>\2', macros.passthroughs[int(attrs['passtext'][1:-1])] if attrs['passtext'][1:-1].isnumeric() else attrs['passtext'][1:-1])))}
Expand Down
2 changes: 1 addition & 1 deletion Documentation/git.txt
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ their values the same way as Boolean valued configuration variables, e.g.
Here are the variables:

System
~~~~~~~~~~~~~~~~~~
~~~~~~
`HOME`::
Specifies the path to the user's home directory. On Windows, if
unset, Git will set a process environment variable equal to:
Expand Down
2 changes: 1 addition & 1 deletion Documentation/gitcli.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ scripting Git:
written in the 'stuck' form.

* Despite the above suggestion, when Arg is a path relative to the
home directory of a user, e.g. ~/directory/file or ~u/d/f, you
home directory of a user, e.g. `~/directory/file` or `~u/d/f`, you
may want to use the separate form, e.g. `git foo --file ~/mine`,
not `git foo --file=~/mine`. The shell will expand `~/` in the
former to your home directory, but most shells keep the tilde in
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ do
file="$txt"
fi

echo "* link:$file[$title] $from
echo "* link:howto/$(basename "$file")[$title] $from
$abstract

"
Expand Down
62 changes: 62 additions & 0 deletions Documentation/howto/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
howto_sources = [
'coordinate-embargoed-releases.txt',
'keep-canonical-history-correct.txt',
'maintain-git.txt',
'new-command.txt',
'rebase-from-internal-branch.txt',
'rebuild-from-update-hook.txt',
'recover-corrupted-blob-object.txt',
'recover-corrupted-object-harder.txt',
'revert-a-faulty-merge.txt',
'revert-branch-rebase.txt',
'separating-topic-branches.txt',
'setup-git-server-over-http.txt',
'update-hook-example.txt',
'use-git-daemon.txt',
'using-merge-subtree.txt',
'using-signed-tag-in-pull-request.txt',
]

howto_index = custom_target(
command: [
shell,
meson.current_source_dir() / 'howto-index.sh',
'@INPUT@',
],
env: script_environment,
capture: true,
input: howto_sources,
output: 'howto-index.txt',
)

custom_target(
command: asciidoc_html_options,
input: howto_index,
output: 'howto-index.html',
depends: documentation_deps,
install: true,
install_dir: get_option('datadir') / 'doc/git-doc',
)

foreach howto : howto_sources
howto_stripped = custom_target(
command: [
find_program('sed'),
'-e',
'1,/^$/d',
'@INPUT@',
],
input: howto,
output: fs.stem(howto) + '.stripped',
capture: true,
)

custom_target(
command: asciidoc_html_options,
input: howto_stripped,
output: fs.stem(howto_stripped.full_path()) + '.html',
depends: documentation_deps,
install: true,
install_dir: get_option('datadir') / 'doc/git-doc/howto',
)
endforeach
Loading
Loading