summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
3 daysMerge branch 'ap/var-broken-down-idents' into seenseenJunio C Hamano3-60/+383
* ap/var-broken-down-idents: var: support broken-down idents, signing key, multiple args, and -z
3 daysMerge branch 'ks/history-commit-leakfix' into seenJunio C Hamano1-0/+1
* ks/history-commit-leakfix: builtin/history: unuse the commit buffer after use
3 daysMerge branch 'ps/ref-storage-format' into seenJunio C Hamano50-339/+464
The terminology regarding reference storage formats has been unified across command-line options, environment variables, configuration variables, and source code, standardizing on the phrase "ref storage format" (e.g., `--ref-storage-format`, `'GIT_REF_STORAGE_FORMAT'`). Additionally, the `--ref-storage-format` option has been updated to accept payloads in the form `<format>://<payload>`. * ps/ref-storage-format: setup: allow "--ref-storage-format=" to specify a payload setup: rename "init.defaultRefFormat" to "init.defaultRefStorageFormat" t: rename GIT_TEST_DEFAULT_REF_FORMAT setup: rename ref storage format environment variables setup: refactor how we configure the ref storage format refs: expose function to parse reference URIs help: rename "default-ref-format" to "default-ref-storage-format" builtin/rev-parse: rename "--show-ref-format" to "--show-ref-storage-format" builtin/submodule: rename "--ref-format=" to "--ref-storage-format=" builtin/refs: rename "--ref-format=" to "--ref-storage-format=" builtin/clone: rename "--ref-format=" to "--ref-storage-format=" builtin/init: rename "--ref-format=" to "--ref-storage-format=" parse-options: allow for hidden aliases
3 daysMerge branch 'jc/rust-cargo-build-target' into seenJunio C Hamano2-3/+3
When cross-compiling with Cargo, the output artifact is placed in a target-specific subdirectory, which causes the build system to fail to locate it. The build system has been updated to respect the 'CARGO_BUILD_TARGET' environment variable. * jc/rust-cargo-build-target: rust: respect CARGO_BUILD_TARGET when locating build output
3 daysMerge branch 'vm/advice-config-global-hint' into seenJunio C Hamano1-11/+38
Some advice messages would never trigger once a repository is initialized (e.g., advice.defaultBranchName). Update hint to disable them in per-user configuration file. * vm/advice-config-global-hint: fixup! advice: introduce advice scoping mechanism advice: use global config for default branch name advice: introduce advice scoping mechanism advice: pass the entire advice_setting to vadvise()
3 daysfixup! advice: introduce advice scoping mechanismJunio C Hamano1-0/+4
3 daysMerge branch 'tc/push-force-if-includes-fixes' into seenJunio C Hamano12-5/+143
The --force-if-includes protection for git push has been updated to consult the reflog of the local branch being pushed, rather than incorrectly checking the reflog of a local branch that shares the name of the remote destination branch. The push advice for detached HEAD scenarios has also been adjusted to indicate that the remote ref cannot be verified locally. * tc/push-force-if-includes-fixes: push: fix --force-if-includes detached HEAD advice push: check pushed ref for --force-if-includes
3 daysMerge branch 'tb/rerere-lock-grace' into seenJunio C Hamano7-20/+131
The sequencer machinery (used by 'git rebase', 'git cherry-pick', and 'git revert') has been updated to defer automatic maintenance tasks until the end of the operation, preventing nested 'git commit', 'git merge', and 'exec' commands from triggering GC operations that could contend for locks or delete open packs while the sequence is in progress. * tb/rerere-lock-grace: sequencer: disable auto maintenance in spawned commands rebase, cherry-pick, revert: run auto maintenance when done config: add git_config_append_parameter()
3 daysMerge branch 'as/push-force-if-includes-no-reflog' into seenJunio C Hamano2-1/+19
The timestamp used for checking the reflog of a remote-tracking branch during 'git push --force-if-includes' was left uninitialized when the reflog was completely empty, which has been corrected. * as/push-force-if-includes-no-reflog: push: fix --force-if-includes when remote-tracking ref has no reflog
3 daysMerge branch 'mm/diff-process-hunks' into seenJunio C Hamano58-60/+5985
A new 'diff.<driver>.process' configuration has been introduced to allow a long-running external process to act as a hunk provider, enabling external tools to control which lines Git considers changed while leaving all output formatting (word diff, color, blame, etc.) to Git's standard pipeline. * mm/diff-process-hunks: fixup! diff: consult oid-only hunk providers via diff.<driver>.process diff: consult oid-only hunk providers via diff.<driver>.process userdiff: add diff.<driver>.process config sub-process: add a gentle status read sub-process: separate process lifecycle from hashmap management blame: read precomputed hunks diff: read precomputed hunks for stat output diff: record precomputed hunks during stat output diff-hunks: add the store format, library, and command diff: introduce a hunk provider interface gitattributes: document how external diff drivers relate to diff features
3 daysMerge branch 'cc/early-scan-options' into seenJunio C Hamano13-47/+503
The process of parsing command-line options in commands that perform an early scan over their arguments (such as 'git bisect', 'git rev-parse', and 'git fast-import') has been unified using a new early-scan sub-API, which parses and skips known options taking separate values to prevent logic bugs. * cc/early-scan-options: fast-import: use early_scan_options() for --allow-unsafe-features parse-options: build early scan options from a struct option array parse-options: add parse_options_takes_argument() rev-parse: fix "--" detection when it is an option value bisect: fix "--" detection when a term name is "--" parse-options: add early_scan_options()
3 daysMerge branch 'tc/last-modified-bloom' into seenJunio C Hamano6-12/+160
The 'git last-modified' command has been optimized by using Bloom filters. It now reuses revision walk filtering logic from 'git log' to pre-filter commits, and maintains per-path Bloom filters even when wildcard pathspecs are used. * tc/last-modified-bloom: last-modified: keep per-path Bloom filters for wildcard pathspecs last-modified: check pathspec against Bloom filter first revision: add Bloom check that includes parent directories bloom: add helper to check if any key in a vector is present revision: expose check for paths maybe changed in Bloom filter revision: move bloom keyvec precondition into function
3 daysMerge branch 'll/doc-pushcert-if-asked' into seenJunio C Hamano1-1/+1
he remote helper documentation for the 'pushcert' option has been updated to mention that it can also take 'if-asked', reflecting the existing implementation in the code. * ll/doc-pushcert-if-asked: doc: remote-helpers: option pushcert if-asked
3 daysMerge branch 'jc/checkout-refactor' into seenJunio C Hamano3-268/+329
The front-end code for 'git checkout', 'git switch', and 'git restore' has been restructured to cleanly separate their pathspec and branch handling, eliminating a common bottleneck and paving the way to libify utility helpers. * jc/checkout-refactor: checkout: move post_checkout_hook() to checkout.c checkout: wrap overly long lines checkout: restructure switch, restore, and checkout entrypoints checkout: extract branch setup and tracking helpers checkout: extract option validation and pathspec helpers checkout: validate stage and merge option compatibility in checkout_paths() checkout: validate new branch name in checkout_branch() checkout: pass cb_option explicitly to branch name parsers
3 daysMerge branch 'fz/rebase-autosquash-empty' into seenJunio C Hamano4-4/+478
A commit that is emptied by melding a 'fixup!' or 'squash!' commit during 'git rebase --autosquash' is now handled according to the '--empty' option, allowing it to be dropped, kept, or to halt the rebase. * fz/rebase-autosquash-empty: sequencer: honor --empty when a fixup!/squash! empties its target
3 daysMerge branch 'ws/squelch-svn-migrate' into seenJunio C Hamano3-6/+25
* ws/squelch-svn-migrate: Makefile: add NO_GIT_SVN knob to skip building/installing git-svn git-svn: don't print v1-layout migration noise when there's nothing to migrate
3 daysMerge branch 'hn/history-squash' into seenJunio C Hamano11-71/+1703
The experimental 'git history' command has been taught a new 'squash' subcommand to fold a range of commits into a single commit, with any descendants replayed on top. * hn/history-squash: history: support editing squashed commit messages history: create squashed commits without editing history: protect branches when squashing a range history: validate squash revision ranges history: add skeleton for squash subcommand sequencer: share the squash message marker helpers and flags history: give commit_tree_ext a message template history: extract helper for a commit's parent tree
3 daysMerge branch 'kh/format-rev-more-options' into seenJunio C Hamano5-93/+212
The experimental 'git format-rev' has been taught a few more formatting options. * kh/format-rev-more-options: format-rev: learn --abbrev, --color, and --date doc: rev-list-options.adoc: factor out --date alts format-rev: factor option variables into a struct format-rev: place BUG calls first in callback format-rev: use lower case for opts description
3 daysMerge branch 'gg/http-ssl-verify-status' into seenJunio C Hamano3-0/+57
The HTTP transport has been taught to check the revocation status of the server certificate using the stapled OCSP response during the TLS handshake via a new 'http.sslVerifyStatus' configuration variable. * gg/http-ssl-verify-status: http: add http.sslVerifyStatus to check stapled OCSP responses
3 daysMerge branch 'cc/lazy-fetch-trusted-bit' into seenJunio C Hamano12-84/+514
A new 'uploadpack.lazyFetchTrusted' configuration variable has been introduced to allow 'upload-pack' to lazily fetch missing objects from configured promisor remotes when serving trusted repositories. * cc/lazy-fetch-trusted-bit: builtin/upload-pack: set GIT_NO_LAZY_FETCH to 0 on trusted repo promisor-remote: prevent infinite recursion when lazy fetching upload-pack: read uploadpack.lazyFetchTrusted setup: extract path_allowlist_apply() promisor-remote: factor out lazy_fetch_objects()
3 daysMerge branch 'ty/repo-config-cleanups' into seenJunio C Hamano2-25/+13
Repository configuration getters in 'environment.c' have been simplified by removing redundant NULL checks. The documentation for these getters in 'environment.h' has been clarified, and inaccurate section comments inside 'struct repo_config_values' have been removed. * ty/repo-config-cleanups: environment: remove inaccurate repo_config_values comments environment: clarify repository config getter documentation environment: drop redundant NULL checks in config getters
3 daysMerge branch 'bc/restrict-hex-to-lowercase' into seenJunio C Hamano19-39/+91
The parser for hex object names has been updated to reject uppercase hexadecimal characters when running in the breaking changes mode, in preparation for Git 3.0. * bc/restrict-hex-to-lowercase: hex: allow only lowercase object IDs in breaking changes mode t5324: adjust tests for corrupt commit-graph object-name: use hexval hex: label usages of hex parsing for object IDs hex: make hex_to_bytes accept kind of hex to use hex: allow specifying hex type with hex2chr hex: add functionality for lowercase-only hex
3 daysMerge branch 'tb/pack-with-duplicates' into seenJunio C Hamano9-32/+595
The handling of packfiles with duplicate object entries has been hardened. Specifically, reverse index lookup, delta cycle recovery, multi-pack-index verification, and pack reuse paths have been updated to correctly handle or gracefully reject duplicate entries. * tb/pack-with-duplicates: pack-bitmap: handle duplicate pack entries during MIDX reuse test-tool bitmap: reject packs with duplicate objects midx: verify duplicate pack entries by OID and offset packfile: recover delta cycles through duplicate entries t5308: test reverse indexes with duplicate objects
3 daysMerge branch 'pz/fetch-submodule-errors-config' into seenJunio C Hamano6-17/+301
The 'git fetch' command can now configure how submodule fetch errors are handled via 'fetch.submoduleErrors' and '--submodule-errors', making them non-fatal. A premature failure during recursive submodule fetches has been fixed by deferring the error until the OID-based retry phase fails. * pz/fetch-submodule-errors-config: fetch: add fetch.submoduleErrors to make submodule fetch errors non-fatal submodule: fix premature failure in recursive submodule fetch
3 daysMerge branch 'hs/rebase-continue-edit' into seenJunio C Hamano5-7/+126
Support for skipping the editor when continuing a rebase after conflict resolution has been added with the '--no-edit' option, and forcing it with '--edit'. A new configuration variable 'rebase.noEdit' can be used to set the default behavior. * hs/rebase-continue-edit: rebase: add --[no-]edit to --continue
3 daysMerge branch 'kj/repo-info-more-path-keys' into seenJunio C Hamano3-2/+388
The 'git repo info' command has been taught more keys to output paths of various repository components (such as the working tree root, superproject working tree, object database, etc.), supporting both absolute and relative path formats. * kj/repo-info-more-path-keys: repo: add path.cdup repo: add path.git-prefix repo: add path.grafts with absolute and relative suffixes repo: add path.index with absolute and relative suffixes repo: add path.hooks with absolute and relative suffixes repo: add path.superproject-root with absolute and relative suffixes repo: add path.toplevel with absolute and relative suffix formatting
3 daysMerge branch 'ds/trace2-tolerate-failed-timestamp' into seenJunio C Hamano16-31/+250
Functions like `xstrfmt()` and `xcalloc()` have been banned from use in the trace2 API codebase to prevent calls to `die()` which lead to unwanted process exits and recursion when memory allocation fails. * ds/trace2-tolerate-failed-timestamp: trace2: remove use of xcalloc() trace2: remove use of ALLOC_GROW() trace2: remove use of xstrfmt() trace2: remove use of ALLOC_ARRAY() trace2: remove use of xstrdup() trace2: tolerate failed timestamp formatting banned-die: create header for banning of functions
3 daysMerge branch 'mm/line-log-limited-ops' into seenJunio C Hamano11-267/+587
The 'git log -L<range>:<path>' command has been taught to limit various 'diff' operations, such as '--stat', '--check', and '-G', to the specified range and path. * mm/line-log-limited-ops: diffcore-pickaxe: limit -G to the -L tracked range diff: support --check with -L line ranges diff: support stat formats with -L diff: extract a line-range diff helper for reuse diff: emit -L hunk headers via xdiff's formatter diff: simplify the line-range filter by classifying removals immediately diff: rename line-range filter struct and clarify fields
3 daysMerge branch 'tb/midx-incremental-custom-base' into seenJunio C Hamano7-17/+41
The 'git multi-pack-index write --incremental' command has been corrected to properly honor the '--base' option. Previously, the custom base was ignored by the normal write path; packs from layers above the selected base were incorrectly skipped by the pack exclusion logic, and reachability closure for bitmaps was broken. * tb/midx-incremental-custom-base: midx-write: include packs above custom incremental base midx: pass custom '--base' through incremental writes t5334: expose shared `nth_line()` helper
3 daysMerge branch 'sn/rebase-update-refs-symrefs' into seenJunio C Hamano4-13/+155
'git rebase --update-refs' has been taught to resolve local branch symrefs to their referents before queuing updates, ensuring aliases of the current branch are skipped and duplicate updates are avoided to prevent failures when branch aliases are present. * sn/rebase-update-refs-symrefs: rebase: guard non-branch symref targets rebase: skip branch symref aliases
3 daysMerge branch 'ec/commit-fixup-options' into seenJunio C Hamano3-44/+133
Support for '-m', '-F', '-c', or '-C' options to supply a commit log message from outside the editor has been added for all 'git commit --fixup' variations. * ec/commit-fixup-options: commit: allow -c/-C for all kinds of --fixup commit: allow -m/-F for all kinds of --fixup
3 daysMerge branch 'bc/maintenance-doc-markup-fix-for-asciidoc' into seenJunio C Hamano1-0/+1
Mark-up fix for 'git maintenance' documentation pages. * bc/maintenance-doc-markup-fix-for-asciidoc: doc: fix conjoined maintenance strategies in git-config(1)
3 daysMerge branch 'ta/command-list-guides-sync-lint' into jchjchJunio C Hamano3-3/+10
A new linter test has been added to Documentation/lint-manpages.sh to ensure that all non-command manual pages (guides and developer interfaces) listed in Documentation/Makefile are present in command-list.txt, replacing an older comment that reminded developers to keep them in sync. * ta/command-list-guides-sync-lint: lint-docs: check the guide list in command-list.txt command-list: add gitformat-loose(5) and gitpacking(7)
3 daysMerge branch 'ps/odb-pluggable-fsck' into jchJunio C Hamano14-259/+394
The consistency checks for the object database (fsck) have been decoupled from the generic builtin implementation and moved into the backend-specific object source layers, making them pluggable for different object storage formats. * ps/odb-pluggable-fsck: builtin/fsck: move loose object verification into the loose source builtin/fsck: move multi-pack index verification into the packed source builtin/fsck: move bitmap verification into the packed source builtin/fsck: move reverse index verification into the packed source builtin/fsck: move packfile verification into the packed source odb: provide infrastructure for pluggable fsck checks builtin/fsck: don't check alternates with "--no-full" builtin/fsck: de-globalize option handling builtin/fsck: merge `fsck_obj_buffer()` and `fsck_obj()` builtin/fsck: use `fsck_obj_buffer()` when checking loose objects
3 daysMerge branch 'ps/odb-alternates-at-creation' into jchJunio C Hamano12-221/+263
The setup of alternates has been deferred to object database creation time during clone, which drops the unused ad-hoc alternate writing API, simplifying the object database backend interface. * ps/odb-alternates-at-creation: odb/source: remove the ability to write alternates builtin/clone: write alternates via `odb_create_on_disk()` odb/source: support writing alternates when creating the database builtin/clone: move setup of alternates for non-shared local clones builtin/clone: move setup of alternates for shared local clones builtin/clone: refactor handling of "--reference{,-if-able}" builtin/clone: move around `setup_reference()` builtin/clone: defer setup of the object database setup: split up concerns of `init_db()`
3 daysMerge branch 'dw/config-read-both-global' into jchJunio C Hamano6-31/+194
The git config --global read operations have been updated to respect both $HOME/.gitconfig and $XDG_CONFIG_HOME/git/config, fixing an inconsistency where only the former was read when both configuration files are present. * dw/config-read-both-global: config: read global scope via config_sequence config: let sequence require a successful file path: use forward slashes in XDG config on Windows
3 daysMerge branch 'vv/branch-recurse-no-start-ref' into jchJunio C Hamano3-5/+44
The --recurse-submodules option in 'git branch' has been fixed to avoid a crash when the start point is not a reference (e.g., a raw object ID). The creation path now skips setting up tracking and properly forwards the absent tracking name to the submodule helper. * vv/branch-recurse-no-start-ref: branch: allow recursion with no tracking name branch: do not track a start point with no ref
3 daysMerge branch 'as/utimensat-utimes' into jchJunio C Hamano19-93/+163
The codebase has been updated to use the newer utimensat() POSIX function instead of the obsolescent utime(), allowing high-precision timestamps while preserving fallback compatibility. * as/utimensat-utimes: compat/posix: drop legacy <utime.h> header and shims treewide: use utimensat(2) instead of legacy utime(3p) compat/posix: introduce utimensat(2) wrapper
3 daysMerge branch 'ap/http-preserve-wwwauth-redirect' into jchJunio C Hamano5-1/+78
When an HTTP request triggers a redirect and the target yields an authentication challenge, the WWW-Authenticate headers received during the redirect are now explicitly preserved across the credential URL update, fixing an issue where they were incorrectly cleared. * ap/http-preserve-wwwauth-redirect: http: preserve wwwauth_headers across redirects
3 daysMerge branch 'cl/regexec-macos-leak' into jchJunio C Hamano8-0/+157
A compatibility workaround has been introduced for macOS to address a memory leak in the system regex engine when it encounters invalid multibyte sequences. The workaround segments the input buffer at invalid byte boundaries and searches each valid segment separately using regexec(), avoiding the leaking path. * cl/regexec-macos-leak: SQUASH??? regexec: work around macOS TRE leak on invalid UTF-8
3 daysMerge branch 'ij/subtree-reject-v2-config' into jchJunio C Hamano2-0/+36
The shell script implementation of 'git subtree' has been updated to check for the presence of the configuration file of the new Rust implementation, preventing users from accidentally running the old script on repositories already managed by the new tool. * ij/subtree-reject-v2-config: git-subtree: Bail out if we find output from Rust rewrite (test) git-subtree: Bail out if we find output from Rust rewrite
3 daysMerge branch 'dk/use-nsec-runtime' into jchJunio C Hamano12-48/+57
The build-time knob 'USE_NSEC' for nanosecond stat precision has been converted to a runtime configuration 'core.useNanosec', allowing distributions to bundle one binary that adapts to filesystem capabilities dynamically. * dk/use-nsec-runtime: core: convert build-time USE_NSEC into runtime core.useNanosec environment: align repo_config_values_init with struct declaration meson: expose knob for xmlto relative links in manuals
3 daysMerge branch 'yt/pathspec-negative-prefix' into jchJunio C Hamano3-17/+59
The pathspec matching logic has been updated to avoid out-of-bounds memory accesses when a negative pathspec is shorter than the common prefix of positive pathspecs. * yt/pathspec-negative-prefix: dir: find common prefix among non-exclude pathspec items dir: do not apply prefix to negative pathspecs
3 daysMerge branch 'kn/receive-report-hook' into jchJunio C Hamano5-48/+401
A new hook 'report' is added to 'git receive-pack', which runs after reference updates and allows the server to filter or modify the packet-line status report sent back to the client. * kn/receive-report-hook: hook: introduce the receive-report hook receive-pack: move message generation to separate function receive-pack: drop static variables to track report status version doc: add proc-receive hook info in 'git-receive-pack.adoc'
3 daysMerge branch 'ps/odb-stop-registering-in-memory-sources' into jchJunio C Hamano33-247/+168
The mechanism to register in-memory alternate object sources has been removed, as submodule object databases are now accessed natively via their own repository structures. This simplifies object database management and prepares the codebase for migrating alternate tracking into the files backend. * ps/odb-stop-registering-in-memory-sources: odb: remove the ability to link sources ad-hoc t/helper: stop registering alternates in "ref-store" command t/helper: adapt read-midx to not link ad-hoc source anymore builtin/multi-pack-index: refuse unknown sources with "--object-dir=" odb/packed: fix memory leaks when freeing source tmp-objdir: drop unused function to register alternate odb: remove infrastructure to register submodule sources builtin/grep: stop registering submodule ODB as source submodule-config: stop registering submodule sources submodule-config: stop using `the_hash_algo` submodule-config: remove uses of `the_repository` cache-tree: remove dependency on `the_repository` cache-tree: drop `the_repository` in `cache_tree_fully_valid()`
3 days### match nextJunio C Hamano0-0/+0
3 daysMerge branch 'js/mingw-build-updates' into jchJunio C Hamano6-37/+153
A collection of patches from Git for Windows has been upstreamed, mostly focusing on simplifying and robustifying build configurations for MinGW/MSYS2, dropping obsolete compatibility options, and allowing the main 'git.exe' to be used directly without the extra wrapper process on Windows. * js/mingw-build-updates: t0060: adjust the code style mingw: allow `git.exe` to be used instead of the "Git wrapper" mingw: ensure valid CTYPE mingw: always define `ETC_*` for MSYS2 environments windows: skip linking `git-<command>` for built-ins mingw: rely on MSYS2's metadata instead of hard-coding it mingw: only enable the MSYS2-specific stuff when compiling in MSYS2 mingw: set the prefix and HOST_CPU as per MSYS2's settings mingw: avoid over-specifying `--pic-executable` mingw: only use -Wl,--large-address-aware for 32-bit builds mingw: drop the -D_USE_32BIT_TIME_T option mingw: stop hard-coding `CC = gcc` mingw: include the Python parts in the build
3 daysMerge branch 'ta/lint-gitlink-older-perl-fix' into jchJunio C Hamano1-1/+1
The development helper script to lint gitlink references in the documentation has been updated to avoid a newer Perl regular expression syntax that breaks on older Perl versions. * ta/lint-gitlink-older-perl-fix: lint-gitlink: don't use empty lower bound in .{0,8}
3 daysMerge branch 'jc/history-missing-tree-errorfix' into jchJunio C Hamano1-0/+4
Running "git history" in a corrupt repository can (unsurprisingly) segfault when a necessary tree object is not found. * jc/history-missing-tree-errorfix: history: do not dereference NULL when parent tree is missing
3 daysMerge branch 'as/cherry-pick-no-commit-doc' into jchJunio C Hamano2-2/+9
The documentation for 'git cherry-pick' has been updated to clarify that the '--no-commit' option intentionally skips setting the 'CHERRY_PICK_HEAD' ref. A test has also been added to ensure this behavior holds even when the operation stops for conflicts. * as/cherry-pick-no-commit-doc: doc: cherry-pick: note --no-commit skips CHERRY_PICK_HEAD t3507: check no CHERRY_PICK_HEAD after conflicting --no-commit