Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
345 commits
Select commit Hold shift + click to select a range
96ce121
mingw: ignore HOMEDRIVE/HOMEPATH if it points to Windows' system dire…
dscho Aug 25, 2020
75c2ed5
cmake: install headless-git.
Berrysoft Mar 11, 2023
4d0e492
git.rc: include winuser.h
rimrul Dec 2, 2023
c10690e
mingw: do load libcurl dynamically by default
dscho May 7, 2023
146cb0b
Add a GitHub workflow to verify that Git/Scalar work in Nano Server
dscho Nov 2, 2022
5470cbc
mingw: suggest `windows.appendAtomically` in more cases
dsl101 Jul 28, 2023
ae48d95
win32: use native ANSI sequence processing, if possible
dscho Nov 22, 2023
071d564
common-main.c: fflush stdout buffer upon exit
chengzhuo5 Apr 8, 2024
44da6d7
t5601/t7406(mingw): do run tests with symlink support
dscho Apr 9, 2024
5a075cb
Fallback to AppData if XDG_CONFIG_HOME is unset
ariellourenco Jul 2, 2024
1ab4500
revision: create mark_trees_uninteresting_dense()
derrickstolee Sep 6, 2024
d6a3407
survey: clearly note the experimental nature in the output
dscho Jul 1, 2024
0cd8584
repo: filter the structure scope via --ref-filter=<pattern>
dscho Jun 5, 2026
27337dd
diff: stop truncating the deflated-binary-diff size on Windows
dscho Jun 5, 2026
5f4cbe8
repo: report top-N paths by count, disk, and inflated size in structure
dscho Jun 5, 2026
1f37fd2
mingw: make sure `errno` is set correctly when socket operations fail
dscho Nov 14, 2019
f123d3d
convert: widen gather_convert_stats() helpers to size_t
dscho Jun 5, 2026
bd5637f
t1901: cover the --top option of `git repo structure`
dscho Jun 5, 2026
c5bc0d4
compat/mingw: handle WSA errors in strerror
rimrul Dec 22, 2024
ed29780
t5563: verify that NTLM authentication works
dscho Nov 26, 2025
b5e4c5f
mingw: introduce code to detect whether we're inside a Windows container
zcube Apr 23, 2018
ceb9bac
Win32: symlink: move phantom symlink creation to a separate function
piscisaureus Oct 26, 2018
14fe6d7
read-cache: stop truncating index blob sizes on Windows
dscho Jun 5, 2026
3a9a9f8
repo: read the `--top` default from `repo.structure.top`
dscho Jun 5, 2026
1dcd283
compat/mingw: drop outdated comment
rimrul Dec 22, 2024
4ff3b12
http: disallow NTLM authentication by default
dscho Nov 26, 2025
beb6012
mingw: Support `git_terminal_prompt` with more terminals
kblees Mar 19, 2015
758df87
mingw: when running in a Windows container, try to rename() harder
zcube Apr 23, 2018
1b0e62f
Introduce helper to create symlinks that knows about index_state
dscho Feb 11, 2019
8b6ef9b
xdiff-interface: widen buffer_is_binary() size parameter to size_t
dscho Jun 5, 2026
38ebd74
git-survey: announce the upcoming pivot into `git repo structure`
dscho Jun 5, 2026
60bde05
t0301: actually test credential-cache on Windows
rimrul Dec 29, 2024
0e76203
http: warn if might have failed because of NTLM
dscho Nov 26, 2025
78484fe
compat/terminal.c: only use the Windows console if bash 'read -r' fails
kblees May 9, 2015
9449cc8
mingw: move the file_attr_to_st_mode() function definition
zcube Apr 23, 2018
80813d5
mingw: allow to specify the symlink type in .gitattributes
piscisaureus Oct 26, 2018
a4d9b74
clean: do not traverse mount points
dscho Dec 7, 2018
4901bd7
combine-diff: stop truncating combined-diff blob sizes on Windows
dscho Jun 5, 2026
4d2c654
pack-bitmap: stop truncating blob sizes used by --filter=blob:limit
dscho Jun 5, 2026
eac899e
survey: turn into a thin shim over `git repo structure`
dscho Jun 5, 2026
b0d39f3
credential-cache: handle ECONNREFUSED gracefully
rimrul Dec 22, 2024
91071a2
reftable: do make sure to use custom allocators
dscho Mar 6, 2025
355c62d
check-whitespace: avoid alerts about upstream commits
dscho Jun 3, 2025
0ceea94
t/t5571-prep-push-hook.sh: Add test with writing to stderr
t-b Jan 26, 2026
339bd4e
credential: advertise NTLM suppression and allow helpers to re-enable
dscho Feb 9, 2026
8065242
dir: do not traverse mount points
maks244 Mar 30, 2026
2107042
win32: thread-utils: handle multi-socket systems
rimrul Feb 21, 2026
fcd7636
t5563: add tests for http.emptyAuth with Negotiate
mjcheetham Apr 13, 2026
373d334
entry: flush fscache after creating directories and writing files
tyrielv May 18, 2026
94582b3
ci(macos): skip the `git p4` tests
dscho Nov 13, 2025
03c5a21
mingw (git_terminal_prompt): do fall back to CONIN$/CONOUT$ method
dscho Feb 23, 2018
3578b5c
mingw: Windows Docker volumes are *not* symbolic links
dscho Apr 23, 2018
847ea63
mingw: work around rename() failing on a read-only file
dsl101 Jul 28, 2023
9853de1
Win32: symlink: add test for `symlink` attribute
piscisaureus Oct 26, 2018
3978bca
clean: remove mount points when possible
dscho Dec 11, 2018
df36504
mingw: optionally enable wsl compability file mode bits
swigger Jun 7, 2023
f9871cb
Refuse to follow invalid paths in `.git` files
csware May 28, 2026
9dc71f7
tree-walk: drop link_len cast in get_tree_entry_follow_symlinks()
dscho Jun 5, 2026
08eaa17
tree-walk: widen init_tree_desc() and init_tree_desc_gently() to size_t
dscho Jun 5, 2026
67b5dd7
diff: widen textconv_object() size out-param to size_t
dscho Jun 5, 2026
e120118
Merge branch 'size-t/pack-objects-delta'
dscho Jun 7, 2026
175bcce
pack-objects: drop the two tree-walk casts in the preferred-base path
dscho Jun 5, 2026
9473dfe
diffcore: widen struct diff_filespec.size to size_t
dscho Jun 5, 2026
f4261d4
Merge branch 'size-t/pack-bitmap'
dscho Jun 7, 2026
f026774
tree: widen struct tree.size and parse_tree_buffer() to size_t
dscho Jun 5, 2026
d5d75a5
Merge branch 'size-t/diff'
dscho Jun 7, 2026
cfe47a3
Merge branch 'topic/size-t' into size-t-followups
dscho Jun 22, 2026
c902319
commit: widen the commit-buffer API to size_t
dscho Jun 5, 2026
aa61d1d
Merge branch 'size-t/tree'
dscho Jun 7, 2026
e1d2644
pack-objects: drop cast_size_t_to_ulong shims in get_delta()
dscho Jun 5, 2026
85084ea
blame: widen find_line_starts() len parameter to size_t
dscho Jun 5, 2026
26fd2e1
Merge branch 'size-t/commit'
dscho Jun 7, 2026
ee2e8d7
pack-objects: drop cast_size_t_to_ulong shims in try_delta()
dscho Jun 5, 2026
edfa7e1
grep: widen struct grep_source.size and grep_buffer() to size_t
dscho Jun 5, 2026
f0e3436
Merge branch 'size-t/blame'
dscho Jun 7, 2026
7b2fb9e
pack-objects: drop the last size shim in write_no_reuse_object()
dscho Jun 5, 2026
756e4f5
fast-export: drop the export_blob() size cast and widen anonymize_blob()
dscho Jun 5, 2026
da7c12c
Merge branch 'size-t/grep'
dscho Jun 7, 2026
45f465b
blame: widen struct blame_scoreboard.final_buf_size to size_t
dscho Jun 5, 2026
512e60e
repo: drop the inflated-size cast in count_objects()
dscho Jun 5, 2026
6b861de
Merge branch 'size-t/fast-export'
dscho Jun 7, 2026
8e9a0d4
fast-import: drop the six size casts in the object-read paths
dscho Jun 5, 2026
ad10cd7
unpack-objects: widen the size-passing infrastructure to size_t
dscho Jun 5, 2026
9184ee5
Merge branch 'size-t/repo'
dscho Jun 7, 2026
791e1ad
t/helper/test-pack-deltas: drop the delta_size cast in write_ref_delta()
dscho Jun 5, 2026
28d8b4a
Merge branch 'size-t/unpack-objects'
dscho Jun 7, 2026
2af2f15
Drop the `cast_size_t_to_ulong()` helper
dscho Jun 22, 2026
362e3bf
Merge branch 'topic/size-t' (size_t evacuation, upstream-bound)
dscho Jun 7, 2026
234694d
Merge branch 'topic/size-t-followups' (size_t followups depending on …
dscho Jun 7, 2026
fecdd9f
mingw: handle staging 4GB+ files correctly
dscho Jul 30, 2026
267ee30
mingw: support unpacking loose 4GB+ objects
dscho Jul 30, 2026
0fbd58c
difftool: do not crash on a path rejected by verify_path()
Suhail98 Sep 19, 2026
d92a525
t: add an expensive test to verify that 4GB+ blobs can be staged/read
dscho Jul 30, 2026
2a4d52f
difftool: avoid memory leak when `run_dir_diff()` fails
dscho Sep 28, 2026
9ba8c50
object-file: use size_t for object size in check_object_signature()
i80487 Sep 15, 2026
5be054f
coverity: skip building with Rust, for now
dscho Jun 23, 2026
d21070d
difftool: avoid invalid memory access by an atexit handler
dscho Sep 28, 2026
674740f
difftool: do not crash on a path rejected by verify_path() (#6426)
dscho Sep 28, 2026
05c0535
Merge tag 'v2.55.0.windows.4'
dscho Aug 11, 2026
dec8dd7
Merge branch 'bump-ci-actions'
dscho Jun 23, 2026
beef034
Merge 'remote-hg-prerequisites' into HEAD
dscho Jun 8, 2018
fe104a7
Merge branch 'drive-prefix'
dscho Jun 8, 2018
8e74a88
Merge pull request #2375 from assarbad/reintroduce-sideband-config
dscho Oct 30, 2019
edfbdbe
Merge pull request #2488 from bmueller84/master
dscho Jan 22, 2020
40b955c
Merge pull request #2501 from jeffhostetler/clink-debug-curl
dscho Jan 30, 2020
2684ccf
Merge pull request #2504 from dscho/access-repo-via-junction
dscho Feb 1, 2020
d16f032
Merge pull request #2535 from dscho/schannel-revoke-best-effort
dscho Mar 4, 2020
53ef5fe
Merge pull request #2618 from dscho/avoid-d/f-conflict-in-vs/master
dscho May 9, 2020
40856f7
Merge 'add-p-many-files'
dscho Jun 8, 2018
789e25c
Merge pull request #2714 from lbonanomi/crlf-scissors
dscho Jul 3, 2020
9cc25ff
Merge pull request #2655 from jglathe/jg/t0014_trace_extra_info
dscho Oct 9, 2020
bbd9cde
Merge 'git-gui/js/intent-to-add'
dscho Oct 18, 2020
4b0f575
Merge pull request #2351 from PhilipOakley/vcpkg-tip
dscho Oct 7, 2019
a925603
Merge pull request #2915 from dennisameling/windows-arm64-support
dscho Dec 9, 2020
05eee2e
Merge pull request #3327 from dennisameling/fix-host-cpu
dscho Jul 19, 2021
9878b88
Merge pull request #3165 from dscho/increase-allowed-length-of-interp…
dscho Apr 3, 2021
cef7521
Merge pull request #3220 from dscho/there-is-no-vs/master-anymore
dscho May 17, 2021
e12e628
Merge pull request #3293 from pascalmuller/http-support-automatically…
dscho Jun 24, 2021
db5fccf
Merge pull request #3349 from vdye/feature/ci-subtree-tests
dscho Aug 10, 2021
9bab68b
Merge pull request #3306 from PhilipOakley/vs-sln
dscho Oct 12, 2021
5633181
Merge pull request #3533 from PhilipOakley/hashliteral_t
dscho Dec 15, 2021
dd216a6
Merge pull request #3791: Various fixes around `safe.directory`
derrickstolee Apr 13, 2022
ba79fac
Merge pull request #3751 from rkitover/native-term
dscho Apr 21, 2022
35596a4
Merge pull request #3875 from 1480c1/wine/detect_msys_tty
dscho May 30, 2022
fbb393c
Merge branch 'optionally-dont-append-atomically-on-windows'
dscho Jun 23, 2022
d4deb4b
Merge branch 'fsync-object-files-always'
dscho Oct 11, 2018
dd9410b
Merge pull request #3942 from rimrul/mingw-tsaware
dscho Jul 27, 2022
be88d40
Fix Windows version resources (#4092)
dscho Nov 3, 2022
643dde6
Fix global repository field not being cleared (#4083)
dscho Dec 20, 2022
f37d6a8
Add full `mingw-w64-git` (i.e. regular MSYS2 ecosystem) support (#5971)
dscho Nov 25, 2025
3cd1d8b
Merge pull request #2506 from dscho/issue-2283
dscho Feb 11, 2020
445b00a
Merge pull request #2974 from derrickstolee/maintenance-and-headless
dscho Jan 11, 2021
276b779
ARM64: Embed manifest properly (#4718)
dscho Dec 7, 2023
54e04e7
Lazy load libcurl, allowing for an SSL/TLS backend-specific libcurl (…
dscho May 15, 2023
f7cb5d8
Merge branch 'nano-server'
dscho Aug 7, 2023
e892bc8
Additional error checks for issuing the windows.appendAtomically warn…
dscho Aug 7, 2023
9780624
win32: use native ANSI sequence processing, if possible (#4700)
dscho Dec 2, 2023
2ec90d5
common-main.c: fflush stdout buffer when exit (#4901)
dscho Apr 12, 2024
3ac2cca
Merge branch 'run-t5601-and-t7406-with-symlinks-on-windows-10'
dscho Jul 12, 2024
c74dbf3
Merge branch 'Fallback-to-AppData-if-XDG-CONFIG-HOME-is-unset'
dscho Jul 12, 2024
89d512c
Add path walk API and its use in 'git pack-objects' (#5171)
derrickstolee Sep 25, 2024
21cca68
Add experimental 'git survey' builtin (#5174)
dscho Sep 26, 2024
f26b70f
Turn `git survey` into a deprecated shim over `git repo structure` (#…
dscho Jul 8, 2026
4e60c37
credential-cache: handle ECONNREFUSED gracefully (#5329)
dscho Jan 1, 2025
2bbf41f
Merge branch 'reftable-vs-custom-allocators'
dscho Jun 2, 2025
f3f3fb4
Merge branch 'check-whitespace-only-downstream'
dscho Jun 3, 2025
deb1012
t/t5571-prep-push-hook.sh: Add test with writing to stderr (#6063)
dscho Jan 27, 2026
99e58b7
Merge branch 'disallow-ntlm-auth-by-default'
dscho Feb 12, 2026
8ae7703
Don't traverse mount points in `remove_dir_recurse()` (#6151)
dscho Mar 31, 2026
bff47a7
Detect number of cores better on multi-socket systems (#6108)
dscho Apr 6, 2026
af1d711
http: fix emptyAuth=auto for Negotiate/SPNEGO (#6170)
dscho Apr 14, 2026
7fb9215
entry: flush fscache after creating directories and writing files (#6…
dscho Jun 8, 2026
8428ef0
ci(macos): skip the `git p4` tests (#5954)
dscho Nov 14, 2025
e279ff0
Merge branch 'msys2'
dscho Nov 15, 2018
3ed9e12
Win32: make FILETIME conversion functions public
kblees Jul 6, 2013
3bc0d0f
Merge 'docker-volumes-are-no-symlinks'
dscho Oct 12, 2018
601b270
Win32: dirent.c: Move opendir down
kblees Sep 8, 2013
17e2c2e
mingw: try resetting the read-only bit if rename fails (#4527)
dscho Aug 7, 2023
83b612e
mingw: make the dirent implementation pluggable
kblees Sep 8, 2013
be6210e
Merge pull request #1897 from piscisaureus/symlink-attr
dscho Oct 31, 2018
46b1208
Win32: make the lstat implementation pluggable
kblees Sep 8, 2013
d915eaa
Merge branch 'dont-clean-junctions'
dscho Jul 30, 2019
28c57dd
mingw: add infrastructure for read-only file system level caches
kblees Sep 8, 2013
0ec3a51
Merge branch 'wsl-file-mode-bits'
dscho Aug 7, 2023
b1fe55e
mingw: add a cache below mingw's lstat and dirent implementations
kblees Oct 1, 2013
cb1370a
Merge branch 'validate-dotgit'
dscho Jun 23, 2026
33adcb5
fscache: load directories only once
kblees Jun 24, 2014
5c0493d
Continue improving support for 4GB+ packs/clones/objects (#6289)
dscho Jun 23, 2026
3ab6e32
fscache: add key for GIT_TRACE_FSCACHE
jeffhostetler Jan 24, 2017
f4629bf
Support loose 4GB+ objects (#6353)
dscho Aug 31, 2026
6083c94
fscache: remember not-found directories
jeffhostetler Dec 13, 2016
b7a805c
git-gui--askyesno: fix funny text wrapping
dscho Sep 20, 2017
995a462
Merge branch 'skip-rust-in-the-coverity-builds'
dscho Jun 23, 2026
ac3c777
fscache: add a test for the dir-not-found optimization
dscho Jan 25, 2017
a85e947
git-gui--askyesno (mingw): use Git for Windows' icon, if available
dscho Sep 20, 2017
5e279b7
Merge branch 'ready-for-upstream'
dscho Oct 11, 2018
7150ee0
add: use preload-index and fscache for performance
jeffhostetler Nov 22, 2016
08bf12b
dir.c: make add_excludes aware of fscache during status
jeffhostetler Nov 1, 2017
ab872d7
fscache: make fscache_enabled() public
jeffhostetler Dec 20, 2017
1b91abe
dir.c: regression fix for add_excludes with fscache
jeffhostetler Dec 20, 2017
fba1a2c
fetch-pack.c: enable fscache for stats under .git/objects
Nov 22, 2017
6b4047f
checkout.c: enable fscache for checkout again
Jan 30, 2018
15d9702
Enable the filesystem cache (fscache) in refresh_index().
benpeart Sep 7, 2018
6d8fad1
mem_pool: add GIT_TRACE_MEMPOOL support
benpeart Oct 4, 2018
009a927
fscache: use FindFirstFileExW to avoid retrieving the short name
benpeart Oct 23, 2018
618d3ad
fscache: fscache takes an initial size
benpeart Nov 2, 2018
bedf576
fscache: add GIT_TEST_FSCACHE support
benpeart Oct 4, 2018
60b729c
fscache: remember the reparse tag for each entry
dscho Dec 11, 2018
b0f6344
fscache: update fscache to be thread specific instead of global
benpeart Oct 4, 2018
707933c
fscache: add fscache hit statistics
benpeart Sep 25, 2018
68d3576
fscache: Windows Docker volumes are *not* symbolic links
dscho Apr 23, 2018
33d244c
fscache: teach fscache to use mempool
benpeart Nov 2, 2018
2102373
unpack-trees: enable fscache for sparse-checkout
derrickstolee Jun 12, 2019
8dda5fd
mingw: explicitly specify with which cmd to prefix the cmdline
dscho Jul 20, 2017
e097ae3
fscache: optionally enable wsl compability file mode bits
swigger Jun 7, 2023
2ddd3a1
fscache: make fscache_enable() thread safe
benpeart Nov 16, 2018
871a056
status: disable and free fscache at the end of the status command
benpeart Nov 1, 2018
68fe35d
Merge branch 'fscache'
dscho Nov 15, 2018
8408feb
mingw: when path_lookup() failed, try BusyBox
dscho Jul 20, 2017
cf53679
compat/poll: do not collect more handles than the wait supports
tyrielv Sep 1, 2026
b90454a
fscache: implement an FSCache-aware is_mount_point()
dscho Dec 11, 2018
edc9967
fscache: teach fscache to use NtQueryDirectoryFile
benpeart Nov 15, 2018
e8882ec
Merge pull request #1909 from benpeart/free-fscache-after-status-gfw
dscho Nov 5, 2018
b7d95f3
test-tool: learn to act as a drop-in replacement for `iconv`
dscho Jul 20, 2017
d7b8fab
parallel-checkout: limit worker count to what poll() can wait on
tyrielv Sep 1, 2026
9f376c2
clean: make use of FSCache
dscho Dec 11, 2018
1589bc5
Merge remote-tracking branch 'benpeart/fscache-per-thread-gfw'
dscho Nov 16, 2018
f3c24a8
tests(mingw): if `iconv` is unavailable, use `test-helper --iconv`
dscho Jul 20, 2017
dff4912
run-command: limit concurrent children to what poll() can wait on
tyrielv Sep 1, 2026
ad5203e
Merge branch 'dont-clean-junctions-fscache'
dscho Jul 23, 2019
a3b3d39
gitattributes: mark .png files as binary
dscho Oct 11, 2018
112bd6c
parallel-checkout: fix stack buffer overflow in Windows poll() with m…
dscho Sep 10, 2026
fa182b9
tests: move test PNGs into t/lib-diff/
dscho Aug 5, 2017
534000e
pack-objects (mingw): demonstrate a segmentation fault with large deltas
vangdfang Jan 9, 2014
2e14143
tests: only override sort & find if there are usable ones in /usr/bin/
dscho Jul 17, 2017
b0d7481
mingw: support long paths
kblees Jul 28, 2015
094ba33
tests: use the correct path separator with BusyBox
dscho Nov 19, 2018
e891acf
win32(long path support): leave drive-less absolute paths intact
dscho Sep 6, 2023
75574ba
mingw: only use Bash-ism `builtin pwd -W` when available
dscho Jun 29, 2017
563f99e
compat/fsmonitor/fsm-*-win32: support long paths
jeffhostetler Mar 25, 2022
8de4a8f
tests (mingw): remove Bash-specific pwd option
dscho Jun 30, 2017
c8ae375
clean: suggest using `core.longPaths` if paths are too long to remove
mathstuf Apr 22, 2022
b90e227
test-lib: add BUSYBOX prerequisite
dscho Jul 19, 2017
d046b71
t5003: use binary file from t/lib-diff/
dscho Aug 5, 2017
4fbde9a
Describe Git for Windows' architecture
dscho Feb 13, 2023
bc27abb
t5532: workaround for BusyBox on Windows
dscho Jul 21, 2017
3bbe966
Add an AGENTS.md file to help with AI-assisted debugging/development
dscho Jan 26, 2026
d37a447
t5605: special-case hardlink test for BusyBox-w32
dscho Jul 21, 2017
010f14f
Modify the Code of Conduct for Git for Windows
dscho Oct 11, 2019
149bef9
t5813: allow for $PWD to be a Windows path
dscho Jul 5, 2017
0c47869
Merge branch 'gitk-and-git-gui-patches'
dscho Oct 11, 2018
db61eb7
CONTRIBUTING.md: add guide for first-time contributors
derrickstolee Mar 1, 2018
be43eb6
t9200: skip tests when $PWD contains a colon
dscho Jul 7, 2017
3e761d5
Merge branch 'long-paths'
dscho Nov 15, 2018
764637d
README.md: Add a Windows-specific preamble
dscho Jan 10, 2014
dc3c3b8
Partially un-revert "editor: save and reset terminal after calling ED…
dscho Nov 25, 2021
ee33a94
Merge branch 'busybox-w32'
dscho Feb 7, 2019
31a70d7
Add an issue template
shiftkey Feb 18, 2016
68bd30e
reset: reinstate support for the deprecated --stdin option
dscho Dec 10, 2019
a7ca459
Merge branch 'un-revert-editor-save-and-reset'
dscho Jan 15, 2022
750b949
Modify the GitHub Pull Request template (to reflect Git for Windows)
Dec 22, 2017
e1bea56
Add a GitHub workflow to monitor component updates
dscho Sep 29, 2020
d354087
fsmonitor: reintroduce core.useBuiltinFSMonitor
vdye Apr 4, 2022
7124b21
Merge branch 'phase-out-reset-stdin'
dscho Jun 8, 2018
27c7158
SECURITY.md: document Git for Windows' policies
dscho Aug 23, 2019
e031d02
dependabot: help keeping GitHub Actions versions up to date
dscho Feb 6, 2024
7305dd9
Merge branch 'deprecate-core.useBuiltinFSMonitor'
dscho Jan 24, 2023
4c0fc26
ci: only run the expensive tests in the Windows tests for now
dscho Jun 12, 2026
c4e3aa1
Merge pull request #2837 from dscho/monitor-component-updates
dscho Oct 7, 2020
49d759b
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
6 changes: 0 additions & 6 deletions Documentation/RelNotes/2.56.0.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -867,12 +867,6 @@ Fixes since v2.55
Additionally, an obsolete variable used for retired Azure Pipelines
environments has been removed.

* Teach 'am', 'revert', and 'rebase' that running 'commit --amend' or a
partial 'commit <paths>' makes no sense during operations that stop
and return control to the user to resolve conflicts left in the
working tree, just like 'cherry-pick' and 'merge' do.
(merge cc499d40e5 en/no-amend-during-conflicts later to maint).

* The error path in 'git submodule--helper' has been updated to plug a
memory leak when a repository handle could not be obtained,
leveraging an updated idempotent repo_clear().
Expand Down
2 changes: 1 addition & 1 deletion GIT-VERSION-GEN
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

DEF_VER=v2.56.0-rc2
DEF_VER=v2.56.0

LF='
'
Expand Down
65 changes: 19 additions & 46 deletions builtin/commit.c
Original file line number Diff line number Diff line change
Expand Up @@ -515,25 +515,13 @@ static const char *prepare_index(const char **argv, const char *prefix,
*/
commit_style = COMMIT_PARTIAL;

switch (sequencer_ongoing_operation(the_repository, whence)) {
case ONGOING_NONE:
break;
case ONGOING_MERGE:
die(_("cannot do a partial commit during a merge."));
case ONGOING_CHERRY_PICK:
die(_("cannot do a partial commit during a cherry-pick."));
case ONGOING_REBASE_NOW_EMPTY:
/*
* A pick that became empty is not a conflict, and creating
* a new commit (partial or not) poses no problem.
*/
break;
case ONGOING_REVERT:
die(_("cannot do a partial commit during a revert."));
case ONGOING_AM:
die(_("cannot do a partial commit during an am session."));
case ONGOING_REBASE_CONFLICT:
die(_("cannot do a partial commit while resolving conflicts during a rebase."));
if (whence != FROM_COMMIT) {
if (whence == FROM_MERGE)
die(_("cannot do a partial commit during a merge."));
else if (is_from_cherry_pick(whence))
die(_("cannot do a partial commit during a cherry-pick."));
else if (is_from_rebase(whence))
die(_("cannot do a partial commit during a rebase."));
}

if (list_paths(&partial, !current_head ? NULL : "HEAD", &pathspec))
Expand Down Expand Up @@ -905,7 +893,7 @@ static int prepare_to_commit(const char *index_file, const char *prefix,
*/
else if (whence == FROM_MERGE)
hook_arg1 = "merge";
else if (is_from_cherry_pick(whence) || is_from_rebase_now_empty(whence)) {
else if (is_from_cherry_pick(whence) || whence == FROM_REBASE_PICK) {
hook_arg1 = "commit";
hook_arg2 = "CHERRY_PICK_HEAD";
}
Expand Down Expand Up @@ -1098,7 +1086,7 @@ static int prepare_to_commit(const char *index_file, const char *prefix,
if (amend)
fputs(_(empty_amend_advice), stderr);
else if (is_from_cherry_pick(whence) ||
is_from_rebase_now_empty(whence)) {
whence == FROM_REBASE_PICK) {
fputs(_(empty_cherry_pick_advice), stderr);
if (whence == FROM_CHERRY_PICK_SINGLE)
fputs(_(empty_cherry_pick_advice_single), stderr);
Expand Down Expand Up @@ -1338,30 +1326,15 @@ static int parse_and_validate_options(int argc, const char *argv[],
use_editor = 0;

/* Sanity check options */
if (amend) {
if (!current_head)
die(_("You have nothing to amend."));
/*
* Refuse to amend in the middle of any operation that is
* meant to record its result as a new commit on top of HEAD
* rather than by rewriting HEAD.
*/
switch (sequencer_ongoing_operation(s->repo, whence)) {
case ONGOING_NONE:
break;
case ONGOING_MERGE:
if (amend && !current_head)
die(_("You have nothing to amend."));
if (amend && whence != FROM_COMMIT) {
if (whence == FROM_MERGE)
die(_("You are in the middle of a merge -- cannot amend."));
case ONGOING_CHERRY_PICK:
else if (is_from_cherry_pick(whence))
die(_("You are in the middle of a cherry-pick -- cannot amend."));
case ONGOING_REBASE_NOW_EMPTY:
die(_("The now-empty commit has been dropped -- cannot amend."));
case ONGOING_REVERT:
die(_("You are in the middle of a revert -- cannot amend."));
case ONGOING_AM:
die(_("You are in the middle of an am session -- cannot amend."));
case ONGOING_REBASE_CONFLICT:
die(_("You are resolving conflicts during a rebase -- cannot amend."));
}
else if (whence == FROM_REBASE_PICK)
die(_("You are in the middle of a rebase -- cannot amend."));
}
if (fixup_message && squash_message)
die(_("options '%s' and '%s' cannot be used together"), "--squash", "--fixup");
Expand All @@ -1380,7 +1353,7 @@ static int parse_and_validate_options(int argc, const char *argv[],
if (amend && !use_message && !fixup_message)
use_message = "HEAD";
if (!use_message && !is_from_cherry_pick(whence) &&
!is_from_rebase_now_empty(whence) && renew_authorship)
!is_from_rebase(whence) && renew_authorship)
die(_("--reset-author can be used only with -C, -c or --amend."));
if (use_message) {
use_message_buffer = read_commit_message(use_message);
Expand All @@ -1389,7 +1362,7 @@ static int parse_and_validate_options(int argc, const char *argv[],
author_message_buffer = use_message_buffer;
}
}
if ((is_from_cherry_pick(whence) || is_from_rebase_now_empty(whence)) &&
if ((is_from_cherry_pick(whence) || whence == FROM_REBASE_PICK) &&
!renew_authorship) {
author_message = "CHERRY_PICK_HEAD";
author_message_buffer = read_commit_message(author_message);
Expand Down Expand Up @@ -1916,7 +1889,7 @@ int cmd_commit(int argc,
if (!reflog_msg)
reflog_msg = is_from_cherry_pick(whence)
? "commit (cherry-pick)"
: is_from_rebase_now_empty(whence)
: is_from_rebase(whence)
? "commit (rebase)"
: "commit";
commit_list_insert(current_head, &parents);
Expand Down
11 changes: 10 additions & 1 deletion builtin/difftool.c
Original file line number Diff line number Diff line change
Expand Up @@ -677,8 +677,17 @@ static int run_dir_diff(struct repository *repo,
}

finish:
if (fp)
if (fp) {
fclose(fp);
/*
* The child process was started, but there was an error before
* it finished; After closing the output pipe, we need to wait
* for the process to finish, otherwise the atexit handler
* `cleanup_children()` would try to access the stack-allocated
* `child`.
*/
finish_command(child); /* best effort; ignore result */
}

hashmap_clear_and_free(&working_tree_dups, struct working_tree_entry, entry);
hashmap_clear_and_free(&wt_modified, struct path_entry, entry);
Expand Down
Loading
Loading