WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
428 commits
Select commit Hold shift + click to select a range
483c73b
t6601: add helper for testing path-walk API
derrickstolee Sep 18, 2024
f5cf8e5
repack/pack-objects: mark `--full-name-hash` as experimental
dscho Sep 24, 2024
efea267
path-walk: allow consumer to specify object types
derrickstolee Sep 1, 2024
229cc68
path-walk: allow visiting tags
derrickstolee Sep 9, 2024
6b02e8c
revision: create mark_trees_uninteresting_dense()
derrickstolee Sep 6, 2024
2bd12ae
path-walk: add prune_all_uninteresting option
derrickstolee Sep 4, 2024
7b0b966
pack-objects: extract should_attempt_deltas()
derrickstolee Sep 24, 2024
4ae0c15
pack-objects: add --path-walk option
derrickstolee Sep 5, 2024
e9acce7
pack-objects: introduce GIT_TEST_PACK_PATH_WALK
derrickstolee Sep 6, 2024
4e6ac7c
repack: add --path-walk option
derrickstolee Sep 5, 2024
6108ed4
pack-objects: enable --path-walk via config
derrickstolee Sep 5, 2024
cb1b10c
scalar: enable path-walk during push via config
derrickstolee Sep 5, 2024
11969a9
pack-objects: refactor path-walk delta phase
derrickstolee Sep 18, 2024
2f56089
backfill: add builtin boilerplate
derrickstolee Jun 7, 2024
db77bb9
pack-objects: thread the path-based compression
derrickstolee Sep 18, 2024
1df3d82
path-walk API: avoid adding a root tree more than once
dscho Oct 7, 2024
976f964
backfill: basic functionality and tests
derrickstolee Sep 1, 2024
d9013cb
backfill: add --batch-size=<n> option
derrickstolee Sep 1, 2024
65ecbcd
backfill: add --sparse option
derrickstolee Sep 1, 2024
ad0d10b
backfill: assume --sparse when sparse-checkout is enabled
derrickstolee Sep 1, 2024
f8f86c9
backfill: mark it as experimental
dscho Sep 26, 2024
b5b22c9
survey: stub in new experimental 'git-survey' command
Apr 29, 2024
5411a08
survey: add command line opts to select references
Apr 29, 2024
a2f2b04
survey: start pretty printing data in table form
derrickstolee Sep 1, 2024
47b2659
survey: add object count summary
derrickstolee Sep 2, 2024
8a45402
survey: summarize total sizes by object type
derrickstolee Sep 2, 2024
22f09cd
survey: show progress during object walk
derrickstolee Sep 2, 2024
0c887c3
survey: add ability to track prioritized lists
derrickstolee Sep 2, 2024
3e1d3a4
survey: add report of "largest" paths
derrickstolee Sep 2, 2024
bd2cc14
survey: add --top=<N> option and config
derrickstolee Sep 23, 2024
2050d48
survey: clearly note the experimental nature in the output
dscho Jul 1, 2024
5bbbed1
Merge branch 'safe-PATH-lookup-in-gitk-on-Windows'
dscho Jan 21, 2023
68ac3ef
Merge 'remote-hg-prerequisites' into HEAD
dscho Jun 8, 2018
70fc4c0
Merge branch 'drive-prefix'
dscho Jun 8, 2018
c5b5c39
Merge branch 'dont-clean-junctions'
dscho Jul 30, 2019
56eb9dc
Merge branch 'msys2-python'
dscho May 31, 2019
570d5bc
Merge branch 'mimalloc-v2.0.9'
dscho Sep 8, 2022
abe5613
Merge pull request #2375 from assarbad/reintroduce-sideband-config
dscho Oct 30, 2019
ae6c2b5
Merge pull request #2405 from dscho/mingw-setsockopt
dscho Nov 25, 2019
d7506f3
Merge pull request #2449 from dscho/mingw-getcwd-and-symlinks
dscho Jan 3, 2020
b1b3840
Merge pull request #2488 from bmueller84/master
dscho Jan 22, 2020
70be57a
Merge pull request #2501 from jeffhostetler/clink-debug-curl
dscho Jan 30, 2020
fd3f39d
Merge pull request #2504 from dscho/access-repo-via-junction
dscho Feb 1, 2020
c7d8e5d
Merge pull request #2506 from dscho/issue-2283
dscho Feb 11, 2020
06be178
Merge pull request #2535 from dscho/schannel-revoke-best-effort
dscho Mar 4, 2020
1454d65
Merge pull request #2618 from dscho/avoid-d/f-conflict-in-vs/master
dscho May 9, 2020
bb522e3
Merge 'add-p-many-files'
dscho Jun 8, 2018
380bdbf
Merge pull request #2730 from dscho/crlf-aware-git-add-i
dscho Jul 2, 2020
3845dad
Merge pull request #2714 from lbonanomi/crlf-scissors
dscho Jul 3, 2020
19528cf
Merge pull request #2655 from jglathe/jg/t0014_trace_extra_info
dscho Oct 9, 2020
407993c
Merge 'git-gui/js/intent-to-add'
dscho Oct 18, 2020
5060479
Merge pull request #2974 from derrickstolee/maintenance-and-headless
dscho Jan 11, 2021
04b7dee
cmake: install headless-git. (#4338)
dscho Mar 13, 2023
42accb7
Merge pull request #2351 from PhilipOakley/vcpkg-tip
dscho Oct 7, 2019
1d609c4
Merge pull request #2915 from dennisameling/windows-arm64-support
dscho Dec 9, 2020
0a14bdf
Merge pull request #3327 from dennisameling/fix-host-cpu
dscho Jul 19, 2021
81b5ff0
Merge pull request #3165 from dscho/increase-allowed-length-of-interp…
dscho Apr 3, 2021
bf54c3c
Merge pull request #3220 from dscho/there-is-no-vs/master-anymore
dscho May 17, 2021
90951bc
Merge pull request #3293 from pascalmuller/http-support-automatically…
dscho Jun 24, 2021
c62654f
Merge pull request #3349 from vdye/feature/ci-subtree-tests
dscho Aug 10, 2021
1116552
Merge pull request #3306 from PhilipOakley/vs-sln
dscho Oct 12, 2021
4c0423c
Merge pull request #3417 from dscho/initialize-core.symlinks-earlier
dscho Oct 13, 2021
6d846e5
Merge pull request #3533 from PhilipOakley/hashliteral_t
dscho Dec 15, 2021
9a1b355
Merge pull request #3791: Various fixes around `safe.directory`
derrickstolee Apr 13, 2022
2e8264a
Merge pull request #3751 from rkitover/native-term
dscho Apr 21, 2022
83b0176
Merge pull request #3875 from 1480c1/wine/detect_msys_tty
dscho May 30, 2022
547040d
Merge branch 'optionally-dont-append-atomically-on-windows'
dscho Jun 23, 2022
82d1834
Merge branch 'fsync-object-files-always'
dscho Oct 11, 2018
6e6fae6
Merge branch 'ci-fixes'
dscho Feb 11, 2021
73dc132
Merge pull request #3942 from rimrul/mingw-tsaware
dscho Jul 27, 2022
95612b1
Fix Windows version resources (#4092)
dscho Nov 3, 2022
7a0c28b
Merge branch 'builtin-swap-functions'
dscho Nov 23, 2022
056b6e3
Add support for CLANGARM64 target (#3916)
dscho Oct 28, 2022
5e44dd4
Fix global repository field not being cleared (#4083)
dscho Dec 20, 2022
d80b59b
Skip linking the "dashed" `git-<command>`s for built-ins (#4252)
dscho Jan 31, 2023
25aca7d
Git GUI: fix Repository>Explore Working Copy (#4357)
dscho Mar 21, 2023
62e3c56
Lazy load libcurl, allowing for an SSL/TLS backend-specific libcurl (…
dscho May 15, 2023
4424a11
Merge branch 'nano-server'
dscho Aug 7, 2023
622b15b
Additional error checks for issuing the windows.appendAtomically warn…
dscho Aug 7, 2023
a676270
win32: use native ANSI sequence processing, if possible (#4700)
dscho Dec 2, 2023
4b51daf
ARM64: Embed manifest properly (#4718)
dscho Dec 7, 2023
767c8e6
common-main.c: fflush stdout buffer when exit (#4901)
dscho Apr 12, 2024
d22eced
Merge branch 'run-t5601-and-t7406-with-symlinks-on-windows-10'
dscho Jul 12, 2024
73c0acf
Merge branch 'Fix-i686-build-with-GCC-v14'
dscho Jul 12, 2024
9d13cd3
Merge branch 'Fallback-to-AppData-if-XDG-CONFIG-HOME-is-unset'
dscho Jul 12, 2024
ea2dc2e
Merge branch 'run-command-be-helpful-when-Git-LFS-fails-on-Windows-7'
dscho Jul 12, 2024
f882803
pack-objects: create new name-hash algorithm (#5157)
dscho Sep 24, 2024
773bd46
Add path walk API and its use in 'git pack-objects' (#5171)
derrickstolee Sep 25, 2024
d23b190
path-walk API: avoid adding a root tree more than once (#5195)
dscho Oct 8, 2024
32e2cff
Introduce 'git backfill' to get missing blobs in a partial clone (#5172)
dscho Sep 26, 2024
c12726f
Add experimental 'git survey' builtin (#5174)
dscho Sep 26, 2024
dee6e10
path-walk: improve path-walk speed with many tags
derrickstolee Oct 9, 2024
2b74f7c
Makefile: fix dependency for $(UNIT_TEST_DIR)/clar/clar.o
phil-blain Oct 11, 2024
ac0b0e8
mingw.c: Fix complier warnings for a 64 bit msvc
soekkle Oct 17, 2024
2cc57e8
path-walk: improve path-walk speed with many tags (#5205)
dscho Oct 11, 2024
531b803
Merge branch 'pb/clar-build-fix'
ttaylorr Oct 18, 2024
9aff9d5
Merge branch 'sk/msvc-warnings'
ttaylorr Oct 18, 2024
3b31514
Win32: make FILETIME conversion functions public
kblees Jul 6, 2013
d67956c
Merge branch 'ready-for-upstream'
dscho Oct 11, 2018
0916d98
Win32: dirent.c: Move opendir down
kblees Sep 8, 2013
078ca6f
mingw: make the dirent implementation pluggable
kblees Sep 8, 2013
7a9d04d
Win32: make the lstat implementation pluggable
kblees Sep 8, 2013
b432ad2
mingw: add infrastructure for read-only file system level caches
kblees Sep 8, 2013
fe287c9
mingw: add a cache below mingw's lstat and dirent implementations
kblees Oct 1, 2013
76af47d
fscache: load directories only once
kblees Jun 24, 2014
fba27d9
fscache: add key for GIT_TRACE_FSCACHE
jeffhostetler Jan 24, 2017
d376cd2
dir.c: make add_excludes aware of fscache during status
jeffhostetler Nov 1, 2017
6c3fcc6
fscache: remember not-found directories
jeffhostetler Dec 13, 2016
e7fb9d5
fscache: make fscache_enabled() public
jeffhostetler Dec 20, 2017
5334827
fscache: add a test for the dir-not-found optimization
dscho Jan 25, 2017
9a2ec4c
add: use preload-index and fscache for performance
jeffhostetler Nov 22, 2016
b648f3d
dir.c: regression fix for add_excludes with fscache
jeffhostetler Dec 20, 2017
3ed426a
fetch-pack.c: enable fscache for stats under .git/objects
Nov 22, 2017
9edc43b
checkout.c: enable fscache for checkout again
Jan 30, 2018
ff7b5dc
Enable the filesystem cache (fscache) in refresh_index().
benpeart Sep 7, 2018
514aa16
mem_pool: add GIT_TRACE_MEMPOOL support
benpeart Oct 4, 2018
0769498
fscache: use FindFirstFileExW to avoid retrieving the short name
benpeart Oct 23, 2018
c03535e
status: disable and free fscache at the end of the status command
benpeart Nov 1, 2018
9e9c053
fscache: add GIT_TEST_FSCACHE support
benpeart Oct 4, 2018
43f88c4
fscache: add fscache hit statistics
benpeart Sep 25, 2018
3e2f937
fscache: fscache takes an initial size
benpeart Nov 2, 2018
c17cce8
fscache: update fscache to be thread specific instead of global
benpeart Oct 4, 2018
e19097e
fscache: teach fscache to use mempool
benpeart Nov 2, 2018
d7cf33d
fscache: make fscache_enable() thread safe
benpeart Nov 16, 2018
8b23bf0
fscache: teach fscache to use NtQueryDirectoryFile
benpeart Nov 15, 2018
2e024ab
fscache: remember the reparse tag for each entry
dscho Dec 11, 2018
03343ed
fscache: implement an FSCache-aware is_mount_point()
dscho Dec 11, 2018
fb8d206
unpack-trees: enable fscache for sparse-checkout
derrickstolee Jun 12, 2019
d9f7c48
clean: make use of FSCache
dscho Dec 11, 2018
b1f11b8
git-gui--askyesno: fix funny text wrapping
dscho Sep 20, 2017
4685e5f
gitk: Unicode file name support
kblees Feb 4, 2012
2962efb
git-gui: provide question helper for retry fallback on Windows
hvoigt Feb 21, 2010
d6f6e9b
git-gui--askyesno: allow overriding the window title
dscho Sep 20, 2017
528786d
gitk: Use an external icon file on Windows
sschuberth Jul 22, 2012
a4c23dc
git gui: set GIT_ASKPASS=git-gui--askpass if not set yet
dscho Jul 23, 2010
0d4f495
git-gui--askyesno (mingw): use Git for Windows' icon, if available
dscho Sep 20, 2017
74c8ff8
gitk: fix arrow keys in input fields with Tcl/Tk >= 8.6
dscho Feb 16, 2016
5b2888e
Merge 'git-gui' into HEAD
dscho Jun 7, 2018
7726fb9
gitk: make the "list references" default window width wider
sidecut Jan 21, 2016
e595b2d
Merge branch 'git-gui-askyesno'
dscho Jun 8, 2018
0ac08d7
Merge 'gitk' into HEAD
dscho Jun 7, 2018
df7ace8
Merge branch 'fscache'
dscho Nov 15, 2018
e12dee3
Merge pull request #994 from jeffhostetler/jeffhostetler/fscache_nfd
dscho Jun 8, 2018
cc0d2da
Merge pull request #971 from jeffhostetler/jeffhostetler/add_preload_…
dscho Jun 8, 2018
7b8af6e
Merge pull request #1344 from jeffhostetler/perf_add_excludes_with_fs…
dscho Jun 8, 2018
cc8732d
Merge pull request #1426 from atetubou/fetch_pack
dscho Jun 8, 2018
99b57c4
Merge pull request #1468 from atetubou/fscache_checkout_flush
dscho Oct 12, 2018
fd66a79
Merge pull request #1827 from benpeart/fscache_refresh_index
dscho Sep 27, 2018
694a311
Merge pull request #1908 from benpeart/FindFirstFileEx-gfw
dscho Nov 5, 2018
c41fd20
Merge pull request #1909 from benpeart/free-fscache-after-status-gfw
dscho Nov 5, 2018
ac3350d
Merge pull request #1911 from benpeart/git_test_fscache-gfw
dscho Nov 5, 2018
0454a46
Merge pull request #1910 from benpeart/fscache_statistics-gfw
dscho Nov 16, 2018
091632d
Merge remote-tracking branch 'benpeart/fscache-per-thread-gfw'
dscho Nov 16, 2018
652ad40
Merge pull request #1934 from benpeart/fscache-thread-safe-enable-gfw
dscho Nov 26, 2018
f92d4ef
Merge pull request #1937 from benpeart/fscache-NtQueryDirectoryFile-gfw
dscho Nov 27, 2018
2119f50
Merge branch 'fscache-and-sparse-checkout'
derrickstolee Jun 18, 2019
0d214ce
pack-objects (mingw): demonstrate a segmentation fault with large deltas
vangdfang Jan 9, 2014
3ef6ce7
Merge branch 'dont-clean-junctions-fscache'
dscho Jul 23, 2019
e6f2707
mingw: support long paths
kblees Jul 28, 2015
ff963b4
Win32: fix 'lstat("dir/")' with long paths
kblees Jul 4, 2014
e3ce232
win32(long path support): leave drive-less absolute paths intact
dscho Sep 6, 2023
a6f588e
compat/fsmonitor/fsm-*-win32: support long paths
jeffhostetler Mar 25, 2022
f418cfd
clean: suggest using `core.longPaths` if paths are too long to remove
mathstuf Apr 22, 2022
5c4aa7d
strbuf_readlink: don't call readlink twice if hint is the exact link …
kblees May 11, 2015
69e60dd
mingw: Support `git_terminal_prompt` with more terminals
kblees Mar 19, 2015
47f46b2
strbuf_readlink: support link targets that exceed PATH_MAX
kblees May 11, 2015
712ea9e
compat/terminal.c: only use the Windows console if bash 'read -r' fails
kblees May 9, 2015
c0d6f43
lockfile.c: use is_dir_sep() instead of hardcoded '/' checks
kblees May 11, 2015
b084059
mingw (git_terminal_prompt): do fall back to CONIN$/CONOUT$ method
dscho Feb 23, 2018
3cee87d
Win32: don't call GetFileAttributes twice in mingw_lstat()
kblees May 12, 2015
8c09f0b
Win32: implement stat() with symlink support
kblees May 15, 2015
cfbbe6d
Win32: remove separate do_lstat() function
kblees May 11, 2015
1adc244
Win32: let mingw_lstat() error early upon problems with reparse points
kblees May 23, 2015
052c593
mingw: teach fscache and dirent about symlinks
kblees Jan 10, 2017
16c30c4
Win32: lstat(): return adequate stat.st_size for symlinks
kblees May 15, 2015
d430fe6
Win32: factor out retry logic
kblees May 19, 2015
c153bde
Win32: change default of 'core.symlinks' to false
kblees May 23, 2015
f4d71dd
Win32: add symlink-specific error codes
kblees May 15, 2015
393164b
Win32: mingw_unlink: support symlinks to directories
kblees May 23, 2015
b140540
Win32: mingw_rename: support renaming symlinks
kblees May 19, 2015
a6b988f
Win32: mingw_chdir: change to symlink-resolved directory
kblees May 23, 2015
beccee0
Win32: implement readlink()
kblees May 23, 2015
99d1d87
mingw: lstat: compute correct size for symlinks
billziss-gh May 28, 2020
78ba988
Win32: implement basic symlink() functionality (file symlinks only)
kblees May 23, 2015
6c4ce32
Win32: symlink: add support for symlinks to directories
kblees May 23, 2015
44d9078
mingw: introduce code to detect whether we're inside a Windows container
zcube Apr 23, 2018
3903bbc
mingw: try to create symlinks without elevated permissions
dscho May 30, 2017
6729032
mingw: when running in a Windows container, try to rename() harder
zcube Apr 23, 2018
37d8a03
mingw: emulate stat() a little more faithfully
dscho Mar 2, 2020
02332aa
mingw: move the file_attr_to_st_mode() function definition
zcube Apr 23, 2018
721b645
mingw: special-case index entries for symlinks with buggy size
dscho Jun 4, 2020
492cfa7
mingw: Windows Docker volumes are *not* symbolic links
dscho Apr 23, 2018
9847064
Win32: symlink: move phantom symlink creation to a separate function
piscisaureus Oct 26, 2018
01be787
Introduce helper to create symlinks that knows about index_state
dscho Feb 11, 2019
3704977
mingw: allow to specify the symlink type in .gitattributes
piscisaureus Oct 26, 2018
cf25bbc
mingw: work around rename() failing on a read-only file
dsl101 Jul 28, 2023
c2381fd
Win32: symlink: add test for `symlink` attribute
piscisaureus Oct 26, 2018
2e1cfb8
mingw: explicitly specify with which cmd to prefix the cmdline
dscho Jul 20, 2017
8d1cd93
mingw: when path_lookup() failed, try BusyBox
dscho Jul 20, 2017
f13ebfb
test-lib: avoid unnecessary Perl invocation
dscho Aug 5, 2017
b7f932c
test-tool: learn to act as a drop-in replacement for `iconv`
dscho Jul 20, 2017
4d1c8b1
tests(mingw): if `iconv` is unavailable, use `test-helper --iconv`
dscho Jul 20, 2017
02cbbe7
gitattributes: mark .png files as binary
dscho Oct 11, 2018
d539e10
tests: move test PNGs into t/lib-diff/
dscho Aug 5, 2017
be5515e
tests: only override sort & find if there are usable ones in /usr/bin/
dscho Jul 17, 2017
ac4b91a
tests: use the correct path separator with BusyBox
dscho Nov 19, 2018
7304ba5
mingw: only use Bash-ism `builtin pwd -W` when available
dscho Jun 29, 2017
3078bdb
tests (mingw): remove Bash-specific pwd option
dscho Jun 30, 2017
c42863a
test-lib: add BUSYBOX prerequisite
dscho Jul 19, 2017
37cc59c
t5003: use binary file from t/lib-diff/
dscho Aug 5, 2017
cfb83ab
t5532: workaround for BusyBox on Windows
dscho Jul 21, 2017
113706c
t5605: special-case hardlink test for BusyBox-w32
dscho Jul 21, 2017
9afcac0
t5813: allow for $PWD to be a Windows path
dscho Jul 5, 2017
0a64894
t9200: skip tests when $PWD contains a colon
dscho Jul 7, 2017
228d139
mingw: add a Makefile target to copy test artifacts
dscho Jul 19, 2017
5f5aad9
mingw: optionally enable wsl compability file mode bits
swigger Jun 7, 2023
16b12db
mingw: kill child processes in a gentler way
dscho May 17, 2017
fd2663d
mingw: really handle SIGINT
dscho Apr 22, 2018
9d6f549
mingw: do not call xutftowcs_path in mingw_mktemp
neerajsi-msft Oct 27, 2021
d66d168
Partially un-revert "editor: save and reset terminal after calling ED…
dscho Nov 25, 2021
e59bd66
Add a GitHub workflow to monitor component updates
dscho Sep 29, 2020
0665635
reset: reinstate support for the deprecated --stdin option
dscho Dec 10, 2019
5a344f0
fsmonitor: reintroduce core.useBuiltinFSMonitor
vdye Apr 4, 2022
8299d91
dependabot: help keeping GitHub Actions versions up to date
dscho Feb 6, 2024
8638ef4
Describe Git for Windows' architecture [no ci]
dscho Feb 13, 2023
ce425d1
Modify the Code of Conduct for Git for Windows
dscho Oct 11, 2019
969b198
CONTRIBUTING.md: add guide for first-time contributors
derrickstolee Mar 1, 2018
3946a5f
README.md: Add a Windows-specific preamble
dscho Jan 10, 2014
4a8cf2f
Add an issue template
shiftkey Feb 18, 2016
c169b69
Modify the GitHub Pull Request template (to reflect Git for Windows)
Dec 22, 2017
4931518
Document how $HOME is set on Windows
alejandro5042 Mar 9, 2018
bb1e874
SECURITY.md: document Git for Windows' policies
dscho Aug 23, 2019
ee86471
Merge branch 'gitk-and-git-gui-patches'
dscho Oct 11, 2018
b5a4753
Merge branch 'long-paths'
dscho Nov 15, 2018
491ce4f
Merge branch 'fix-v4-fsmonitor-long-paths' into try-v4-fsmonitor
jeffhostetler Sep 29, 2021
b60d679
Merge pull request #3817 from mathstuf/name-too-long-advice
dscho Apr 22, 2022
dd7ca54
Merge branch 'msys2'
dscho Nov 15, 2018
ebc3409
Merge branch 'kblees/kb/symlinks'
dscho Nov 15, 2018
0d70b9b
Merge 'docker-volumes-are-no-symlinks'
dscho Oct 12, 2018
b961d16
mingw: try resetting the read-only bit if rename fails (#4527)
dscho Aug 7, 2023
069ea3b
Merge pull request #1897 from piscisaureus/symlink-attr
dscho Oct 31, 2018
c17197c
Merge branch 'busybox-w32'
dscho Feb 7, 2019
cc5fd2c
Merge branch 'wsl-file-mode-bits'
dscho Aug 7, 2023
86602ba
Merge pull request #1170 from dscho/mingw-kill-process
dscho Oct 11, 2018
ab6b819
Merge pull request #3492 from dscho/ns/batched-fsync
vdye Oct 28, 2021
4e41538
Merge branch 'un-revert-editor-save-and-reset'
dscho Jan 15, 2022
1241369
Merge branch 'phase-out-reset-stdin'
dscho Jun 8, 2018
0537f70
Merge branch 'deprecate-core.useBuiltinFSMonitor'
dscho Jan 24, 2023
afa0cd0
Merge pull request #2837 from dscho/monitor-component-updates
dscho Oct 7, 2020
2cd2243
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
31 changes: 31 additions & 0 deletions Documentation/RelNotes/2.47.1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
Git 2.47.1 Release Notes
========================

This is to flush accumulated fixes since 2.47.0 on the 'master'
front down to the maintenance track.


Fixes since Git 2.47
--------------------

* Use after free and double freeing at the end in "git log -L... -p"
had been identified and fixed.

* On macOS, fsmonitor can fall into a race condition that results in
a client waiting forever to be notified for an event that have
already happened. This problem has been corrected.

* "git maintenance start" crashed due to an uninitialized variable
reference, which has been corrected.

* Fail gracefully instead of crashing when attempting to write the
contents of a corrupt in-core index as a tree object.

* A "git fetch" from the superproject going down to a submodule used
a wrong remote when the default remote names are set differently
between them.

* The "gitk" project tree has been synchronized again with its new
maintainer, Johannes Sixt.

Also contains minor documentation updates and code clean-ups.
8 changes: 4 additions & 4 deletions Documentation/git-checkout.txt
Original file line number Diff line number Diff line change
Expand Up @@ -290,10 +290,10 @@ Note that this option uses the no overlay mode by default (see also
`--overlay`), and currently doesn't support overlay mode.

--ignore-other-worktrees::
`git checkout` refuses when the wanted ref is already checked
out by another worktree. This option makes it check the ref
out anyway. In other words, the ref can be held by more than one
worktree.
`git checkout` refuses when the wanted branch is already checked
out or otherwise in use by another worktree. This option makes
it check the branch out anyway. In other words, the branch can
be in use by more than one worktree.

--overwrite-ignore::
--no-overwrite-ignore::
Expand Down
4 changes: 3 additions & 1 deletion Documentation/git-maintenance.txt
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,9 @@ on an hourly basis. Each run executes the "hourly" tasks. At midnight,
that process also executes the "daily" tasks. At midnight on the first day
of the week, that process also executes the "weekly" tasks. A single
process iterates over each registered repository, performing the scheduled
tasks for that frequency. Depending on the number of registered
tasks for that frequency. The processes are scheduled to a random minute of
the hour per client to spread out the load that multiple clients might
generate (e.g. from prefetching). Depending on the number of registered
repositories and their sizes, this process may take longer than an hour.
In this case, multiple `git maintenance run` commands may run on the same
repository at the same time, colliding on the object database lock. This
Expand Down
12 changes: 9 additions & 3 deletions Documentation/git-merge-tree.txt
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,15 @@ linkgit:git-commit-tree[1], linkgit:git-write-tree[1],
linkgit:git-update-ref[1], and linkgit:git-mktag[1]. Thus, it can be
used as a part of a series of steps such as:

NEWTREE=$(git merge-tree --write-tree $BRANCH1 $BRANCH2)
test $? -eq 0 || die "There were conflicts..."
NEWCOMMIT=$(git commit-tree $NEWTREE -p $BRANCH1 -p $BRANCH2)
vi message.txt
BRANCH1=refs/heads/test
BRANCH2=main
NEWTREE=$(git merge-tree --write-tree $BRANCH1 $BRANCH2) || {
echo "There were conflicts..." 1>&2
exit 1
}
NEWCOMMIT=$(git commit-tree $NEWTREE -F message.txt \
-p $BRANCH1 -p $BRANCH2)
git update-ref $BRANCH1 $NEWCOMMIT

Note that when the exit status is non-zero, `NEWTREE` in this sequence
Expand Down
4 changes: 2 additions & 2 deletions Documentation/gitprotocol-v2.txt
Original file line number Diff line number Diff line change
Expand Up @@ -527,8 +527,8 @@ a request.

The provided options must not contain a NUL or LF character.

object-format
~~~~~~~~~~~~~~~
object-format
~~~~~~~~~~~~~

The server can advertise the `object-format` capability with a value `X` (in the
form `object-format=X`) to notify the client that the server is able to deal
Expand Down
44 changes: 44 additions & 0 deletions Documentation/howto/maintain-git.txt
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,13 @@ Note that before v1.9.0 release, the version numbers used to be
structured slightly differently. vX.Y.Z were feature releases while
vX.Y.Z.W were maintenance releases for vX.Y.Z.

Because most of the lines of code in Git are written by individual
contributors, and contributions come in the form of e-mailed patches
published on the mailing list, the project maintains a mapping from
individual commits to the Message-Id of the e-mail that resulted in
the commit, to help tracking the origin of the changes. The notes
in "refs/notes/amlog" are used for this purpose, and are published
along with the broken-out branches to the maintainer's repository.

A Typical Git Day
-----------------
Expand Down Expand Up @@ -180,6 +187,43 @@ by doing the following:
In practice, almost no patch directly goes to 'master' or
'maint'.

Applying the e-mailed patches using "git am" automatically records
the mappings from 'Message-Id' to the applied commit in the "amlog"
notes. Periodically check that this is working with "git show -s
--notes=amlog $commit".

This mapping is maintained with the aid of the "post-applypatch"
hook found in the 'todo' branch. That hook should be installed
before applying patches. It is also helpful to carry forward any
relevant amlog entries when rebasing, so the following config may
be useful:

[notes]
rewriteRef = refs/notes/amlog

Avoid "cherry-pick", as it does not propagate notes by design. Use
either "git commit --amend" or "git rebase" to make corrections to
an existing commit, even for a single-patch topic.

Make sure that a push refspec for 'refs/notes/amlog' is in the
remote configuration for publishing repositories. A few sample
configurations look like the following:

[remote "github"]
url = https://github.com/gitster/git
pushurl = github.com:gitster/git.git
mirror

[remote "github2"]
url = https://github.com/git/git
fetch = +refs/heads/*:refs/remotes/github2/*
pushurl = github.com:git/git.git
push = refs/heads/maint:refs/heads/maint
push = refs/heads/master:refs/heads/master
push = refs/heads/next:refs/heads/next
push = +refs/heads/seen:refs/heads/seen
push = +refs/notes/amlog

- Review the last issue of "What's cooking" message, review the
topics ready for merging (topic->master and topic->maint). Use
"Meta/cook -w" script (where Meta/ contains a checkout of the
Expand Down
7 changes: 4 additions & 3 deletions Documentation/pull-fetch-param.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,15 @@ endif::git-pull[]
+
The format of a <refspec> parameter is an optional plus
`+`, followed by the source <src>, followed
by a colon `:`, followed by the destination ref <dst>.
by a colon `:`, followed by the destination <dst>.
The colon can be omitted when <dst> is empty. <src> is
typically a ref, but it can also be a fully spelled hex object
typically a ref, or a glob pattern with a single `*` that is used
to match a set of refs, but it can also be a fully spelled hex object
name.
+
A <refspec> may contain a `*` in its <src> to indicate a simple pattern
match. Such a refspec functions like a glob that matches any ref with the
same prefix. A pattern <refspec> must have a `*` in both the <src> and
pattern. A pattern <refspec> must have one and only one `*` in both the <src> and
<dst>. It will map refs to the destination by replacing the `*` with the
contents matched from the source.
+
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.47.0
DEF_VER=v2.47.1

LF='
'
Expand Down
2 changes: 1 addition & 1 deletion RelNotes
2 changes: 1 addition & 1 deletion builtin/checkout.c
Original file line number Diff line number Diff line change
Expand Up @@ -1718,7 +1718,7 @@ static struct option *add_common_switch_branch_options(
N_("update ignored files (default)"),
PARSE_OPT_NOCOMPLETE),
OPT_BOOL(0, "ignore-other-worktrees", &opts->ignore_other_worktrees,
N_("do not check if another worktree is holding the given ref")),
N_("do not check if another worktree is using this branch")),
OPT_END()
};
struct option *newopts = parse_options_concat(prevopts, options);
Expand Down
18 changes: 13 additions & 5 deletions bundle-uri.c
Original file line number Diff line number Diff line change
Expand Up @@ -368,17 +368,23 @@ static int unbundle_from_file(struct repository *r, const char *file)
struct strbuf bundle_ref = STRBUF_INIT;
size_t bundle_prefix_len;

if ((bundle_fd = read_bundle_header(file, &header)) < 0)
return 1;
bundle_fd = read_bundle_header(file, &header);
if (bundle_fd < 0) {
result = 1;
goto cleanup;
}

/*
* Skip the reachability walk here, since we will be adding
* a reachable ref pointing to the new tips, which will reach
* the prerequisite commits.
*/
if ((result = unbundle(r, &header, bundle_fd, NULL,
VERIFY_BUNDLE_QUIET | (fetch_pack_fsck_objects() ? VERIFY_BUNDLE_FSCK : 0))))
return 1;
result = unbundle(r, &header, bundle_fd, NULL,
VERIFY_BUNDLE_QUIET | (fetch_pack_fsck_objects() ? VERIFY_BUNDLE_FSCK : 0));
if (result) {
result = 1;
goto cleanup;
}

/*
* Convert all refs/heads/ from the bundle into refs/bundles/
Expand Down Expand Up @@ -407,6 +413,8 @@ static int unbundle_from_file(struct repository *r, const char *file)
0, UPDATE_REFS_MSG_ON_ERR);
}

cleanup:
strbuf_release(&bundle_ref);
bundle_header_release(&header);
return result;
}
Expand Down
4 changes: 2 additions & 2 deletions compat/fsmonitor/fsm-listen-win32.c
Original file line number Diff line number Diff line change
Expand Up @@ -431,9 +431,9 @@ static int recv_rdcw_watch(struct one_watch *watch)
* but I observed ERROR_ACCESS_DENIED (0x05) errors during
* testing.
*
* Note that we only get notificaiton events for events
* Note that we only get notification events for events
* *within* the directory, not *on* the directory itself.
* (These might be properies of the parent directory, for
* (These might be properties of the parent directory, for
* example).
*
* NEEDSWORK: We might try to check for the deleted directory
Expand Down
2 changes: 1 addition & 1 deletion compat/regex/regexec.c
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ compat_symbol (libc, __compat_regexec, regexec, GLIBC_2_0);
concerned.

If REGS is not NULL, and BUFP->no_sub is not set, the offsets of the match
and all groups is stroed in REGS. (For the "_2" variants, the offsets are
and all groups are stored in REGS. (For the "_2" variants, the offsets are
computed relative to the concatenation, not relative to the individual
strings.)

Expand Down
2 changes: 1 addition & 1 deletion compat/simple-ipc/ipc-unix-socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@ static int accept_thread__wait_for_connection(
* Block SIGPIPE in this thread for the life of the thread. This
* avoids any stray SIGPIPE signals when closing pipe fds under
* extremely heavy loads (such as when the fifo queue is full and we
* drop incomming connections).
* drop incoming connections).
*/
static void *accept_thread_proc(void *_accept_thread_data)
{
Expand Down
4 changes: 2 additions & 2 deletions contrib/completion/git-completion.bash
Original file line number Diff line number Diff line change
Expand Up @@ -3296,7 +3296,7 @@ __gitcomp_directories ()
# i.e. which are *already* part of their
# sparse-checkout. Thus, normal file and directory
# completion is always useless for "git
# sparse-checkout add" and is also probelmatic for
# sparse-checkout add" and is also problematic for
# "git sparse-checkout set" unless using it to
# strictly narrow the checkout.
COMPREPLY=( "" )
Expand Down Expand Up @@ -3698,7 +3698,7 @@ _git_worktree ()
# Here we are not completing an --option, it's either the
# path or a ref.
case "$prev" in
-b|-B) # Complete refs for branch to be created/reseted.
-b|-B) # Complete refs for branch to be created/reset.
__git_complete_refs
;;
-*) # The previous word is an -o|--option without an
Expand Down
2 changes: 1 addition & 1 deletion contrib/subtree/git-subtree.sh
Original file line number Diff line number Diff line change
Expand Up @@ -946,7 +946,7 @@ cmd_split () {
rev=$(git rev-parse -q --verify "$1^{commit}") ||
die "fatal: '$1' does not refer to a commit"
else
die "fatal: you must provide exactly one revision, and optionnally a repository. Got: '$*'"
die "fatal: you must provide exactly one revision, and optionally a repository. Got: '$*'"
fi
repository=""
if test "$#" = 2
Expand Down
2 changes: 1 addition & 1 deletion contrib/subtree/t/t7900-subtree.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ last_commit_subject () {
# pre-2.32.0 versions of 'git subtree' would write the hash of the tag
# (sub1 below), instead of the commit (sub1^{commit}) in the
# "git-subtree-split" trailer.
# We immitate this behaviour below using a replace ref.
# We imitate this behaviour below using a replace ref.
# This function creates 3 repositories:
# - $1
# - $1-sub (added as subtree "sub" in $1)
Expand Down
8 changes: 3 additions & 5 deletions diff.c
Original file line number Diff line number Diff line change
Expand Up @@ -2317,10 +2317,9 @@ const char *diff_get_color(int diff_use_color, enum color_diff ix)

const char *diff_line_prefix(struct diff_options *opt)
{
if (opt->output_prefix)
return opt->output_prefix(opt, opt->output_prefix_data);

return "";
return opt->output_prefix ?
opt->output_prefix(opt, opt->output_prefix_data) :
"";
}

static unsigned long sane_truncate_line(char *line, unsigned long len)
Expand Down Expand Up @@ -5398,7 +5397,6 @@ static int diff_opt_line_prefix(const struct option *opt,

BUG_ON_OPT_NEG(unset);
options->line_prefix = optarg;
options->line_prefix_length = strlen(options->line_prefix);
graph_setup_line_prefix(options);
return 0;
}
Expand Down
1 change: 0 additions & 1 deletion diff.h
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,6 @@ struct diff_options {
const char *single_follow;
const char *a_prefix, *b_prefix;
const char *line_prefix;
size_t line_prefix_length;

/**
* collection of boolean options that affects the operation, but some do
Expand Down
27 changes: 16 additions & 11 deletions graph.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,7 @@ static void graph_show_line_prefix(const struct diff_options *diffopt)
if (!diffopt || !diffopt->line_prefix)
return;

fwrite(diffopt->line_prefix,
sizeof(char),
diffopt->line_prefix_length,
diffopt->file);
fputs(diffopt->line_prefix, diffopt->file);
}

static const char **column_colors;
Expand Down Expand Up @@ -312,22 +309,28 @@ struct git_graph {
* stored as an index into the array column_colors.
*/
unsigned short default_column_color;

/*
* Scratch buffer for generating prefixes to be used with
* diff_output_prefix_callback().
*/
struct strbuf prefix_buf;
};

static const char *diff_output_prefix_callback(struct diff_options *opt, void *data)
{
struct git_graph *graph = data;
static struct strbuf msgbuf = STRBUF_INIT;

assert(opt);

strbuf_reset(&msgbuf);
if (!graph)
return opt->line_prefix;

strbuf_reset(&graph->prefix_buf);
if (opt->line_prefix)
strbuf_add(&msgbuf, opt->line_prefix,
opt->line_prefix_length);
if (graph)
graph_padding_line(graph, &msgbuf);
return msgbuf.buf;
strbuf_addstr(&graph->prefix_buf, opt->line_prefix);
graph_padding_line(graph, &graph->prefix_buf);
return graph->prefix_buf.buf;
}

static const struct diff_options *default_diffopt;
Expand Down Expand Up @@ -397,6 +400,7 @@ struct git_graph *graph_init(struct rev_info *opt)
* The diff output prefix callback, with this we can make
* all the diff output to align with the graph lines.
*/
strbuf_init(&graph->prefix_buf, 0);
opt->diffopt.output_prefix = diff_output_prefix_callback;
opt->diffopt.output_prefix_data = graph;

Expand All @@ -412,6 +416,7 @@ void graph_clear(struct git_graph *graph)
free(graph->new_columns);
free(graph->mapping);
free(graph->old_mapping);
strbuf_release(&graph->prefix_buf);
free(graph);
}

Expand Down
7 changes: 1 addition & 6 deletions log-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -922,12 +922,7 @@ int log_tree_diff_flush(struct rev_info *opt)
* diff/diffstat output for readability.
*/
int pch = DIFF_FORMAT_DIFFSTAT | DIFF_FORMAT_PATCH;
if (opt->diffopt.output_prefix) {
const char *msg;
msg = opt->diffopt.output_prefix(&opt->diffopt,
opt->diffopt.output_prefix_data);
fwrite(msg, strlen(msg), 1, opt->diffopt.file);
}
fputs(diff_line_prefix(&opt->diffopt), opt->diffopt.file);

/*
* We may have shown three-dashes line early
Expand Down
Loading
Loading