From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS53758 23.128.96.0/24 X-Spam-Status: No, score=-3.9 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by dcvr.yhbt.net (Postfix) with ESMTP id 462011F953 for ; Tue, 28 Dec 2021 00:16:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234147AbhL1AQ5 (ORCPT ); Mon, 27 Dec 2021 19:16:57 -0500 Received: from pb-smtp1.pobox.com ([64.147.108.70]:57294 "EHLO pb-smtp1.pobox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234131AbhL1AQ4 (ORCPT ); Mon, 27 Dec 2021 19:16:56 -0500 Received: from pb-smtp1.pobox.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id C1C4C10ECE9; Mon, 27 Dec 2021 19:16:55 -0500 (EST) (envelope-from junio@pobox.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h=from:to :subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=sasl; bh=5BsrmGsAARKSyyv42eLbB5VUd 8ZS/E9tlIjZBbHq6vs=; b=XGTXHGd8v+oLW+Mfb0EVtYhfRmVb06n71taxtrxWO jgfajkleJs1M/DgJqdwfXFZauZWfB2dFnv2psBVOu55WcN04GJa08PUsU0KtgXHL B3y28nlhXt7NLXbDC48NV6IIpDfqyyq4C6uC7RVvbdghWFfP/6xJQt1fUxkl4PFh k8= Received: from pb-smtp1.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id B967C10ECE8; Mon, 27 Dec 2021 19:16:55 -0500 (EST) (envelope-from junio@pobox.com) Received: from pobox.com (unknown [104.133.2.91]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp1.pobox.com (Postfix) with ESMTPSA id 1079310ECE7; Mon, 27 Dec 2021 19:16:54 -0500 (EST) (envelope-from junio@pobox.com) From: Junio C Hamano To: git@vger.kernel.org Subject: What's cooking in git.git (Dec 2021, #06; Mon, 27) X-master-at: 2ae0a9cb8298185a94e5998086f380a355dd8907 X-next-at: 55b058a8bbcc54bd93c733035c995abc7967e539 Date: Mon, 27 Dec 2021 16:16:53 -0800 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Pobox-Relay-ID: 76A12F40-6773-11EC-A442-5E84C8D8090B-77302942!pb-smtp1.pobox.com Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org 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', which means nothing more than that I have found them of interest for some reason (like "it may have hard-to-resolve conflicts with another topic already in flight" or "this may turn out to be useful"). Do not read too much into a topic being in (or not in) 'seen'. The ones marked with '.' do not appear in any of the integration branches, but I am still holding onto them. Hopefully this will be the last issue of "What's cooking" report of this year. Please expect my tree will be slow moving this week and whereever you are on the globe, relax and enjoy the remainder of this year. 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] * ab/makefile-hook-list-dependency-fix (2021-12-25) 1 commit - Makefile: correct the dependency graph of hook-list.h Fix dependency rules to generate hook-list.h header file. Will merge to 'next'. source: * ab/makefile-msgfmt-wo-stats (2021-12-25) 1 commit - Makefile: don't invoke msgfmt with --statistics Make the recipe that runs msgfmt less noisy. Will merge to 'next'. source: * ab/makefile-pager-env-is-used-only-by-pager.c (2021-12-25) 1 commit - Makefile: move -DPAGER_ENV from BASIC_CFLAGS to EXTRA_CPPFLAGS Will merge to 'next'. source: -------------------------------------------------- [Stalled] * je/http-better-error-output (2021-12-03) 1 commit . http-backend: give a hint that web browser access is not supported When the http-backend program, which is the server-side component for the smart HTTP transport, sends a "404 Not found" error, we deliberately did not say anything to the requesting client. We now send a message back to the browser to tell the user that they do not want to visit the URL via their browser, instead of a totally blank page. Expecting a reroll. Breaks its self tests. cf. <7r23s082-o3q0-479o-srqn-r45q778s5nq7@vanv.qr> source: <20211202102855.23907-1-jengelh@inai.de> * cb/save-term-across-editor-invocation (2021-12-01) 3 commits - fixup! editor: allow for saving/restoring terminal state - editor: allow for saving/restoring terminal state - terminal: teach save_term to fail when not foreground Some editors are reported to leave the terminal in funny state after they exit on Windows. Work it around by saving and restoring the terminal state when needed. Expecting a reroll. cf. source: <20211202035446.1154-1-carenas@gmail.com> * ar/submodule-update (2021-10-13) 9 commits . submodule--helper: rename helper functions . submodule--helper: remove unused helpers . submodule: move core cmd_update() logic to C . submodule--helper: run update using child process struct . submodule--helper: allow setting superprefix for init_submodule() . submodule--helper: refactor get_submodule_displaypath() . submodule--helper: rename helpers for update-clone . submodule--helper: get remote names from any repository . submodule--helper: split up ensure_core_worktree() Rewrite of "git submodule update" in C. Expecting a reroll? cf. source: <20211013051805.45662-10-raykar.ath@gmail.com> -------------------------------------------------- [Cooking] * ab/do-not-limit-stash-help-to-push (2021-12-16) 1 commit - stash: don't show "git stash push" usage on bad "git stash" usage "git stash" by default triggers its "push" action, but its implementation also made "git stash -h" to show short help only for "git stash push", which has been corrected. Will merge to 'next'. source: * km/help-prompt-fix (2021-12-16) 1 commit (merged to 'next' on 2021-12-27 at a16d8fa62a) + help: make auto-correction prompt more consistent Among some code paths that ask an yes/no question, only one place gave a prompt that looked different from the others, which has been updated to match what the others create. Will merge to 'master'. source: * lh/use-gnu-color-in-grep (2021-12-16) 1 commit - grep: align default colors with GNU grep ones The color palette used by "git grep" has been updated to match that of GNU grep. On hold. cf. source: <20211216115622.85506-1-lenaic@lhuard.fr> * ws/fast-export-with-revision-options (2021-12-21) 1 commit - fast-export: fix surprising behavior with --first-parent Use of certain "git rev-list" options with "git fast-export" created nonsense results (the worst two of which being "--reverse" and "--invert-grep --grep=3D"). The use of "--first-parent" is made to behave a bit more sensible than before. Will merge to 'next'. source: * jc/t4204-do-not-write-git-on-upstream-of-pipe (2021-12-16) 1 commit (merged to 'next' on 2021-12-27 at dc2c5db807) + t4204 is not sanitizer clean at all Test fixes. Will merge to 'master'. source: * jc/unleak-log (2021-12-16) 1 commit (merged to 'next' on 2021-12-21 at c39506ec86) + format-patch: mark rev_info with UNLEAK "git format-patch" uses a single rev_info instance and then exits. Mark the structure with UNLEAK() macro to squelch leak sanitizer. Will merge to 'master'. source: * ds/repack-fixlets (2021-12-20) 2 commits (merged to 'next' on 2021-12-27 at 8f8474ae84) + repack: make '--quiet' disable progress + repack: respect kept objects with '--write-midx -b' Two fixes around "git repack". Will merge to 'master'. source: * gh/gpg-doc-markup-fix (2021-12-17) 1 commit (merged to 'next' on 2021-12-27 at 7988d71a27) + docs: add missing colon to Documentation/config/gpg.txt Doc markup fix. Will merge to 'master'. source: <20211217161718.15767-1-greg@hurrell.net> * jc/merge-detached-head-name (2021-12-20) 1 commit (merged to 'next' on 2021-12-27 at 01f9fe17b9) + merge: allow to pretend a merge is made into a different branch The default merge message prepared by "git merge" records the name of the current branch; the name can be overridden with a new option to allow users to pretend a merge is made on a different branch. Will merge to 'master'. source: * jh/p4-human-unit-numbers (2021-12-20) 2 commits - git-p4: show progress as an integer - git-p4: print size values in appropriate units The way "git p4" shows file sizes in its output has been updated to use human-readable units. Will merge to 'next'. source: <20211219154028.3288756-1-jholdsworth@nvidia.com> * jz/apply-3-corner-cases (2021-12-20) 1 commit - git-apply: skip threeway in add / rename cases "git apply --3way" bypasses the attempt to do a three-way application in more cases to address the regression caused by the recent change to use direct application as a fallback. Will merge to 'next'. source: <20211217224328.7646-1-jerry@skydio.com> * pw/add-p-hunk-split-fix (2021-12-20) 2 commits - builtin add -p: fix hunk splitting - t3701: clean up hunk splitting tests "git add -p" rewritten in C regressed hunk splitting in some cases, which has been corrected. Expecting a reroll. source: * rs/daemon-plug-leak (2021-12-20) 1 commit (merged to 'next' on 2021-12-27 at 55b058a8bb) + daemon: plug memory leak on overlong path Plug a memory leak. Will merge to 'master'. source: <5b151dc3-d4c7-29d3-71ed-a79033693d5d@web.de> * rs/log-invert-grep-with-headers (2021-12-17) 1 commit (merged to 'next' on 2021-12-27 at 861648fe8c) + log: let --invert-grep only invert --grep "git log --invert-grep --author=3D" used to exclude commits written by the given author, but now "--invert-grep" only affects the matches made by the "--grep=3D" option. Will merge to 'master'. source: * rs/pcre2-utf (2021-12-20) 2 commits (merged to 'next' on 2021-12-27 at 5dc740c331) + grep/pcre2: factor out literal variable + grep/pcre2: use PCRE2_UTF even with ASCII patterns "git grep --perl-regexp" failed to match UTF-8 characters with wildcard when the pattern consists only of ASCII letters, which has been corrected. Will merge to 'master'. source: <5fa6962e-3c1c-6dbc-f6d7-589151a9baec@web.de> * rs/t4202-invert-grep-test-fix (2021-12-17) 1 commit (merged to 'next' on 2021-12-27 at b09cee1626) + t4202: fix patternType setting in --invert-grep test Test fix. Will merge to 'master'. source: <79dcebc0-e569-cc8a-4702-c572b062ed6d@web.de> * ds/sparse-checkout-requires-per-worktree-config (2021-12-21) 5 commits - sparse-checkout: use repo_config_set_worktree_gently() - config: add repo_config_set_worktree_gently() - worktree: add upgrade_to_worktree_config() - config: make some helpers repo-aware - setup: use a repository when upgrading format "git sparse-checkout" wants to work with per-worktree configration, but did not work well in a worktree attached to a bare repository. Expecting a redesign? cf. source: * en/remerge-diff (2021-12-25) 9 commits - show, log: include conflict/warning messages in --remerge-diff headers - diff: add ability to insert additional headers for paths - merge-ort: format messages slightly different for use in headers - merge-ort: mark a few more conflict messages as omittable - merge-ort: capture and print ll-merge warnings in our preferred fashio= n - ll-merge: make callers responsible for showing warnings - log: clean unneeded objects during `log --remerge-diff` - show, log: provide a --remerge-diff capability - Merge branch 'ns/tmp-objdir' into en/remerge-diff (this branch uses ns/tmp-objdir.) "git log --remerge-diff" shows the difference from mechanical merge result and the merge result that is actually recorded. source: * gc/fetch-negotiate-only-early-return (2021-12-21) 3 commits - builtin/fetch: die on --negotiate-only and --recurse-submodules - builtin/fetch: skip unnecessary tasks when using --negotiate-only - builtin/fetch: use goto cleanup in cmd_fetch() Expecting a reroll. cf. source: <20211222001134.28933-1-chooglen@google.com> * hn/refs-debug-update (2021-12-22) 3 commits - refs: centralize initialization of the base ref_store. - refs: print error message in debug output - refs: pass gitdir to packed_ref_store_create Debugging support for refs API. Will merge to 'next'. source: * hn/test-ref-store-show-hash-algo (2021-12-21) 1 commit - test-ref-store: print hash algorithm Debugging support for refs API. Will merge to 'next'. source: * ja/perf-use-specified-shell (2021-12-25) 1 commit - t/perf: do not run tests in user's $SHELL Perf tests were run with end-user's shell, but it has been corrected to use the shell specified by $TEST_SHELL_PATH. Will merge to 'next'. source: <20211225081656.1311583-1-aclopte@gmail.com> * js/l10n-mention-ngettext-early-in-readme (2021-12-21) 1 commit - l10n: README: call more attention to plural strings Localization doc update. Will merge to 'next'. source: <25107068cbbf8c9ce6886e66e25dff19e072583f.1639425295.git.steadmo= n@google.com> * ab/reflog-prep (2021-12-22) 9 commits - reflog + refs-backend: move "verbose" out of the backend - refs files-backend: assume cb->newlog if !EXPIRE_REFLOGS_DRY_RUN - reflog: reduce scope of "struct rev_info" - reflog expire: don't use lookup_commit_reference_gently() - reflog expire: refactor & use "tip_commit" only for UE_NORMAL - reflog expire: use "switch" over enum values - reflog: change one->many worktree->refnames to use a string_list - reflog expire: narrow scope of "cb" in cmd_reflog_expire() - reflog delete: narrow scope of "cmd" passed to count_reflog_ent() Code refactoring in the reflog part of refs API. Will merge to 'next'. source: * bs/forbid-i18n-of-protocol-token-in-fetch-pack (2021-12-22) 2 commits - fixup! fetch-pack: parameterize message containing 'ready' keyword - fetch-pack: parameterize message containing 'ready' keyword L10n support for a few error messages. Expecting an ack for fixup. source: <20211222075805.19027-1-bagasdotme@gmail.com> * hn/ref-api-tests-update (2021-12-22) 4 commits - t7004: use "test-tool ref-store" for reflog inspection - t7004: create separate tags for different tests - t5550: require REFFILES - t5540: require REFFILES Test updates. Will merge to 'next'. source: * jh/p4-remove-unused (2021-12-22) 2 commits - git-p4: remove "rollback" verb - git-p4: remove "debug" verb Remove a few commands from "git p4" that aren't very useful. Will merge to 'next'. source: <20211222145552.93786-1-jholdsworth@nvidia.com> * hn/reftable-fixes (2021-12-23) 3 commits - reftable: support preset file mode for writing - reftable: signal overflow - reftable: fix typo in header Assorted fixlets in reftable code. Will merge to 'next'. source: * jh/p4-rcs-expansion-in-bytestring (2021-12-16) 5 commits (merged to 'next' on 2021-12-27 at 650cb248ea) + git-p4: resolve RCS keywords in bytes not utf-8 + git-p4: open temporary patch file for write only + git-p4: add raw option to read_pipelines + git-p4: pre-compile RCS keyword regexes + git-p4: use with statements to close files after use in patchRCSKeywor= ds The RCS keyword substitution in "git p4" used to be done assuming that the contents are UTF-8 text, which can trigger decoding errors. We now treat the contents as a bytestring for robustness and correctness. Will merge to 'master'. source: <20211216134619.2048348-1-jholdsworth@nvidia.com> * ds/sparse-checkout-malformed-pattern-fix (2021-12-25) 4 commits (merged to 'next' on 2021-12-27 at c410caf527) + fixup! sparse-checkout: fix OOM error with mixed patterns + sparse-checkout: refuse to add to bad patterns + sparse-checkout: fix OOM error with mixed patterns + sparse-checkout: fix segfault on malformed patterns Certain sparse-checkout patterns that are valid in non-cone mode led to segfault in cone mode, which has been corrected. Will merge to 'master'. source: * gc/branch-recurse-submodules (2021-12-25) 7 commits - fixup! branch: add --recurse-submodules option for branch creation - branch: add --recurse-submodules option for branch creation - builtin/branch: clean up action-picking logic in cmd_branch() - branch: add a dry_run parameter to create_branch() - branch: make create_branch() always create a branch - branch: move --set-upstream-to behavior to dwim_and_setup_tracking() - Merge branch 'js/branch-track-inherit' into gc/branch-recurse-submodul= es (this branch uses js/branch-track-inherit.) "git branch" learned the "--recurse-submodules" option. Will merge to 'next'? source: <20211220233459.45739-1-chooglen@google.com> * jk/ssh-signing-doc-markup-fix (2021-12-15) 1 commit (merged to 'next' on 2021-12-27 at 2188dc2023) + doc/config: mark ssh allowedSigners example as literal Docfix. Will merge to 'master'. source: * jv/use-larger-buffer-in-upload-pack (2021-12-15) 1 commit (merged to 'next' on 2021-12-27 at 3a1afc1ef8) + upload-pack.c: increase output buffer size "git upload-pack" (the other side of "git fetch") used a 8kB buffer but most of its payload came on 64kB "packets". The buffer size has been enlarged so that such a packet fits. Will merge to 'master'. source: <20211214194626.33814-1-jacob@gitlab.com> * en/sparse-checkout-set (2021-12-23) 11 commits (merged to 'next' on 2021-12-25 at 510f9eba9a) + sparse-checkout: remove stray trailing space (merged to 'next' on 2021-12-21 at 36a98aed11) + clone: avoid using deprecated `sparse-checkout init` + Documentation: clarify/correct a few sparsity related statements + git-sparse-checkout.txt: update to document init/set/reapply changes + sparse-checkout: enable reapply to take --[no-]{cone,sparse-index} + sparse-checkout: enable `set` to initialize sparse-checkout mode + sparse-checkout: split out code for tweaking settings config + sparse-checkout: disallow --no-stdin as an argument to set + sparse-checkout: add sanity-checks on initial sparsity state + sparse-checkout: break apart functions for sparse_checkout_(set|add) + sparse-checkout: pass use_stdin as a parameter instead of as a global The "init" and "set" subcommands in "git sparse-checkout" have been unified for a better user experience and performance. Will merge to 'master'. source: * hn/reftable-coverity-fixes (2021-12-22) 18 commits - reftable: be more paranoid about 0-length memcpy calls - reftable: add print functions to the record types - reftable: make reftable_record a tagged union - reftable: remove outdated file reftable.c - reftable: implement record equality generically - reftable: make reftable-record.h function signatures const correct - reftable: handle null refnames in reftable_ref_record_equal - reftable: drop stray printf in readwrite_test - reftable: order unittests by complexity - reftable: all xxx_free() functions accept NULL arguments - reftable: fix resource warning - reftable: ignore remove() return value in stack_test.c - reftable: check reftable_stack_auto_compact() return value - reftable: fix resource leak blocksource.c - reftable: fix resource leak in block.c error path - reftable: fix OOB stack write in print functions - Merge branch 'hn/create-reflog-simplify' into hn/reftable-coverity-fix= es - Merge branch 'hn/reftable' into hn/reftable-coverity-fixes Problems identified by Coverity in the reftable code have been corrected. Will merge to 'next'? source: * tb/midx-bitmap-corruption-fix (2021-12-23) 9 commits - midx: read `RIDX` chunk when present - t/lib-bitmap.sh: parameterize tests over reverse index source - t5326: move tests to t/lib-bitmap.sh - t5326: extract `test_rev_exists` - t5326: drop unnecessary setup - pack-revindex.c: instrument loading on-disk reverse index - midx.c: make changing the preferred pack safe - t5326: demonstrate bitmap corruption after permutation - Merge branch 'tb/cruft-packs' into tb/midx-bitmap-corruption-fix (this branch uses tb/cruft-packs.) A bug that made multi-pack bitmap and the object order out-of-sync (hence the .midx data gets corrupted) has been fixed. What's the status of this thing? source: * es/test-chain-lint (2021-12-13) 19 commits (merged to 'next' on 2021-12-21 at d6f56f3248) + t6000-t9999: detect and signal failure within loop + t5000-t5999: detect and signal failure within loop + t4000-t4999: detect and signal failure within loop + t0000-t3999: detect and signal failure within loop + tests: simplify by dropping unnecessary `for` loops + tests: apply modern idiom for exiting loop upon failure + tests: apply modern idiom for signaling test failure + tests: fix broken &&-chains in `{...}` groups + tests: fix broken &&-chains in `$(...)` command substitutions + tests: fix broken &&-chains in compound statements + tests: use test_write_lines() to generate line-oriented output + tests: simplify construction of large blocks of text + t9107: use shell parameter expansion to avoid breaking &&-chain + t6300: make `%(raw:size) --shell` test more robust + t5516: drop unnecessary subshell and command invocation + t4202: clarify intent by creating expected content less cleverly + t1020: avoid aborting entire test script when one test fails + t1010: fix unnoticed failure on Windows + t/lib-pager: use sane_unset() to avoid breaking &&-chain Broken &&-chains in the test scripts have been corrected. Will merge to 'master'. source: <20211209051115.52629-1-sunshine@sunshineco.com> * jc/flex-array-definition (2021-12-08) 1 commit (merged to 'next' on 2021-12-27 at 9db6a814b7) + flex-array: simplify compiler-specific workaround The conditions to choose different definitions of the FLEX_ARRAY macro for vendor compilers has been simplified to make it easier to maintain. Will merge to 'master'. source: * pw/fix-some-issues-in-reset-head (2021-12-08) 14 commits - rebase -m: don't fork git checkout - rebase --apply: set ORIG_HEAD correctly - rebase --apply: fix reflog - reset_head(): take struct rebase_head_opts - rebase: cleanup reset_head() calls - reset_head(): make default_reflog_action optional - reset_head(): factor out ref updates - create_autostash(): remove unneeded parameter - reset_head(): remove action parameter - rebase --apply: don't run post-checkout hook if there is an error - rebase: do not remove untracked files on checkout - rebase: pass correct arguments to post-checkout hook - t5403: refactor rebase post-checkout hook tests - rebase: factor out checkout for up to date branch Fix "some issues" in a helper function reset_head(). Expecting a reroll. cf. cf. cf. cf. cf. source: * ja/i18n-similar-messages (2021-12-05) 10 commits - i18n: ref-filter: factorize "%(foo) atom used without %(bar) atom" - i18n: factorize "--foo outside a repository" - i18n: refactor "unrecognized %(foo) argument" strings - i18n: factorize "no directory given for --foo" - i18n: factorize "--foo requires --bar" and the like - i18n: tag.c factorize i18n strings - i18n: standardize "cannot open" and "cannot read" - i18n: turn "options are incompatible" into "are mutually exclusive" - i18n: refactor "%s, %s and %s are mutually exclusive" - i18n: refactor "foo and bar are mutually exclusive" Similar message templates have been consolidated so that translators need to work on fewer number of messages. Expecting a reroll. cf. <2447705.sFPtriHfYS@cayenne> source: * ab/usage-die-message (2021-12-07) 6 commits - config API: use get_error_routine(), not vreportf() - usage.c + gc: add and use a die_message_errno() - gc: return from cmd_gc(), don't call exit() - usage.c API users: use die_message() for error() + exit 128 - usage.c API users: use die_message() for "fatal :" + exit 128 - usage.c: add a die_message() routine Code clean-up to hide vreportf() from public API. Will merge to 'next'. source: * ab/cat-file (2021-12-25) 11 commits - fixup! cat-file: fix remaining usage bugs - cat-file: use GET_OID_ONLY_TO_DIE in --(textconv|filters) - object-name.c: don't have GET_OID_ONLY_TO_DIE imply *_QUIETLY - cat-file: correct and improve usage information - cat-file: fix remaining usage bugs - cat-file: make --batch-all-objects a CMDMODE - cat-file: move "usage" variable to cmd_cat_file() - cat-file docs: fix SYNOPSIS and "-h" output - parse-options API: add a usage_msg_optf() - cat-file tests: test messaging on bad objects/paths - cat-file tests: test bad usage Assorted updates to "git cat-file", especially "-h". Will merge to 'next'? source: * ab/grep-patterntype (2021-12-27) 8 commits - grep: simplify config parsing and option parsing - grep API: call grep_config() after grep_init() - grep.c: don't pass along NULL callback value - built-ins: trust the "prefix" from run_builtin() - fixup! grep tests: add missing "grep.patternType" config tests - grep tests: add missing "grep.patternType" config tests - log tests: check if grep_config() is called by "log"-like cmds - grep.h: remove unused "regex_t regexp" from grep_opt Some code clean-up in the "git grep" machinery. The last step is still broken; earlier clean-ups may still be worth keep= ing. source: * 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. There are known breakages on macOS. cf. source: * jt/conditional-config-on-remote-url (2021-12-15) 2 commits - config: include file if remote URL matches a glob - config: make git_config_include() static The conditional inclusion mechanism of configuration files using "[includeIf ]" learns to base its decision on the URL of the remote repository the repository interacts with. How does this one look these days? source: * tb/cruft-packs (2021-11-29) 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 (this branch is used by tb/midx-bitmap-corruption-fix.) Instead of leaving unreachable objects in loose form when packing, or ejecting them into loose form when repacking, gather them in a packfile with an auxiliary file that records the last-use time of these objects. Expecting a reroll. cf. <865b99dd-0b18-9a07-49c1-3959a777c685@gmail.com> cf. cf. source: * jl/subtree-check-parents-argument-passing-fix (2021-12-05) 1 commit - subtree: fix argument handling in check_parents Fix performance-releated bug in "git subtree" (in contrib/). Expecting a reroll. cf. source: * ab/ambiguous-object-name (2021-11-26) 6 commits - object-name: re-use "struct strbuf" in show_ambiguous_object() - object-name: iterate ambiguous objects before showing header - object-name: show date for ambiguous tag objects - object-name: make ambiguous object output translatable - object-name: explicitly handle OBJ_BAD in show_ambiguous_object() - object-name tests: add tests for ambiguous object blind spots Error output given in response to an ambiguous object name has been improved. An earlier iteration that was much smaller had seen some reviews, but the latest round enlarged its scope and needs to be reviewed afresh. source: * en/keep-cwd (2021-12-09) 11 commits (merged to 'next' on 2021-12-27 at 7cd8f7fdc0) + t2501: simplify the tests since we can now assume desired behavior + dir: new flag to remove_dir_recurse() to spare the original_cwd + dir: avoid incidentally removing the original_cwd in remove_path() + stash: do not attempt to remove startup_info->original_cwd + rebase: do not attempt to remove startup_info->original_cwd + clean: do not attempt to remove startup_info->original_cwd + symlinks: do not include startup_info->original_cwd in dir removal + unpack-trees: add special cwd handling + unpack-trees: refuse to remove startup_info->original_cwd + setup: introduce startup_info->original_cwd + t2501: add various tests for removing the current working directory Many git commands that deal with working tree files try to remove a directory that becomes empty (i.e. "git switch" from a branch that has the directory to another branch that does not would attempt remove all files in the directory and the directory itself). This drops users into an unfamiliar situation if the command was run in a subdirectory that becomes subject to removal due to the command. The commands have been taught to keep an empty directory if it is the directory they were started in to avoid surprising users. Will merge to 'master'. source: * tl/ls-tree-oid-only (2021-12-21) 1 commit - ls-tree.c: support `--object-only` option for "git-ls-tree" "git ls-tree" learns "--oid-only" option, similar to "--name-only". Will merge to 'next'? source: * ds/fetch-pull-with-sparse-index (2021-12-22) 5 commits - test-read-cache: remove --table, --expand options - t1091/t3705: remove 'test-tool read-cache --table' - t1092: replace 'read-cache --table' with 'ls-files --sparse' - ls-files: add --sparse option - fetch/pull: use the sparse index "git fetch" and "git pull" are now declared sparse-index clean. Also "git ls-files" learns the "--sparse" option to help debugging. Will merge to 'next'. source: * xw/am-empty (2021-12-15) 3 commits (merged to 'next' on 2021-12-27 at 562e1552f6) + am: support --allow-empty to record specific empty patches + am: support --empty=3D