What's cooking in git.git (May 2022, #05; Mon, 16)
Here are the topics that have been cooking in my tree. Commits prefixed with '+' are in 'next' (being in 'next' is a sign that a topic is stable enough to be used and are candidate to be in a future release). Commits prefixed with '-' are only in 'seen', and aren't considered "accepted" at all.
There are too many topics that are marked as "Will merge to next?" that can use a gentle reminder like "no, the issue raised at $URL hasn't been resolved yet for that" or "yes, we have discussed it long and poked at it hard enough and there is no holes".
This cycle will conclude in early July (https://tinyurl.com/gitCal);
we are in week #4 of the cycle.
Copies of the source code to Git live in many repositories, and the following is a list of the ones I push into or their mirrors. Some repositories have only a subset of branches.
With maint, master, next, seen, todo:
git://git.kernel.org/pub/scm/git/git.git/ git://repo.or.cz/alt-git.git/ https://kernel.googlesource.com/pub/scm/git/git/ https://github.com/git/git/ https://gitlab.com/git-vcs/git/
With all the integration branches and topics broken out:
https://github.com/gitster/git/
Even though the preformatted documentation in HTML and man format are not sources, they are published in these repositories for convenience (replace "htmldocs" with "manpages" for the manual pages):
git://git.kernel.org/pub/scm/git/git-htmldocs.git/
https://github.com/gitster/git-htmldocs.git/
Release tarballs are available at:
https://www.kernel.org/pub/software/scm/git/
--------------------------------------------------
[New Topics]
* tb/midx-race-in-pack-objects (2022-05-13) 2 commits
- builtin/pack-objects.c: ensure pack validity from MIDX bitmap objects
- pack-bitmap: check preferred pack validity when opening MIDX bitmap
The multi-pack-index code did not protect the packfile it is going to depend on from getting removed while in use, which has been corrected.
Will merge to 'next'?
source: <[email protected]>
* ds/bundle-uri (2022-05-16) 8 commits
- bundle.h: make "fd" version of read_bundle_header() public
- remote: allow relative_url() to return an absolute url
- remote: move relative_url()
- http: make http_get_file() external
- fetch-pack: move --keep=* option filling to a function
- fetch-pack: add a deref_without_lazy_fetch_extended()
- dir API: add a generalized path_match_flags() function
- connect.c: refactor sending of agent & object-format
source: <[email protected]>
* ds/sparse-sparse-checkout (2022-05-16) 8 commits
- sparse-checkout: integrate with sparse index
- p2000: add test for 'git sparse-checkout [add|set]'
- sparse-index: complete partial expansion
- sparse-index: partially expand directories
- sparse-checkout: --no-sparse-index needs a full index
- cache-tree: implement cache_tree_find_path()
- sparse-index: introduce partially-sparse indexes
- sparse-index: create expand_to_pattern_list()
"sparse-checkout" learns to work well with the sparse-index feature.
source: <[email protected]>
* gc/bare-repo-discovery (2022-05-16) 3 commits
- SQUASH??? move new test to t0035
- setup.c: learn discovery.bareRepository=cwd
- setup.c: make bare repo discovery optional
Introduce a discovery.barerepository configuration variable that allows users to forbid discovery of bare repositories.
Expecting a reroll.
source: <[email protected]>
* jt/fetch-peek-optional-section (2022-05-16) 1 commit
- fetch-pack: make unexpected peek result non-fatal
"git fetch" unnecessarily failed when an unexpected optional section appeared in the output, which has been corrected.
Will merge to 'next'.
source: <[email protected]>
* os/fetch-check-not-current-branch (2022-05-16) 1 commit
- fetch: limit shared symref check only for local branches
The way "git fetch" without "--update-head-ok" ensures that HEAD in no worktree points at any ref being updated was too wasteful, which has been optimized a bit.
Will merge to 'next'?
source: <[email protected]>
* ds/object-file-unpack-loose-header-fix (2022-05-16) 1 commit
- object-file: convert 'switch' back to 'if'
(this branch uses ab/valgrind-fixes.)
Coding style fix.
Will merge to 'next'?
source: <[email protected]>
--------------------------------------------------
[Stalled]
* js/bisect-in-c (2022-02-23) 14 commits
- bisect: no longer try to clean up left-over .git/head-name files
- bisect: remove Cogito-related code
- bisect: turn git bisect into a full built-in
- bisect: move even the option parsing to bisect--helper
- bisect--helper: return only correct exit codes in cmd_*()
- bisect--helper: move the BISECT_STATE case to the end
- bisect--helper: make --bisect-state optional
- bisect--helper: align the sub-command order with git-bisect.sh
- bisect--helper: using --bisect-state without an argument is a bug
- bisect--helper: really retire --bisect-autostart
- bisect--helper: really retire --bisect-next-check
- bisect--helper: retire the --no-log option
- bisect: avoid double-quoting when printing the failed command
- bisect run: fix the error message
Final bits of "git bisect.sh" have been rewritten in C.
Expecting a reroll.
cf. <[email protected]>
source: <[email protected]>
* et/xdiff-indirection (2022-02-17) 1 commit
- xdiff: provide indirection to git functions
Insert a layer of preprocessor macros for common functions in xdiff codebase.
Expecting a reroll.
cf. <[email protected]>
source: <20220217225408.GB7@edef91d97c94>
* js/ci-github-workflow-markup (2022-03-01) 9 commits
- ci: call finalize_test_case_output a little later
- ci: use --github-workflow-markup in the GitHub workflow
- ci: optionally mark up output in the GitHub workflow
- test(junit): avoid line feeds in XML attributes
- tests: refactor --write-junit-xml code
- ci/run-build-and-tests: add some structure to the GitHub workflow output
- ci: make it easier to find failed tests' logs in the GitHub workflow
- ci/run-build-and-tests: take a more high-level view
- ci: fix code style
Update the GitHub workflow support to make it quicker to get to the failing test.
Expecting a reroll.
cf. <[email protected]>
source: <[email protected]>
* bc/stash-export (2022-04-08) 4 commits
- builtin/stash: provide a way to import stashes from a ref
- builtin/stash: provide a way to export stashes to a ref
- builtin/stash: factor out revision parsing into a function
- object-name: make get_oid quietly return an error
A mechanism to export and import stash entries to and from a normal commit to transfer it across repositories has been introduced.
Expecting a reroll.
cf. <[email protected]>
source: <[email protected]>
* ab/hooks-regression-fix (2022-04-21) 6 commits
- hook API: fix v2.36.0 regression: hooks should be connected to a TTY
- hook API: don't redundantly re-set "no_stdin" and "stdout_to_stderr"
- hook tests: fix redirection logic error in 96e7225b310
- run-command: add an "ungroup" option to run_process_parallel()
- run-command tests: test stdout of run_command_parallel()
- run-command API: replace run_processes_parallel_tr2() with opts struct
In Git 2.36 we revamped the way how hooks are invoked. One change that is end-user visible is that the output of a hook is no longer directly connected to the standard output of "git" that spawns the hook, which was noticed post release. This is getting corrected.
Expecting a reroll.
source: <[email protected]>
* js/wait-or-whine-can-fail (2022-04-28) 1 commit
- run-command: don't spam trace2_child_exit()
We used to log an error return from wait_or_whine() as process termination of the waited child, which was incorrect.
Needs clarifying "in rare cases".
source: <4616d09ffa632bd2c9e308a713c4bdf2a1328c3c.1651179450.git.steadmon@google.com>
* dl/prompt-pick-fix (2022-03-25) 1 commit
. git-prompt: fix sequencer/todo detection
Fix shell prompt script (in contrib/) for those who set rebase.abbreviateCommands; we failed to recognize that we were in a multi-step cherry-pick session.
Is this even needed? How?
cf. <[email protected]>
source: <[email protected]>
* es/superproject-aware-submodules (2022-03-09) 3 commits . rev-parse: short-circuit superproject worktree when config unset . introduce submodule.hasSuperproject record
. t7400-submodule-basic: modernize inspect() helper
A configuration variable in a repository tells if it is (or is not) a submodule of a superproject.
Expecting a reroll.
cf. <[email protected]>
source: <[email protected]>
* cw/remote-object-info (2022-05-06) 11 commits
- SQUASH??? coccicheck
- SQUASH??? ensure that coccicheck is happy
- SQUASH??? compilation fix
- cat-file: add --batch-command remote-object-info command
- cat-file: move parse_cmd and DEFAULT_FORMAT up
- transport: add object-info fallback to fetch
- transport: add client side capability to request object-info
- object-info: send attribute packet regardless of object ids
- object-store: add function to free object_info contents
- fetch-pack: move fetch default settings
- fetch-pack: refactor packet writing
A client component to talk with the object-info endpoint.
Expecting a reroll.
source: <[email protected]>
--------------------------------------------------
[Cooking]
* gg/worktree-from-the-above (2022-05-11) 2 commits
- dir: minor refactoring / clean-up
- dir: consider worktree config in path recursion
With a non-bare repository, with core.worktree pointing at a directory that has the repository as its subdirectory, regressed in Git 2.27 days.
Expecting a reroll.
source: <[email protected]>
* jc/update-ozlabs-url (2022-05-11) 1 commit (merged to 'next' on 2022-05-12 at d6b14040b6)
+ SubmittingPatches: use more stable git.ozlabs.org URL
Will merge to 'master'.
* jc/archive-add-file-normalize-mode (2022-05-12) 1 commit (merged to 'next' on 2022-05-16 at 265bb02f2a)
+ archive: do not let on-disk mode leak to zip archives
"git archive --add-file=<path>" picked up the raw permission bits from the path and propagated to zip output in some cases, without normalization, which has been corrected (tar output did not have this issue).
Will merge to 'master'.
source: <[email protected]>
* ab/commit-plug-leaks (2022-05-12) 1 commit
(merged to 'next' on 2022-05-16 at 00bcda44af)
+ commit: fix "author_ident" leak
Leakfix in the top-level called-once function.
Will merge to 'master'.
source: <[email protected]>
* ab/valgrind-fixes (2022-05-12) 4 commits
(merged to 'next' on 2022-05-16 at 75d760528f)
+ commit-graph.c: don't assume that stat() succeeds
+ object-file: fix a unpack_loose_header() regression in 3b6a8db3b03
+ log test: skip a failing mkstemp() test under valgrind
+ tests: using custom GIT_EXEC_PATH breaks --valgrind tests (this branch is used by ds/object-file-unpack-loose-header-fix.)
A bit of test framework fixes with a few fixes to issues found by valgrind.
Will merge to 'master'.
source: <[email protected]>
* cd/bisect-messages-from-pre-flight-states (2022-05-11) 2 commits (merged to 'next' on 2022-05-12 at 0e6072fb45)
+ bisect: output bisect setup status in bisect log
+ bisect: output state before we are ready to compute bisection
"git bisect" was too silent before it is ready to start computing the actual bisection, which has been corrected.
Will merge to 'master'.
source: <[email protected]>
* mg/detect-compiler-in-c-locale (2022-05-09) 1 commit (merged to 'next' on 2022-05-12 at 58c7d6e461)
+ detect-compiler: make detection independent of locale
Build procedure fixup.
Will merge to 'master'.
source: <f306f43f375bc9b9c98e85260587442e5d9ef0ba.1652094958.git.git@grubix.eu>
* gc/pull-recurse-submodules (2022-05-11) 1 commit
(merged to 'next' on 2022-05-12 at fe15c34c7a)
+ pull: do not let submodule.recurse override fetch.recurseSubmodules
"git pull" without "--recurse-submodules=<arg>" made submodule.recurse take precedence over fetch.recurseSubmodules by mistake, which has been corrected.
Will merge to 'master'.
source: <[email protected]>
* ac/remote-v-with-object-list-filters (2022-05-09) 1 commit
- builtin/remote.c: teach -v to list filters for promisor remotes
"git remote -v" now shows the list-objects-filter used during fetching from the remote, if available.
Will merge to 'next'?
source: <[email protected]>
* cc/http-curlopt-resolve (2022-05-16) 1 commit
- http: add custom hostname to IP address resolutions
With the new http.curloptResolve configuration, the CURLOPT_RESOLVE mechanism that allows cURL based applications to use pre-resolved IP addresses for the requests is exposed to the scripts.
Will merge to 'next'?
source: <[email protected]>
* js/trace2-doc-fixes (2022-05-04) 6 commits (merged to 'next' on 2022-05-12 at b37c6a8c2e)
+ trace2 docs: add missing full stop
+ trace2 docs: clarify what varargs is all about
+ trace2 docs: fix a JSON formatted example
+ trace2 docs: surround more terms in backticks
+ trace2 docs: "printf" is not an English word
+ trace2 docs: a couple of grammar fixes
Trace2 documentation updates.
Will merge to 'master'.
source: <[email protected]>
* jx/l10n-workflow-change (2022-05-04) 9 commits
- l10n: Document the new l10n workflow
- Makefile: add "po-init" rule to initialize po/XX.po
- Makefile: add "po-update" rule to update po/XX.po
- po/git.pot: don't check in result of "make pot"
- po/git.pot: this is now a generated file
- i18n CI: stop allowing non-ASCII source messages in po/git.pot
- Makefile: have "make pot" not "reset --hard"
- Makefile: generate "po/git.pot" from stable LOCALIZED_C
- Makefile: sort "po/git.pot" by file location
A workflow change for translators are being proposed.
cf. <YnRI6u+dV5GNHoD9@acer>
source: <[email protected]>
* tk/p4-metadata-coding-strategies (2022-05-04) 1 commit (merged to 'next' on 2022-05-13 at d083cc3ff0)
+ git-p4: improve encoding handling to support inconsistent encodings
"git p4" updates.
Will merge to 'master'.
source: <[email protected]>
* ep/equals-null-cocci (2022-05-02) 2 commits
(merged to 'next' on 2022-05-13 at a8de51ce7a)
+ tree-wide: apply equals-null.cocci
+ Merge branch 'ep/maint-equals-null-cocci' into ep/equals-null-cocci (this branch uses ep/maint-equals-null-cocci.)
Merges up ep/maint-equals-null-cocci to the current codebase.
Will merge to 'master'.
* ep/maint-equals-null-cocci (2022-05-02) 4 commits (merged to 'next' on 2022-05-13 at 022e914848)
+ tree-wide: apply equals-null.cocci
+ Merge branch 'ep/maint-equals-null-cocci' for maint-2.35
+ tree-wide: apply equals-null.cocci
+ contrib/coccinnelle: add equals-null.cocci (this branch is used by ep/equals-null-cocci.)
Introduce and apply coccinelle rule to discourage an explicit comparison between a pointer and NULL, and applies the clean-up to the maintenance track.
Will merge to 'master'.
* ds/sparse-colon-path (2022-04-26) 5 commits
(merged to 'next' on 2022-05-13 at f1740d248a)
+ rev-parse: integrate with sparse index
+ object-name: diagnose trees in index properly
+ object-name: reject trees found in the index
+ show: integrate with the sparse index
+ t1092: add compatibility tests for 'git show'
"git show :<path>" learned to work better with the sparse-index feature.
Will merge to 'master'.
source: <[email protected]>
* cb/path-owner-check-with-sudo (2022-05-12) 4 commits
- git-compat-util: allow root to access both SUDO_UID and root owned
- t0034: add negative tests and allow git init to mostly work under sudo
- git-compat-util: avoid failing dir ownership checks if running privileged
- t: regression git needs safe.directory when using sudo
With a recent update to refuse access to repositories of other people by default, "sudo make install" and "sudo git describe" stopped working. This series intends to loosen it while keeping the safety.
Will merge to 'next'?
source: <[email protected]>
* pb/ggg-in-mfc-doc (2022-05-12) 5 commits
- MyFirstContribution: drop PR description for GGG single-patch contributions
- MyFirstContribution: reference "The cover letter" in GitGitGadget section
- MyFirstContribution: reference "The cover letter" in "Preparing Email"
- MyFirstContribution: add standalone section on cover letter
- MyFirstContribution: add "Anatomy of a Patch Series" section
Documentation update.
Will merge to 'next'?
source: <[email protected]>
* sg/safe-directory-tests-and-docs (2022-04-27) 3 commits
(merged to 'next' on 2022-05-12 at 2a6a11d6bf)
+ safe.directory: document and check that it's ignored in the environment
+ t0033-safe-directory: check when 'safe.directory' is ignored
+ t0033-safe-directory: check the error message without matching the trash dir
New tests for the safe.directory mechanism.
Will merge to 'master'.
source: <[email protected]>
* cg/tools-for-git-doc (2022-04-21) 1 commit
- Documentation/ToolsForGit.txt: Tools for developing Git
A new doc that lists tips for tools to work with Git's codebase.
Will merge to 'next'?
source: <[email protected]>
* cb/ci-make-p4-optional (2022-05-12) 4 commits
(merged to 'next' on 2022-05-13 at 7e84679e2a)
+ ci: use https, not http to download binaries from perforce.com
+ ci: reintroduce prevention from perforce being quarantined in macOS
+ ci: avoid brew for installing perforce
+ ci: make failure to find perforce more user friendly
macOS CI jobs have been occasionally flaky due to tentative version skew between perforce and the homebrew packager. Instead of failing the whole CI job, just let it skip the p4 tests when this happens.
Will merge to 'master'.
source: <[email protected]>
* jc/show-branch-g-current (2022-04-21) 1 commit
- show-branch: -g and --current are incompatible
The "--current" option of "git show-branch" should have been made incompatible with the "--reflog" mode, but this was not enforced, which has been corrected.
Will merge to 'next'.
source: <[email protected]>
* rs/external-diff-tempfile (2022-04-20) 2 commits (merged to 'next' on 2022-05-12 at b357b518b3)
+ diff: use mks_tempfile_dt()
+ tempfile: add mks_tempfile_dt()
The temporary files fed to external diff command are now generated inside a new temporary directory under the same basename.
Will merge to 'master'.
source: <[email protected]>
* ar/send-email-confirm-by-default (2022-04-22) 1 commit
- send-email: always confirm by default
"git send-email" is changed so that by default it asks for confirmation before sending each message out.
Will discard.
I wanted to like this, and had it in the version of Git I use myself for daily work, but the prompting turned out to be somewhat distracting.
Thoughts?
source: <[email protected]>
* mv/log-since-as-filter (2022-04-23) 1 commit
(merged to 'next' on 2022-05-12 at dc93e4e93a)
+ log: "--since-as-filter" option is a non-terminating "--since" variant
"git log --since=X" will stop traversal upon seeing a commit that is older than X, but there may be commits behind it that is younger than X when the commit was created with a faulty clock. A new option is added to keep digging without stopping, and instead filter out commits with timestamp older than X.
Will merge to 'master'.
source: <[email protected]>
* ds/do-not-call-bug-on-bad-refs (2022-04-25) 1 commit (merged to 'next' on 2022-05-12 at af4d003dfb)
+ clone: die() instead of BUG() on bad refs
Code clean-up.
Will merge to 'master'.
source: <[email protected]>
* vd/sparse-stash (2022-05-10) 6 commits (merged to 'next' on 2022-05-13 at 0f52519a0e)
+ unpack-trees: preserve index sparsity
+ stash: apply stash using 'merge_ort_nonrecursive()'
+ read-cache: set sparsity when index is new
+ sparse-index: expose 'is_sparse_index_allowed()'
+ stash: integrate with sparse index
+ stash: expand sparse-checkout compatibility testing
Teach "git stash" to work better with sparse index entries.
Will merge to 'master'.
source: <[email protected]>
* sa/t1011-use-helpers (2022-04-12) 1 commit
(merged to 'next' on 2022-05-12 at 5bed8531e3)
+ t1011: replace test -f with test_path_is_file
A GSoC practice.
Will merge to 'master'.
source: <[email protected]>
* ep/coverage-report-wants-test-to-have-run (2022-04-13) 1 commit
- Makefile: add a prerequisite to the coverage-report target
"make coverage-report" without first running "make coverage" did not produce any meaningful result, which has been corrected.
Will merge to 'next'.
source: <[email protected]>
* rs/t7812-pcre2-ws-bug-test (2022-04-11) 1 commit (merged to 'next' on 2022-05-12 at 0e0ce3b493)
+ t7812: test PCRE2 whitespace bug
A test to ensure workaround for an earlier pcre2 bug does work.
Will merge to 'master'.
source: <[email protected]>
* ah/convert-warning-message (2022-04-08) 1 commit (merged to 'next' on 2022-05-12 at a9f8f32904)
+ convert: clarify line ending conversion warning
Update a few end-user facing messages around eol conversion.
Will merge to 'master'.
source: <[email protected]>
* cg/vscode-with-gdb (2022-04-08) 1 commit (merged to 'next' on 2022-05-12 at 2635bf0c8c)
+ contrib/vscode/: debugging with VS Code and gdb
VS code configuration updates.
Will merge to 'master'.
source: <[email protected]>
* gf/unused-includes (2022-04-06) 2 commits
(merged to 'next' on 2022-05-12 at 690a2d8976)
+ apply.c: remove unnecessary include
+ serve.c: remove unnecessary include
Remove unused includes.
Will merge to 'master'.
source: <[email protected]>
* km/t3501-use-test-helpers (2022-04-06) 1 commit (merged to 'next' on 2022-05-12 at 66c5cd1c32)
+ t3501: remove test -f and stop ignoring git <cmd> exit code
Test script updates.
Will merge to 'master'.
source: <[email protected]>
* pb/submodule-recurse-mode-enum (2022-04-06) 1 commit (merged to 'next' on 2022-05-12 at 1164a4c9b7)
+ submodule.h: use a named enum for RECURSE_SUBMODULES_*
Small code clean-up.
Will merge to 'master'.
source: <[email protected]>
* tk/p4-utf8-bom (2022-04-06) 1 commit
(merged to 'next' on 2022-05-12 at 7bb2e70e7b)
+ git-p4: preserve utf8 BOM when importing from p4 to git
"git p4" update.
Will merge to 'master'.
source: <[email protected]>
* tk/p4-with-explicity-sync (2022-04-06) 1 commit (merged to 'next' on 2022-05-12 at 81e662edae)
+ git-p4: support explicit sync of arbitrary existing git-p4 refs
"git p4" update.
Will merge to 'master'.
source: <[email protected]>
* ab/env-array (2022-04-06) 3 commits
- run-command API users: use "env" not "env_array" in comments & names
- run-command API: rename "env_array" to "env"
- cocci: add a rename of "struct child_process"'s "env_array" to "env"
Rename .env_array member to .env in the child_process structure.
On hold.
source: <[email protected]>
* gf/shorthand-version-and-help (2022-03-31) 1 commit (merged to 'next' on 2022-05-12 at 54ca8b25e0)
+ cli: add -v and -h shorthands
"git -v" and "git -h" are now understood as "git --version" and "git --help".
Will merge to 'master'.
source: <[email protected]>
* ab/plug-leak-in-revisions (2022-04-13) 28 commits
- revisions API: add a TODO for diff_free(&revs->diffopt)
- revisions API: have release_revisions() release "topo_walk_info"
- revisions API: have release_revisions() release "date_mode"
- revisions API: call diff_free(&revs->pruning) in revisions_release()
- revisions API: release "reflog_info" in release revisions()
- revisions API: clear "boundary_commits" in release_revisions()
- revisions API: have release_revisions() release "prune_data"
- revisions API: have release_revisions() release "grep_filter"
- revisions API: have release_revisions() release "filter"
- revisions API: have release_revisions() release "cmdline"
- revisions API: have release_revisions() release "mailmap"
- revisions API: have release_revisions() release "commits"
- revisions API users: use release_revisions() for "prune_data" users
- revisions API users: use release_revisions() with UNLEAK()
- revisions API users: use release_revisions() in builtin/log.c
- revisions API users: use release_revisions() in http-push.c
- revisions API users: add "goto cleanup" for release_revisions()
- stash: always have the owner of "stash_info" free it
- revisions API users: use release_revisions() needing REV_INFO_INIT
- revision.[ch]: document and move code declared around "init"
- revisions API users: add straightforward release_revisions()
- revision.[ch]: provide and start using a release_revisions()
- cocci: add and apply free_commit_list() rules
- format-patch: don't leak "extra_headers" or "ref_message_ids"
- string_list API users: use string_list_init_{no,}dup
- blame: use "goto cleanup" for cleanup_scoreboard()
- t/helper/test-fast-rebase.c: don't leak "struct strbuf"
- Merge branch 'ds/partial-bundle-more' into ab/plug-leak-in-revisions
Plug the memory leaks from the trickiest API of all, the revision walker.
On hold.
source: <[email protected]>
* ab/ci-github-workflow-markup (2022-04-21) 11 commits
. ci: call finalize_test_case_output a little later
. ci: use --github-workflow-markup in the GitHub workflow . ci: optionally mark up output in the GitHub workflow
. test(junit): avoid line feeds in XML attributes
. tests: refactor --write-junit-xml code
. ci: make it easier to find failed tests' logs in the GitHub workflow . CI: stop setting FAILED_TEST_ARTIFACTS N times
. CI: don't include "test-results/" in ci/print-test-failures.sh output . CI: add --exit-code to ci/print-test-failures.sh
. CI: don't "cd" in ci/print-test-failures.sh
. Merge branch 'ab/ci-setup-simplify' into ab/ci-github-workflow-markup (this branch uses ab/ci-setup-simplify.)
Build a moral equivalent of js/ci-github-workflow-markup on top of ab/ci-setup-simplify.
source: <[email protected]>
* ab/ci-setup-simplify (2022-04-21) 29 commits
. CI: make it easy to use ci/*.sh outside of CI
. CI: don't use "set -x" in "ci/lib.sh" output
. CI: set PYTHON_PATH setting for osx-{clang,gcc} into "$jobname" case . CI: set SANITIZE=leak in MAKEFLAGS directly
. CI: set CC in MAKEFLAGS directly, don't add it to the environment . CI: add more variables to MAKEFLAGS, except under vs-build . CI: narrow down variable definitions in --build and --test . CI: only invoke ci/lib.sh as "steps" in main.yml
. CI: pre-select test slice in Windows & VS tests
. ci/run-test-slice.sh: replace shelling out with "echo"
. CI: move "env" definitions into ci/lib.sh
. CI: combine ci/install{,-docker}-dependencies.sh
. CI: split up and reduce "ci/test-documentation.sh"
. CI: invoke "make artifacts-tar" directly in windows-build . CI: check ignored unignored build artifacts in "win[+VS] build" too . CI: make ci/{lib,install-dependencies}.sh POSIX-compatible . CI: remove "run-build-and-tests.sh", run "make [test]" directly . CI: export variables via a wrapper
. CI: consistently use "export" in ci/lib.sh
. CI: move p4 and git-lfs variables to ci/install-dependencies.sh . CI: have "static-analysis" run "check-builtins", not "documentation" . CI: have "static-analysis" run a "make ci-static-analysis" target . CI: don't have "git grep" invoke a pager in tree content check . CI/lib.sh: stop adding leading whitespace to $MAKEFLAGS
. CI: remove unused Azure ci/* code
. CI: remove dead "tree skipping" code
. CI: remove more dead Travis CI support
. CI: make "$jobname" explicit, remove fallback
. CI: run "set -ex" early in ci/lib.sh
(this branch is used by ab/ci-github-workflow-markup.)
Drive more actions done in CI via the Makefile instead of shell commands sprinkled in .github/workflows/main.yml
source: <[email protected]>
* kf/p4-multiple-remotes (2022-03-21) 1 commit (merged to 'next' on 2022-05-12 at 447ed8ee3e)
+ git-p4: fix issue with multiple perforce remotes
"git p4" update.
Will merge to 'master'.
source: <[email protected]>
* ns/batch-fsync (2022-04-06) 13 commits
- core.fsyncmethod: performance tests for batch mode
- t/perf: add iteration setup mechanism to perf-lib
- core.fsyncmethod: tests for batch mode
- test-lib-functions: add parsing helpers for ls-files and ls-tree
- core.fsync: use batch mode and sync loose objects by default on Windows
- unpack-objects: use the bulk-checkin infrastructure
- update-index: use the bulk-checkin infrastructure
- builtin/add: add ODB transaction around add_files_to_cache
- cache-tree: use ODB transaction around writing a tree
- core.fsyncmethod: batched disk flushes for loose-objects
- bulk-checkin: rebrand plug/unplug APIs as 'odb transactions'
- bulk-checkin: rename 'state' variable and separate 'plugged' boolean
- Merge branch 'ns/core-fsyncmethod' into ns/batch-fsync
Introduce a filesystem-dependent mechanism to optimize the way the bits for many loose object files are ensured to hit the disk platter.
Will merge to 'next'?
source: <[email protected]>
* en/sparse-cone-becomes-default (2022-04-21) 9 commits (merged to 'next' on 2022-05-13 at c168eb55cf)
+ Documentation: some sparsity wording clarifications
+ git-sparse-checkout.txt: mark non-cone mode as deprecated
+ git-sparse-checkout.txt: flesh out pattern set sections a bit
+ git-sparse-checkout.txt: add a new EXAMPLES section
+ git-sparse-checkout.txt: shuffle some sections and mark as internal
+ git-sparse-checkout.txt: update docs for deprecation of 'init'
+ git-sparse-checkout.txt: wording updates for the cone mode default
+ sparse-checkout: make --cone the default
+ tests: stop assuming --no-cone is the default mode for sparse-checkout
Deprecate non-cone mode of the sparse-checkout feature.
Will cook in 'next' til 06-03 and then merge to 'master'.
source: <[email protected]>
* tb/cruft-packs (2022-03-02) 17 commits
- sha1-file.c: don't freshen cruft packs
- builtin/gc.c: conditionally avoid pruning objects via loose
- builtin/repack.c: add cruft packs to MIDX during geometric repack
- builtin/repack.c: use named flags for existing_packs
- builtin/repack.c: allow configuring cruft pack generation
- builtin/repack.c: support generating a cruft pack
- builtin/pack-objects.c: --cruft with expiration
- reachable: report precise timestamps from objects in cruft packs
- reachable: add options to add_unseen_recent_objects_to_traversal
- builtin/pack-objects.c: --cruft without expiration
- builtin/pack-objects.c: return from create_object_entry()
- t/helper: add 'pack-mtimes' test-tool
- pack-mtimes: support writing pack .mtimes files
- chunk-format.h: extract oid_version()
- pack-write: pass 'struct packing_data' to 'stage_tmp_packfiles'
- pack-mtimes: support reading .mtimes files
- Documentation/technical: add cruft-packs.txt
A mechanism to pack unreachable objects into a "cruft pack", instead of ejecting them into loose form to be reclaimed later, has been introduced.
Waiting for discussion to settle.
cf. <[email protected]>
source: <[email protected]>
* tk/simple-autosetupmerge (2022-04-29) 3 commits
- push: new config option "push.autoSetupRemote" supports "simple" push
- push: default to single remote even when not named origin
- branch: new autosetupmerge option 'simple' for matching branches
"git -c branch.autosetupmerge=simple branch $A $B" will set the $B as $A's upstream only when $A and $B shares the same name, and "git -c push.default=simple" on branch $A would push to update the branch $A at the remote $B came from. Also more places use the sole remote, if exists, before defaulting to 'origin'.
Will merge to 'next'?
source: <[email protected]>
* jh/builtin-fsmonitor-part3 (2022-04-22) 29 commits
- fsmonitor--daemon: allow --super-prefix argument
- t7527: test Unicode NFC/NFD handling on MacOS
- t/lib-unicode-nfc-nfd: helper prereqs for testing unicode nfc/nfd
- fsmonitor: on macOS also emit NFC spelling for NFD pathname
- t7527: test FSMonitor on case insensitive+preserving file system
- fsmonitor: never set CE_FSMONITOR_VALID on submodules
- t/perf/p7527: add perf test for builtin FSMonitor
- t7527: FSMonitor tests for directory moves
- fsmonitor: optimize processing of directory events
- fsm-listen-darwin: shutdown daemon if worktree root is moved/renamed
- fsm-health-win32: force shutdown daemon if worktree root moves
- fsm-health-win32: add polling framework to monitor daemon health
- fsmonitor--daemon: stub in health thread
- fsmonitor--daemon: rename listener thread related variables
- fsmonitor--daemon: prepare for adding health thread
- fsmonitor--daemon: cd out of worktree root
- fsm-listen-darwin: ignore FSEvents caused by xattr changes on macOS
- unpack-trees: initialize fsmonitor_has_run_once in o->result
- fsmonitor-settings: NTFS and FAT32 on MacOS are incompatible
- fsmonitor-settings: remote repos on Windows are incompatible
- fsmonitor-settings: remote repos on macOS are incompatible
- fsmonitor-settings: stub in macOS-specific incompatibility checking
- fsmonitor-settings: VFS for Git virtual repos are incompatible
- fsmonitor-settings: stub in Win32-specific incompatibility checking
- fsmonitor-settings: bare repos are incompatible with FSMonitor
- t/helper/fsmonitor-client: create stress test
- t7527: test FSMonitor on repos with Unicode root paths
- fsm-listen-win32: handle shortnames
- Merge branch 'jh/builtin-fsmonitor-part2' into jh/builtin-fsmonitor-part3
More fsmonitor--daemon.
Expecting a hopefully final reroll.
cf. <[email protected]>
source: <[email protected]>
* js/scalar-diagnose (2022-05-12) 8 commits
- fixup: archive: optionally add "virtual" files
- scalar: teach diagnose to gather loose objects information
- scalar: teach diagnose to gather packfile info
- scalar diagnose: include disk space information
- scalar: implement scalar diagnose
- scalar: validate the optional enlistment argument
- archive --add-file-with-contents: allow paths containing colons
- archive: optionally add "virtual" files
Implementation of "scalar diagnose" subcommand.
Will merge to 'next' after squashing the fix in?
source: <[email protected]>
* en/merge-tree (2022-02-23) 13 commits
- git-merge-tree.txt: add a section on potentional usage mistakes
- merge-tree: add a --allow-unrelated-histories flag
- merge-tree: allow ls-files -u style info to be NUL terminated
- merge-tree: provide easy access to ls-files -u style info
- merge-tree: provide a list of which files have conflicts
- merge-ort: provide a merge_get_conflicted_files() helper function
- merge-tree: support including merge messages in output
- merge-ort: split out a separate display_update_messages() function
- merge-tree: implement real merges
- merge-tree: add option parsing and initial shell for real merge function
- merge-tree: move logic for existing merge into new function
- merge-tree: rename merge_trees() to trivial_merge_trees()
- Merge branch 'en/remerge-diff' into en/merge-trees
A new command is introduced that takes two commits and computes a tree that would be contained in the resulting merge commit, if the histories leading to these two commits were to be merged, and is added as a new mode of "git merge-tree" subcommand.
On hold.
cf. <CABPp-BGZ7OAYRR5YKRsxJSo-C=ho+qcNAkqwkim8CkhCfCeHsA@mail.gmail.com>
source: <[email protected]>
* js/use-builtin-add-i (2021-12-01) 2 commits
- add -i: default to the built-in implementation
- t2016: require the PERL prereq only when necessary
"git add -i" was rewritten in C some time ago and has been in testing; the reimplementation is now exposed to general public by default.
On hold.
What's the status of the "known breakage"?
Are we ready to switch if we wanted to?
There are known breakages on macOS.
cf. <[email protected]>
source: <[email protected]>
Quoted 10 lines · Junio C Hamano
* tb/midx-race-in-pack-objects (2022-05-13) 2 commits
-builtin/pack-objects.c: ensure pack validity from MIDX bitmap objects
- pack-bitmap: check preferred pack validity when opening MIDX bitmapThe multi-pack-index code did not protect the packfile it is going to depend on from getting removed while in use, which has been corrected.
Will merge to 'next'?
source: <[email protected]>
Looking at the conversation here, I would change this to "expecting a re-roll".
Quoted 13 lines
* ab/valgrind-fixes (2022-05-12) 4 commits
(merged to 'next' on 2022-05-16 at75d760528f)
+commit-graph.c: don't assume thatstat()succeeds
+ object-file: fix aunpack_loose_header()regression in3b6a8db3b03
+ log test: skip a failingmkstemp()test under valgrind
+ tests: using customGIT_EXEC_PATHbreaks --valgrind tests (this branch is used by ds/object-file-unpack-loose-header-fix.)A bit of test framework fixes with a few fixes to issues found by valgrind.
Will merge to 'master'.
source: <[email protected]>
...
Quoted 8 lines
* ds/object-file-unpack-loose-header-fix (2022-05-16) 1 commit
- object-file: convert 'switch' back to 'if'
(this branch uses ab/valgrind-fixes.)Coding style fix.
Will merge to 'next'?
source: <[email protected]>
With ab/valgrind-fixes in 'next', I think this is an easy one to merge. I'm calling it out here since the patch was hidden in the review of ab/valgrind-fixes.
Thanks,
-Stolee
Quoted 10 lines · Derrick Stolee
Quoted 8 lines · Junio C Hamano
* tb/midx-race-in-pack-objects (2022-05-13) 2 commits
-builtin/pack-objects.c: ensure pack validity from MIDX bitmap objects
- pack-bitmap: check preferred pack validity when opening MIDX bitmapThe multi-pack-index code did not protect the packfile it is going to depend on from getting removed while in use, which has been corrected.
Quoted 5 lines
Quoted 2 lines
Will merge to 'next'?
source: <[email protected]>Looking at the conversation here, I would change this to "expecting a re-roll".
Yes, please. I have a slightly longer version of this series which addresses a problem discussed in:
https://lore.kernel.org/git/[email protected]/
and below.
It's available in my fork on GitHub in the tb/midx-bitmap-pack-objects-races, but not quite ready for the list yet.
Thanks,
Taylor
Quoted 7 lines · Junio C Hamano
* cb/path-owner-check-with-sudo (2022-05-12) 4 commits
- git-compat-util: allow root to access bothSUDO_UIDand root owned
- t0034: add negative tests and allow git init to mostly work under sudo
- git-compat-util: avoid failing dir ownership checks if running privileged
- t: regression git needs safe.directory when using sudo
Quoted 7 lines
With a recent update to refuse access to repositories of other people by default, "sudo make install" and "sudo git describe" stopped working. This series intends to loosen it while keeping the safety.
Will merge to 'next'?
source: <[email protected]>
I am obviously biased, and probably confused, since this is already in the "cooking" section, but I think this is ready and should be merged to next without the optional patch 4.
That MIGHT helps us understand how bad of a regression it is in the real world for not being able to access a repository owned by root by a root user that got there by doing sudo -s and then browsing around (which IMHO we shouldn't be encouraging people to do, anyway).
and if there is an outcry, it will be easily "fixed" by getting patch 4 in, which ironically might had been the only patch almost no one commented on so far, but I think is less likely to have issues that might need to be fixed before doing so.
Carlo
Quoted 13 lines · Carlo Marcelo Arenas Belón
Quoted 12 lines · Junio C Hamano
* cb/path-owner-check-with-sudo (2022-05-12) 4 commits
- git-compat-util: allow root to access bothSUDO_UIDand root owned
- t0034: add negative tests and allow git init to mostly work under sudo
- git-compat-util: avoid failing dir ownership checks if running privileged
- t: regression git needs safe.directory when using sudoWith a recent update to refuse access to repositories of other people by default, "sudo make install" and "sudo git describe" stopped working. This series intends to loosen it while keeping the safety.
Quoted 6 lines
Quoted 2 lines
Will merge to 'next'?
source: <[email protected]>I am obviously biased, and probably confused, since this is already in the "cooking" section, but I think this is ready and should be merged to next without the optional patch 4.
I agree that #4 may be subject to further discussion, but the other three are solid enough. Let's merge it down.
Thanks.
ab/env-array (was: What's cooking in git.git (May 2022, #05; Mon, 16))
In reply to Junio C HamanoQuoted 9 lines · Junio C Hamano
* ab/env-array (2022-04-06) 3 commits
- run-command API users: use "env" not "env_array" in comments & names
- run-command API: rename "env_array" to "env"
- cocci: add a rename of "struct child_process"'s "env_array" to "env"Rename .env_array member to .env in the
child_processstructure.On hold.
source: <[email protected]>
I'm not sure if the "on hold" status is wanted here, or a holdover from around the release time (per
https://lore.kernel.org/git/?q=ab%2Fenv-array); but in this case I think it would be very nice if we could advance this sooner than later.
I'm aware of a couple of topics that would semantically conflict with it if re-submitted (IIRC the rest of submodule-in-C is one). So if we're going to do the s/env_array/env/g at all it seems better to do it sooner than later.
Thanks.
Re: ab/env-array
Quoted 17 lines · Ævar Arnfjörð Bjarmason
Quoted 9 lines · Junio C Hamano
* ab/env-array (2022-04-06) 3 commits
- run-command API users: use "env" not "env_array" in comments & names
- run-command API: rename "env_array" to "env"
- cocci: add a rename of "struct child_process"'s "env_array" to "env"Rename .env_array member to .env in the
child_processstructure.On hold.
source: <[email protected]>I'm not sure if the "on hold" status is wanted here, or a holdover from around the release time (per
https://lore.kernel.org/git/?q=ab%2Fenv-array); but in this case I think it would be very nice if we could advance this sooner than later.
Quoted 4 lines
I'm aware of a couple of topics that would semantically conflict with it if re-submitted (IIRC the rest of submodule-in-C is one). So if we're going to do the s/env_array/env/g at all it seems better to do it sooner than later.
I do not think the run_command.cocci should remain in the tree at the end of this topic, as anybody who uses .env_array will be broken at compile time, so the only effect it adds is to make it take more time run "make coccicheck" for no good reason. Anything it would catch we can find with "make" a lot faster. It may serve as a dormant mine to surprise future developer who may want to add .env_array member for other reasons, too ;-)
Instead of renaming .pending.cocci to .cocci I think the file should be removed, no?
Other than that, I think this can go in any time, before or after the topics that add more mention of the .env_array member that are in-flight. The rename done in this topic felt somewhat irritating while merging them, but the conflicts have been manageable.
Re: ab/env-array
Quoted 32 lines · Junio C Hamano
Quoted 17 lines · Ævar Arnfjörð Bjarmason
Quoted 9 lines · Junio C Hamano
* ab/env-array (2022-04-06) 3 commits
- run-command API users: use "env" not "env_array" in comments & names
- run-command API: rename "env_array" to "env"
- cocci: add a rename of "struct child_process"'s "env_array" to "env"Rename .env_array member to .env in the
child_processstructure.On hold.
source: <[email protected]>I'm not sure if the "on hold" status is wanted here, or a holdover from around the release time (per
https://lore.kernel.org/git/?q=ab%2Fenv-array); but in this case I think it would be very nice if we could advance this sooner than later.Quoted 4 lines
I'm aware of a couple of topics that would semantically conflict with it if re-submitted (IIRC the rest of submodule-in-C is one). So if we're going to do the s/env_array/env/g at all it seems better to do it sooner than later.
I do not think the
run_command.coccishould remain in the tree at the end of this topic, as anybody who uses .env_array will be broken at compile time, so the only effect it adds is to make it take more time run "make coccicheck" for no good reason. Anything it would catch we can find with "make" a lot faster. It may serve as a dormant mine to surprise future developer who may want to add .env_array member for other reasons, too ;-)
Quoted 7 lines
Instead of renaming
.pending.coccito .cocci I think the file should be removed, no?Other than that, I think this can go in any time, before or after the topics that add more mention of the .env_array member that are in-flight. The rename done in this topic felt somewhat irritating while merging them, but the conflicts have been manageable.
Makes sense, I re-rolled a v2 with the removal of the *.cocci rule added.
ar/send-email-confirm-by-default (was: What's cooking in git.git (May 2022, #05; Mon, 16))
In reply to Junio C HamanoQuoted 6 lines · Junio C Hamano
* ar/send-email-confirm-by-default (2022-04-22) 1 commit
- send-email: always confirm by default"git send-email" is changed so that by default it asks for confirmation before sending each message out.
Quoted 8 lines
Will discard.
I wanted to like this, and had it in the version of Git I use myself for daily work, but the prompting turned out to be somewhat distracting.
Thoughts?
source: <[email protected]>
I'd prefer for this to go in. As noted in my review I've been running with this setting for many years, and I don't think I'd trust myself to use git-send-email without it.
But it's always hard to figure out what's the right UX trade-off in these cases, particularly for something like git-send-email which is a relatively advanced tool, and likely has a small-ish userbase that's used to the current defaults.
But for those users setting the config to the current (and more foot-gun-y) will be easy, and I think making this friendlier to newcomers is worth it.