summaryrefslogtreecommitdiff
path: root/t
AgeCommit message (Collapse)AuthorFilesLines
5 daysMerge branch 'ap/var-broken-down-idents' into seenseenJunio C Hamano1-0/+127
* ap/var-broken-down-idents: var: support broken-down idents, signing key, multiple args, and -z
5 daysMerge branch 'ps/ref-storage-format' into seenJunio C Hamano24-187/+227
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
5 daysMerge branch 'tc/push-force-if-includes-fixes' into seenJunio C Hamano1-1/+69
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
5 daysMerge branch 'tb/rerere-lock-grace' into seenJunio C Hamano2-0/+48
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()
5 daysMerge branch 'as/push-force-if-includes-no-reflog' into seenJunio C Hamano1-0/+18
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
5 daysMerge branch 'mm/diff-process-hunks' into seenJunio C Hamano11-0/+2505
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
5 daysMerge branch 'cc/early-scan-options' into seenJunio C Hamano7-0/+205
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()
5 daysMerge branch 'tc/last-modified-bloom' into seenJunio C Hamano1-0/+49
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
5 daysMerge branch 'fz/rebase-autosquash-empty' into seenJunio C Hamano2-0/+172
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
5 daysMerge branch 'ws/squelch-svn-migrate' into seenJunio C Hamano1-0/+7
* 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
5 daysMerge branch 'hn/history-squash' into seenJunio C Hamano3-0/+888
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
5 daysMerge branch 'kh/format-rev-more-options' into seenJunio C Hamano1-0/+58
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
5 daysMerge branch 'gg/http-ssl-verify-status' into seenJunio C Hamano1-0/+29
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
5 daysMerge branch 'cc/lazy-fetch-trusted-bit' into seenJunio C Hamano2-0/+175
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()
5 daysMerge branch 'bc/restrict-hex-to-lowercase' into seenJunio C Hamano2-2/+7
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
5 daysMerge branch 'tb/pack-with-duplicates' into seenJunio C Hamano5-10/+308
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
5 daysMerge branch 'pz/fetch-submodule-errors-config' into seenJunio C Hamano1-0/+161
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
5 daysMerge branch 'hs/rebase-continue-edit' into seenJunio C Hamano1-0/+52
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
5 daysMerge branch 'kj/repo-info-more-path-keys' into seenJunio C Hamano1-2/+175
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
5 daysMerge branch 'ds/trace2-tolerate-failed-timestamp' into seenJunio C Hamano1-4/+8
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
5 daysMerge branch 'mm/line-log-limited-ops' into seenJunio C Hamano5-41/+300
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
5 daysMerge branch 'tb/midx-incremental-custom-base' into seenJunio C Hamano3-9/+24
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
5 daysMerge branch 'sn/rebase-update-refs-symrefs' into seenJunio C Hamano2-1/+89
'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
5 daysMerge branch 'ec/commit-fixup-options' into seenJunio C Hamano1-16/+98
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
5 daysMerge branch 'ps/odb-pluggable-fsck' into jchJunio C Hamano4-1/+35
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
5 daysMerge branch 'ps/odb-alternates-at-creation' into jchJunio C Hamano1-0/+25
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()`
5 daysMerge branch 'dw/config-read-both-global' into jchJunio C Hamano2-1/+119
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
5 daysMerge branch 'vv/branch-recurse-no-start-ref' into jchJunio C Hamano1-0/+30
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
5 daysMerge branch 'as/utimensat-utimes' into jchJunio C Hamano2-9/+12
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
5 daysMerge branch 'ap/http-preserve-wwwauth-redirect' into jchJunio C Hamano2-0/+46
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
5 daysMerge branch 'cl/regexec-macos-leak' into jchJunio C Hamano1-0/+37
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
5 daysMerge branch 'yt/pathspec-negative-prefix' into jchJunio C Hamano2-0/+37
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
5 daysMerge branch 'kn/receive-report-hook' into jchJunio C Hamano2-0/+225
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'
5 daysMerge branch 'ps/odb-stop-registering-in-memory-sources' into jchJunio C Hamano12-55/+37
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()`
5 daysMerge branch 'js/mingw-build-updates' into jchJunio C Hamano1-1/+32
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
5 daysMerge branch 'as/cherry-pick-no-commit-doc' into jchJunio C Hamano1-1/+2
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
5 daysMerge branch 'tn/fetch-pack-trace-packfile-uri' into jchJunio C Hamano1-1/+6
The process of downloading packfile URIs in protocol v2 has been instrumented with a Trace2 region. This visibility allows tracking the cumulative time spent downloading external packs and the number of advertised URIs without emitting a separate event per pack. * tn/fetch-pack-trace-packfile-uri: fetch-pack: trace packfile URI downloads
5 daysMerge branch 'sa/rev-list-missing-only' into jchJunio C Hamano1-0/+49
The git rev-list command has been augmented with a '--missing-only' option that filters the output to only show missing objects, stripping the leading '?' character and suppressing present objects, which is useful when used in combination with '--missing=print' or '--missing=print-info'. * sa/rev-list-missing-only: rev-list: add --missing-only option to filter output
5 daysMerge branch 'ps/tune-rerere-gc' into jchJunio C Hamano1-14/+47
"git maintenance" triggered "rerere gc" in unappropriate times and interfered with "git rebase" etc. too much. The conditions "rerere gc" gets triggered have been tweaked. * ps/tune-rerere-gc: builtin/maintenance: improve heuristic for "rerere gc" rerere: extract logic to determine whether entries are stale
5 daysMerge branch 'hn/checkout-m-autostash-refine' into jchJunio C Hamano2-7/+34
The autostash fallback in 'git checkout -m' has been refined to only retry when there are local changes. Additionally, a blank line now visually separates autostash conflict advice from the subsequent branch-switch message. * hn/checkout-m-autostash-refine: checkout: separate autostash conflict advice from branch-switch message stash: reserve exit status 1 for conflicts
5 daysMerge branch 'jk/submodule-error-leak' into jchJunio C Hamano1-0/+17
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(). * jk/submodule-error-leak: submodule--helper: free URL when repository setup fails repository: make repo_clear() idempotent
5 daysMerge branch 'en/no-amend-during-conflicts' into jchJunio C Hamano3-4/+168
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. * en/no-amend-during-conflicts: commit: refuse partial commits during conflict resolution commit: refuse to amend during conflict resolution commit: reword the empty-commit rebase amend error commit: allow a partial commit when a rebase pick becomes empty commit: clarify FROM_REBASE_PICK and is_from_rebase() names
5 daysMerge branch 'mm/lib-httpd-cgi-safe' into jchJunio C Hamano5-26/+143
CGI helper scripts used by HTTP-related test scripts have been updated to use atomic filesystem operations, preventing race conditions when Apache handles concurrent requests. * mm/lib-httpd-cgi-safe: t/lib-httpd: document writing concurrency-safe CGI helpers t/lib-httpd: make http-429 first-request check atomic t/lib-httpd: fix apply-one-time-script race under concurrent requests
6 daysvar: support broken-down idents, signing key, multiple args, and -zAndrew Pleeter1-0/+127
While 'git var' exposes GIT_AUTHOR_IDENT and GIT_COMMITTER_IDENT, extracting individual components (name, email, or date) currently requires callers to manually parse the composite string. Furthermore, there is no way to query the resolved commit signing key through 'git var', and the command only accepts a single variable at a time. Teach 'git var' to expose individual identity components and commit signing configuration, and allow querying multiple variables with optional NUL-termination: - Add GIT_AUTHOR_NAME, GIT_AUTHOR_EMAIL, and GIT_AUTHOR_DATE. - Add GIT_COMMITTER_NAME, GIT_COMMITTER_EMAIL, and GIT_COMMITTER_DATE. - Add GIT_SIGNING_KEY to resolve the key that would be used to sign the resulting commit if you were to run 'git commit' right now. - Allow passing multiple variable arguments (e.g., 'git var GIT_AUTHOR_NAME GIT_AUTHOR_EMAIL') to output each variable sequentially. - Support '-z' to terminate variable outputs with NUL bytes. - Format 'git var -l -z' using the same convention as 'git config list -z' (newline separating key and value, NUL separating entries). - Delimit values of multi-valued variables with NUL when '-z' is given, and output an extra delimiter after multi-valued variables when querying multiple variables to disambiguate the stream. - When querying multiple variables, print an empty record for any variable that has no value and continue processing remaining variables. - Use parse_options() to strictly require options before arguments. - Update Documentation/git-var.adoc and t/t0007-git-var.sh. Signed-off-by: Andrew Pleeter <andrewpleeter@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
6 daysMerge branch 'en/midx-missing-pack-fallback'Junio C Hamano4-1/+123
The object lookup machinery has been taught to gracefully recover when a multi-pack-index points to an owning pack that was removed during a concurrent geometric repack, and 'git replay' has been fixed to not segfault when reading such missing objects. * en/midx-missing-pack-fallback: packfile: recover when a multi-pack-index names a removed pack mktree: do not use OBJECT_INFO_QUICK when checking objects mktree: plug per-tree leak in --batch mode replay: fail gracefully when a merge input is unreadable
6 daysMerge branch 'jk/rev-info-argv-to-free'Junio C Hamano1-0/+17
The memory ownership of argv elements passed to the revision machinery has been made more robust by keeping logically "freed" elements alive until the rev_info struct is released, preventing use-after-free bugs when options store references to them. * jk/rev-info-argv-to-free: revision: simplify mark_argv_for_free() callers revision: hang on to "freed" argv elements
6 daysMerge branch 'tc/replay-linearize'Junio C Hamano1-1/+108
The 'git replay' command has been taught the '--linearize' option to drop merge commits and linearize the replayed history, mimicking 'git rebase --no-rebase-merges'. * tc/replay-linearize: replay: offer an option to linearize the commit topology replay: resolve the replay base outside pick_regular_commit() replay: add helper to put entry into replayed_commits
6 daysMerge branch 'hk/typofix'Junio C Hamano1-1/+1
Various spelling mistakes in comments and test descriptions have been corrected. * hk/typofix: versioncmp: fix typo in versioncmp.c, t/t0022-crlf-rename.sh
6 daysMerge branch 'rs/worktree-add-basename-fixes'Junio C Hamano1-0/+17
The string extraction logic for the branch name and worktree name from the given path in 'git worktree add' has been corrected and simplified to avoid out-of-bounds reads and improper handling of trailing slashes. * rs/worktree-add-basename-fixes: worktree add: let worktree_basename() return string copy worktree add: trim slashes when deriving branch name from path worktree add: reject separator-only path worktree add: don't read out of bounds in worktree_basename()
6 daysMerge branch 'ns/ref-symref-additional-tests'Junio C Hamano2-3/+18
A few tests for the reference handling subsystem have been added to exercise the handling of forbidden characters and symbolic references. * ns/ref-symref-additional-tests: t1402: test forbidden characters in refnames t1401: check symbolic-ref failure and --quiet silence on a non-symbolic ref