Skip to contentSkip to conversation

What's cooking in git.git (Sep 2022, #01; Mon, 5)

DISCUSSION Junio C Hamano 3 participants 6 messages Sep 6, 2022 – Sep 9, 2022

lore
Share & tools
lore
#0 lore raw

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. A topic without enough support may be discarded after a long period of no activity.

We just started week #9 in a 12-week cycle toward Git 2.38 (tinyurl.com/gitCal), but since Monday was a holiday in US, we may see only four days worth of new patches, which is less work for our reviewers pool ;-)

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/

--------------------------------------------------
[Graduated to 'master']

* ac/bitmap-lookup-table (2022-08-28) 7 commits
(merged to 'next' on 2022-08-29 at 05d2d2c8bd)
+ pack-bitmap-write: drop unused pack_idx_entry parameters (merged to 'next' on 2022-08-26 at 7914c141eb)
+ bitmap-lookup-table: add performance tests for lookup table
+ pack-bitmap: prepare to read lookup table extension
+ pack-bitmap-write: learn pack.writeBitmapLookupTable and add tests
+ pack-bitmap-write.c: write lookup table extension
+ bitmap: move get commit positions code to bitmap_writer_finish
+ Documentation/technical: describe bitmap lookup table extension

The pack bitmap file gained a bitmap-lookup table to speed up locating the necessary bitmap for a given commit.
source: <[email protected]>

* bc/gc-crontab-fix (2022-08-28) 1 commit
(merged to 'next' on 2022-08-30 at a7a240a4da)
+ gc: use temporary file for editing crontab
(this branch is used by jk/test-crontab-fixes.)

FreeBSD portability fix for "git maintenance" that spawns "crontab" to schedule tasks.
source: <[email protected]>

* ds/bundle-uri-clone (2022-08-24) 6 commits (merged to 'next' on 2022-08-25 at 14754922fa)
+ clone: warn on failure to repo_init() (merged to 'next' on 2022-08-18 at 5e8a3ec71e)
+ clone: --bundle-uri cannot be combined with --depth
+ bundle-uri: add support for http(s):// and file://
+ clone: add --bundle-uri option
+ bundle-uri: create basic file-copy logic
+ remote-curl: add 'get' capability
(this branch is used by ds/bundle-uri-3.)

Implement "git clone --bundle-uri".
source: <[email protected]>
source: <[email protected]>

* en/merge-multi-strategies (2022-08-24) 2 commits (merged to 'next' on 2022-08-25 at 420e2eae66)
+ merge: small code readability improvement
+ merge: cleanup confusing logic for handling successful merges

The code that implements multi-strategy support in "git merge" has been clean-up a bit.
source: <[email protected]>

* en/merge-unstash-only-on-clean-merge (2022-08-24) 1 commit (merged to 'next' on 2022-08-25 at a144bdf6cb)
+ merge: only apply autostash when appropriate

The auto-stashed local changes created by "git merge --autostash"
was mixed into a conflicted state left in the working tree, which
has been corrected.
source: <610b8d089db97bf1a37dbf230f51ecafe3086254.1661222541.git.gitgitgadget@gmail.com>

* en/t4301-more-merge-tree-tests (2022-08-24) 1 commit (merged to 'next' on 2022-08-25 at c7abf60ff4)
+ t4301: add more interesting merge-tree testcases (this branch is used by es/t4301-sed-portability-fix.)

More tests to protect the current behaviour of "merge-tree" before it gets further updated.
source: <[email protected]>

* en/test-without-test-create-repo (2022-08-26) 1 commit (merged to 'next' on 2022-08-30 at 4f80f48e27)
+ t64xx: convert 'test_create_repo' to 'git init'

Test clean-up.
source: <[email protected]>

* es/t4301-sed-portability-fix (2022-08-29) 4 commits
(merged to 'next' on 2022-08-30 at eec0ceef0a)
+ t4301: emit blank line in more idiomatic fashion
+ t4301: fix broken &&-chains and add missing loop termination
+ t4301: account for behavior differences between sed implementations
+ Merge branch 'en/t4301-more-merge-tree-tests' into es/t4301-sed-portability-fix

Test clean-up.
source: <[email protected]>

* jk/test-crontab-fixes (2022-08-30) 1 commit (merged to 'next' on 2022-09-02 at d5113b5be3)
+ test-crontab: minor memory and error handling fixes (this branch uses bc/gc-crontab-fix.)

Test helper fix.
source: <[email protected]>

* rs/tempfile-cleanup-race-fix (2022-08-27) 1 commit (merged to 'next' on 2022-08-30 at 158dd1c910)
+ tempfile: avoid directory cleanup race
(this branch is used by jk/tempfile-active-flag-cleanup.)

The clean-up of temporary files created via mks_tempfile_dt() was racy and attempted to unlink() the leading directory when signals are involved, which has been corrected.
source: <[email protected]>

* rs/test-mergesort (2022-08-28) 2 commits
(merged to 'next' on 2022-08-30 at 4905149886)
+ test-mergesort: use mem_pool for sort input
+ test-mergesort: read sort input all at once

Optimization of a test-helper command.
source: <[email protected]>

* sg/parse-options-subcommand (2022-08-25) 23 commits
(merged to 'next' on 2022-08-25 at dab6bf1439)
+ remote: run "remote rm" argv through parse_options()
+ maintenance: add parse-options boilerplate for subcommands
+ pass subcommand "prefix" arguments to parse_options() (merged to 'next' on 2022-08-22 at 09d07c2271)
+ builtin/worktree.c: let parse-options parse subcommands
+ builtin/stash.c: let parse-options parse subcommands
+ builtin/sparse-checkout.c: let parse-options parse subcommands
+ builtin/remote.c: let parse-options parse subcommands
+ builtin/reflog.c: let parse-options parse subcommands
+ builtin/notes.c: let parse-options parse subcommands
+ builtin/multi-pack-index.c: let parse-options parse subcommands
+ builtin/hook.c: let parse-options parse subcommands
+ builtin/gc.c: let parse-options parse 'git maintenance's subcommands
+ builtin/commit-graph.c: let parse-options parse subcommands
+ builtin/bundle.c: let parse-options parse subcommands
+ parse-options: add support for parsing subcommands
+ parse-options: drop leading space from '--git-completion-helper' output
+ parse-options: clarify the limitations of PARSE_OPT_NODASH
+ parse-options: PARSE_OPT_KEEP_UNKNOWN only applies to --options
+ api-parse-options.txt: fix description of OPT_CMDMODE
+ t0040-parse-options: test parse_options() with various 'parse_opt_flags'
+ t5505-remote.sh: check the behavior without a subcommand
+ t3301-notes.sh: check that default operation mode doesn't take arguments
+ git.c: update NO_PARSEOPT markings
(this branch is used by js/bisect-in-c.)

Introduce the "subcommand" mode to parse-options API and update the command line parser of Git commands with subcommands.
source: <[email protected]>
source: <[email protected]>

* tb/midx-with-changing-preferred-pack-fix (2022-08-22) 7 commits (merged to 'next' on 2022-08-26 at 305a9d3323)
+ midx.c: avoid adding preferred objects twice
+ midx.c: include preferred pack correctly with existing MIDX
+ midx.c: extract midx_fanout_add_pack_fanout()
+ midx.c: extract midx_fanout_add_midx_fanout()
+ midx.c: extract struct midx_fanout
+ t/lib-bitmap.sh: avoid silencing stderr
+ t5326: demonstrate potential bitmap corruption

Multi-pack index got corrupted when preferred pack changed from one pack to another in a certain way, which has been corrected.
source: <[email protected]>

--------------------------------------------------
[Stalled]

* es/mark-gc-cruft-as-experimental (2022-08-03) 2 commits
- config: let feature.experimental imply gc.cruftPacks=true
- gc: add tests for --cruft and friends

Enable gc.cruftpacks by default for those who opt into feature.experimental setting.

Expecting a reroll.
cf. <[email protected]> cf. <[email protected]>
source: <[email protected]>

* es/doc-creation-factor-fix (2022-07-28) 2 commits
- range-diff: clarify --creation-factor=<factor>
- format-patch: clarify --creation-factor=<factor>

Expecting a reroll by somebody more familiar with the logic cf. <[email protected]>
source: <[email protected]>

* cw/remote-object-info (2022-08-13) 7 commits
- SQUASH???
- cat-file: add remote-object-info to batch-command
- transport: add client support for object-info
- serve: advertise object-info feature
- protocol-caps: initialization bug fix
- fetch-pack: move fetch initialization
- fetch-pack: refactor packet writing

A client component to talk with the object-info endpoint.

Expecting a reroll.
cf. <[email protected]>
cf. <CAFySSZDvgwbbHCHfyuaqX3tKsr-GjJ9iihygg6rNNe46Ys7_EA@mail.gmail.com>
source: <[email protected]>

--------------------------------------------------
[New Topics]

* ab/unused-annotation (2022-09-01) 2 commits
- git-compat-util.h: use "deprecated" for UNUSED variables
- git-compat-util.h: use "UNUSED", not "UNUSED(var)" (this branch uses jk/unused-annotation.)

Undoes 'jk/unused-annotation' topic and redoes it to work around Coccinelle rules misfiring false positives in unrelated codepaths.

Will merge to 'next'?
source: <[email protected]>

* ab/coccicheck-incremental (2022-08-31) 9 commits
- spatchcache: add a ccache-alike for "spatch"
- cocci: optimistically use COMPUTE_HEADER_DEPENDENCIES
- cocci: make "coccicheck" rule incremental
- cocci: split off "--all-includes" from SPATCH_FLAGS
- cocci: split off include-less "tests" from SPATCH_FLAGS
- Makefile: split off SPATCH_BATCH_SIZE comment from "cocci" heading
- Makefile: have "coccicheck" re-run if flags change
- Makefile: add ability to TAB-complete cocci *.patch rules
- cocci rules: remove unused "F" metavariable from pending rule

source: <[email protected]>

* ab/retire-ppc-sha1 (2022-08-31) 2 commits (merged to 'next' on 2022-09-05 at 480da6ef06)
+ Makefile: use $(OBJECTS) instead of $(C_OBJ)
+ Makefile + hash.h: remove PPC_SHA1 implementation

Remove the assembly version of SHA-1 implementation for PPC.

Will merge to 'master'.
source: <[email protected]>

* en/remerge-diff-fixes (2022-09-02) 3 commits
- diff: fix filtering of merge commits under --remerge-diff
- diff: fix filtering of additional headers under --remerge-diff
- diff: have submodule_format logic avoid additional diff headers

Fix a few "git log --remerge-diff" bugs.

Will probably need to rebase to make it mergeable to 'maint'.
source: <[email protected]>

* es/chainlint (2022-09-01) 18 commits
- t: retire unused chainlint.sed
- t/Makefile: teach make test and make prove to run chainlint.pl
- test-lib: replace chainlint.sed with chainlint.pl
- test-lib: retire "lint harder" optimization hack
- t/chainlint: add more chainlint.pl self-tests
- chainlint.pl: allow || echo to signal failure upstream of a pipe
- chainlint.pl: complain about loops lacking explicit failure handling
- chainlint.pl: don't flag broken &&-chain if failure indicated explicitly
- chainlint.pl: don't flag broken &&-chain if $? handled explicitly
- chainlint.pl: don't require & background command to end with &&
- t/Makefile: apply chainlint.pl to existing self-tests
- chainlint.pl: don't require return|exit|continue to end with &&
- chainlint.pl: validate test scripts in parallel
- chainlint.pl: add parser to identify test definitions
- chainlint.pl: add parser to validate tests
- chainlint.pl: add POSIX shell parser
- chainlint.pl: add POSIX shell lexical analyzer
- t: add skeleton chainlint.pl

Revamp chainlint script for our tests.
source: <[email protected]>

* jk/tempfile-active-flag-cleanup (2022-08-30) 3 commits
(merged to 'next' on 2022-09-05 at 43ed4656b3)
+ tempfile: update comment describing state transitions
+ tempfile: drop active flag
+ Merge branch 'rs/tempfile-cleanup-race-fix' into jk/tempfile-active-flag-cleanup

Code clean-up.

Will merge to 'master'.
source: <[email protected]>

* vd/scalar-to-main (2022-09-02) 9 commits
- Documentation/technical: include Scalar technical doc
- t/perf: add 'GIT_PERF_USE_SCALAR' run option
- t/perf: add Scalar performance tests
- scalar-clone: add test coverage
- scalar: add to 'git help -a' command list
- scalar: implement the help subcommand
- git help: special-case scalar
- scalar: include in standard Git build & installation
- scalar: fix command documentation section header

Hoist the remainder of "scalar" out of contrib/ to the main part of the codebase.
source: <[email protected]>

* ad/t1800-cygwin (2022-09-01) 1 commit
- t1800: correct test to handle Cygwin

Test fix.

Expecting a reroll.
cf. <[email protected]>
source: <[email protected]>

* jc/diff-no-index-unleak (2022-09-02) 1 commit
- diff --no-index: unleak paths[] elements

Plug a leak or two in "git diff --no-index".
source: <[email protected]>

* ow/rev-parse-parseopt-fix (2022-09-02) 1 commit
- rev-parse --parseopt: detect missing opt-spec

The parser in the script interface to parse-options in "git rev-parse" has been updated to diagnose a bogus input correctly.

Will merge to 'next'?
source: <[email protected]>

* vd/sparse-reset-checkout-fixes (2022-09-02) 1 commit (merged to 'next' on 2022-09-05 at 8c59ace003)
+ unpack-trees: fix sparse directory recursion check

Segfault fix-up to an earlier fix to the topic to teach "git reset" and "git checkout" work better in a sparse checkout.

Will merge to 'master'.
source: <[email protected]>

--------------------------------------------------
[Cooking]

* tb/diffstat-with-utf8-strwidth (2022-08-27) 1 commit
- diff.c: use utf8_strwidth() when appropriate

"git diff --stat" etc. were invented back when everything was ASCII and strlen() was a way to measure the display width of a string; adjust them to compute the display width assuming UTF-8 pathnames.
source: <[email protected]>

* gc/submodule-propagate-branches (2022-08-29) 6 commits
- clone, submodule update: check out branches
- submodule--helper: refactor up-to-date criterion
- submodule: return target of submodule symref
- t5617: drop references to remote-tracking branches
- repo-settings: add submodule_propagate_branches
- clone: teach --detach option

"git clone --recurse-submodules" and "git submodule update" learns to honor the "propagete branches" option.

Needs review.
source: <[email protected]>

* jc/format-patch-force-in-body-from (2022-08-29) 3 commits (merged to 'next' on 2022-09-05 at cecaaad60e)
+ format-patch: learn format.forceInBodyFrom configuration variable
+ format-patch: allow forcing the use of in-body From: header
+ pretty: separate out the logic to decide the use of in-body from

"git format-patch --from=<ident>" can be told to add an in-body "From:" line even for commits that are authored by the given <ident> with "--force-in-body-from"option.

Will merge to 'master'.
source: <[email protected]>

* sy/sparse-grep (2022-09-02) 3 commits
- builtin/grep.c: walking tree instead of expanding index with --sparse
- builtin/grep.c: integrate with sparse index
- builtin/grep.c: add --sparse option

source: <[email protected]>

* cc/doc-trailer-whitespace-rules (2022-08-30) 1 commit (merged to 'next' on 2022-09-05 at 4c018a3ab7)
+ Documentation: clarify whitespace rules for trailers

Doc update.

Will merge to 'master'.
source: <[email protected]>

* js/builtin-add-p-portability-fix (2022-08-30) 3 commits
- t6132(NO_PERL): do not run the scripted add -p
- t3701: test the built-in add -i regardless of NO_PERL
- add -p: avoid ambiguous signed/unsigned comparison

More fixes to "add -p"

Will merge to 'next'?
source: <[email protected]>

* ds/use-platform-regex-on-macos (2022-08-26) 1 commit
- grep: fix multibyte regex handling under macOS

With a bit of header twiddling, use the native regexp library on macOS instead of the compat/ one.

Needs review.
source: <[email protected]>

* ds/bundle-uri-3 (2022-08-24) 8 commits
- bundle-uri: fetch a list of bundles
- bundle-uri: limit recursion depth for bundle lists
- bundle-uri: parse bundle list in config format
- bundle-uri: unit test "key=value" parsing
- bundle-uri: create "key=value" line parsing
- bundle-uri: create base key-value pair parsing
- bundle-uri: create bundle_list struct and helpers
- Merge branch 'ds/bundle-uri-clone' into ds/bundle-uri-3

Define the logical elements of a "bundle list", data structure to store them in-core, format to transfer them, and code to parse them.

Needs review.
source: <[email protected]>

* js/add-p-diff-parsing-fix (2022-09-01) 3 commits
(merged to 'next' on 2022-09-02 at 1545e0898d)
+ add -p: ignore dirty submodules
+ add -p: gracefully handle unparseable hunk headers in colored diffs
+ add -p: detect more mismatches between plain vs colored diffs

Those who use diff-so-fancy as the diff-filter noticed a regression or two in the code that parses the diff output in the built-in version of "add -p", which has been corrected.

Will merge to 'master'.
source: <[email protected]>

* js/cmake-updates (2022-08-24) 5 commits
- cmake: increase time-out for a long-running test
- cmake: avoid editing t/test-lib.sh
- add -p: avoid ambiguous signed/unsigned comparison
- cmake: copy the merge tools for testing
- cmake: make it easier to diagnose regressions in CTest runs

Update to build procedure with VS using CMake/CTest.

Needs review.
source: <[email protected]>

* js/range-diff-with-pathspec (2022-08-26) 3 commits (merged to 'next' on 2022-09-05 at c027222552)
+ range-diff: optionally accept pathspecs
+ range-diff: consistently validate the arguments
+ range-diff: reorder argument handling

Allow passing a pathspec to "git range-diff".

Will merge to 'master'.
source: <[email protected]>

* jk/unused-annotation (2022-08-19) 11 commits
(merged to 'next' on 2022-08-24 at 2174b8c75d)
+ is_path_owned_by_current_uid(): mark "report" parameter as unused
+ run-command: mark unused async callback parameters
+ mark unused read_tree_recursive() callback parameters
+ hashmap: mark unused callback parameters
+ config: mark unused callback parameters
+ streaming: mark unused virtual method parameters
+ transport: mark bundle transport_options as unused
+ refs: mark unused virtual method parameters
+ refs: mark unused reflog callback parameters
+ refs: mark unused each_ref_fn parameters
+ git-compat-util: add UNUSED macro
(this branch is used by ab/unused-annotation.)

Annotate function parameters that are not used (but cannot be removed for structural reasons), to prepare us to later compile with -Wunused warning turned on.

Will keep but 'ab/unused-annotation' will undo/redo the whole thing. cf. <[email protected]>
cf. <[email protected]>
source: <[email protected]>

* ed/fsmonitor-on-network-disk (2022-08-31) 5 commits
- fsmonitor: normalize FSEvents event paths to the real path
- fsmonitor: ensure filesystem and unix socket filesystem are compatible
- fsmonitor: generate unique Unix socket file name in the desired location
- fsmonitor: add two new config options, allowRemote and socketDir (merged to 'next' on 2022-08-14 at 637d458d9c)
+ fsmonitor: option to allow fsmonitor to run against network-mounted repos

The built-in fsmonitor refuses to work on a network mounted repositories; a configuration knob for users to override this has been introduced.

Needs review.
source: <[email protected]>
source: <[email protected]>

* pw/rebase-keep-base-fixes (2022-08-18) 5 commits
- rebase --keep-base: imply --no-fork-point
- rebase --keep-base: imply --reapply-cherry-picks
- rebase: factor out merge_base calculation
- rebase: store orig_head as a commit
- t3416: set $EDITOR in subshell

"git rebase --keep-base" used to discard the commits that are already cherry-picked to the upstream, even when "keep-base" meant that the base, on top of which the history is being rebuilt, does not yet include these cherry-picked commits. The --keep-base option now implies --reapply-cherry-picks and --no-fork-point options.

Expecting a reroll.
cf. <[email protected]>
source: <[email protected]>

* ag/merge-strategies-in-c (2022-08-10) 14 commits
- sequencer: use the "octopus" strategy without forking
- sequencer: use the "resolve" strategy without forking
- merge: use the "octopus" strategy without forking
- merge: use the "resolve" strategy without forking
- merge-octopus: rewrite in C
- merge-recursive: move better_branch_name() to merge.c
- merge-resolve: rewrite in C
- merge-one-file: rewrite in C
- update-index: move add_cacheinfo() to read-cache.c
- merge-index: add a new way to invoke `git-merge-one-file'
- merge-index: drop the index
- merge-index: libify merge_one_path() and merge_all()
- t6060: add tests for removed files
- t6060: modify multiple files to expose a possible issue with merge-index

An attempt to rewrite remaining merge strategies from shell to C.

Needs more work.
At the minimum, we should lose 11/14 and possibly 08/14. cf. <[email protected]>
source: <[email protected]>

* sy/mv-out-of-cone (2022-08-10) 9 commits
(merged to 'next' on 2022-08-17 at 2316d9ce4d)
+ mv: check overwrite for in-to-out move
+ advice.h: add advise_on_moving_dirty_path()
+ mv: cleanup empty WORKING_DIRECTORY
+ mv: from in-cone to out-of-cone
+ mv: remove BOTH from enum update_mode
+ mv: check if <destination> is a SKIP_WORKTREE_DIR
+ mv: free the with_slash in check_dir_in_index()
+ mv: rename check_dir_in_index() to empty_dir_has_sparse_contents()
+ t7002: add tests for moving from in-cone to out-of-cone

"git mv A B" in a sparsely populated working tree can be asked to move a path from a directory that is "in cone" to another directory that is "out of cone". Handling of such a case has been improved.

An oob read access makes sanitizer build segfault. cf.<[email protected]>
source: <[email protected]>

* ab/submodule-helper-prep (2022-09-02) 33 commits
(merged to 'next' on 2022-09-05 at b0d1b6ada7)
+ submodule--helper: fix bad config API usage
+ submodule--helper: libify even more "die" paths for module_update()
+ submodule--helper: libify more "die" paths for module_update()
+ submodule--helper: check repo{_submodule,}_init() return values
+ submodule--helper: libify "must_die_on_failure" code paths (for die)
+ submodule--helper update: don't override 'checkout' exit code
+ submodule--helper: libify "must_die_on_failure" code paths
+ submodule--helper: libify determine_submodule_update_strategy()
+ submodule--helper: don't exit() on failure, return
+ submodule--helper: use "code" in run_update_command()
+ submodule API: don't handle SM_..{UNSPECIFIED,COMMAND} in to_string()
+ submodule--helper: don't call submodule_strategy_to_string() in BUG()
+ submodule--helper: add missing braces to "else" arm
+ submodule--helper: return "ret", not "1" from update_submodule()
+ submodule--helper: rename "int res" to "int ret"
+ submodule--helper: don't redundantly check "else if (res)"
+ submodule--helper: refactor "errmsg_str" to be a "struct strbuf"
+ submodule--helper: add "const" to passed "struct update_data"
+ submodule--helper: add "const" to copy of "update_data"
+ submodule--helper: add "const" to passed "module_clone_data"
+ submodule--helper: move "sb" in clone_submodule() to its own scope
+ submodule--helper: use xstrfmt() in clone_submodule()
+ submodule--helper: replace memset() with { 0 }-initialization
+ submodule--helper style: add \n\n after variable declarations
+ submodule--helper style: don't separate declared variables with \n\n
+ submodule--helper: move "resolve-relative-url-test" to a test-tool
+ submodule--helper: move "check-name" to a test-tool
+ submodule--helper: move "is-active" to a test-tool
+ test-tool submodule-config: remove unused "--url" handling
+ submodule--helper: remove unused "list" helper
+ submodule--helper: remove unused "name" helper
+ submodule tests: test for "add <repository> <abs-path>"
+ submodule tests: test usage behavior
(this branch is used by ab/submodule-helper-leakfix.)

Code clean-up of "git submodule--helper".

Will merge to 'master'.
source: <[email protected]>

* ab/dedup-config-and-command-docs (2022-08-31) 9 commits
- docs: add CONFIGURATION sections that fuzzy map to built-ins
- docs: add CONFIGURATION sections that map to a built-in
- log docs: de-duplicate configuration sections
- difftool docs: de-duplicate configuration sections
- notes docs: de-duplicate and combine configuration sections
- apply docs: de-duplicate configuration sections
- send-email docs: de-duplicate configuration sections
- grep docs: de-duplicate configuration sections
- docs: add and use include template for config/* includes

Share the text used to explain configuration variables used by "git <subcmd>" in "git help <subcmd>" with the text from "git help config".
source: <[email protected]>

* ab/submodule-helper-leakfix (2022-09-02) 18 commits
- submodule--helper: fix a configure_added_submodule() leak
- submodule--helper: free rest of "displaypath" in "struct update_data"
- submodule--helper: free some "displaypath" in "struct update_data"
- submodule--helper: fix a memory leak in print_status()
- submodule--helper: fix a leak in module_add()
- submodule--helper: fix obscure leak in module_add()
- submodule--helper: fix "reference" leak
- submodule--helper: fix a memory leak in get_default_remote_submodule()
- submodule--helper: fix a leak with repo_clear()
- submodule--helper: fix "sm_path" and other "module_cb_list" leaks
- submodule--helper: fix "errmsg_str" memory leak
- submodule--helper: add and use *_release() functions
- submodule--helper: don't leak {run,capture}_command() cp.dir argument
- submodule--helper: "struct pathspec" memory leak in module_update()
- submodule--helper: fix most "struct pathspec" memory leaks
- submodule--helper: fix trivial get_default_remote_submodule() leak
- submodule--helper: fix a leak in "clone_submodule"
- Merge branch 'ab/submodule-helper-prep' into ab/submodule-helper-leakfix (this branch uses ab/submodule-helper-prep.)

Plugging leaks in submodule--helper.

Will merge to 'next'?
source: <[email protected]>

* po/glossary-around-traversal (2022-07-09) 3 commits
- glossary: add reachability bitmap description
- glossary: add commit graph description
- glossary: add Object DataBase (ODB) abbreviation

The glossary entries for "commit-graph file" and "reachability bitmap" have been added.

Expecting a reroll.
cf. <[email protected]>
source: <[email protected]>

* js/bisect-in-c (2022-08-30) 17 commits
- bisect: no longer try to clean up left-over .git/head-name files
- bisect: remove Cogito-related code
- Turn git bisect into a full built-in
- bisect: move even the command-line parsing to bisect--helper
- bisect--helper: make state optional
- bisect--helper: calling bisect_state() without an argument is a bug
- bisect: avoid double-quoting when printing the failed command
- bisect run: fix the error message
- bisect: verify that a bogus option won't try to start a bisection
- bisect--helper: migrate to OPT_SUBCOMMAND()
- bisect--helper: make the order consistently argc, argv
- bisect--helper: make terms an explicit singleton
- bisect--helper: simplify exit code computation
- bisect--helper: really retire --bisect-autostart
- bisect--helper: really retire --bisect-next-check
- bisect--helper: retire the --no-log option
- Merge branch 'sg/parse-options-subcommand' into js/bisect-in-c

Final bits of "git bisect.sh" have been rewritten in C.
source: <[email protected]>

#1 lore raw

en/remerge-diff-fixes (Was: Re: What's cooking in git.git (Sep 2022, #01; Mon, 5))

Hi Junio,

Quoted 9 lines · Junio C Hamano

* en/remerge-diff-fixes (2022-09-02) 3 commits
- diff: fix filtering of merge commits under --remerge-diff
- diff: fix filtering of additional headers under --remerge-diff
- diff: have submodule_format logic avoid additional diff headers

Fix a few "git log --remerge-diff" bugs.

Will probably need to rebase to make it mergeable to 'maint'.
source: <[email protected]>

It rebases to 'maint' without conflict and the result correctly applies there...but rebasing to maint causes it to drop a line of code ("TEST_PASSES_SANITIZE_LEAK=true") which is called out in the commit message, making the commit message look funny. Also, while that line removal turns out to not matter to maint (because the leak checker was already off), it is critical for main. So, if you merge the rebased result back to main, the leak check will fail -- unless the merge back is an "evil merge" that restores the removal of that line.

So, which of the following would you prefer?
* A separate series for maint and main?
* Just ignore maint?
* Me to rebase on maint to tweak the commit message, and then you
carefully reinstate the line removal as part of the merge back to main?

#2 lore raw

Re: en/remerge-diff-fixes

Quoted 6 lines · Elijah Newren

So, which of the following would you prefer?
* A separate series for maint and main?
* Just ignore maint?
* Me to rebase on maint to tweak the commit message, and then you
carefully reinstate the line removal as part of the merge back to main?

None of them X-<.

As this cycle gets close to end, mergeability to 'maint' starts to matter less and less, so let's stop worrying about this single instance.

#3 lore raw
In reply to Junio C Hamano
Quoted 8 lines · Junio C Hamano

* gc/submodule-propagate-branches (2022-08-29) 6 commits
- clone, submodule update: check out branches
- submodule--helper: refactor up-to-date criterion
- submodule: return target of submodule symref
- t5617: drop references to remote-tracking branches
- repo-settings: add submodule_propagate_branches
- clone: teach --detach option

Quoted 5 lines

"git clone --recurse-submodules" and "git submodule update" learns to honor the "propagete branches" option.

Needs review.
source: <[email protected]>

I suggest renaming the branch - the config "submodule.propagateBranches" will be used by many more commands in the future, several of which will probably be authored by me :)

Maybe gc/submodule-update-with-branches? Or
gc/recursive-clone-with-branches.

#4 lore raw
Quoted 13 lines · Glen Choo
Quoted 11 lines · Junio C Hamano

* gc/submodule-propagate-branches (2022-08-29) 6 commits
- clone, submodule update: check out branches
- submodule--helper: refactor up-to-date criterion
- submodule: return target of submodule symref
- t5617: drop references to remote-tracking branches
- repo-settings: add submodule_propagate_branches
- clone: teach --detach option

"git clone --recurse-submodules" and "git submodule update" learns to honor the "propagete branches" option.

Quoted 6 lines
Quoted 2 lines

Needs review.
source: <[email protected]>

I suggest renaming the branch - the config "submodule.propagateBranches" will be used by many more commands in the future, several of which will probably be authored by me :)

OK. So this is a "clone" and "update" part of the larger topic?

Quoted 2 lines

Maybe gc/submodule-update-with-branches? Or
gc/recursive-clone-with-branches.

Both sound good suggestions.

#5 lore raw
Quoted 15 lines · Junio C Hamano
Quoted 13 lines · Glen Choo
Quoted 11 lines · Junio C Hamano

* gc/submodule-propagate-branches (2022-08-29) 6 commits
- clone, submodule update: check out branches
- submodule--helper: refactor up-to-date criterion
- submodule: return target of submodule symref
- t5617: drop references to remote-tracking branches
- repo-settings: add submodule_propagate_branches
- clone: teach --detach option

"git clone --recurse-submodules" and "git submodule update" learns to honor the "propagete branches" option.

Quoted 8 lines
Quoted 6 lines
Quoted 2 lines

Needs review.
source: <[email protected]>

I suggest renaming the branch - the config "submodule.propagateBranches" will be used by many more commands in the future, several of which will probably be authored by me :)

OK. So this is a "clone" and "update" part of the larger topic?

Yup; submodule.propagateBranches is the "branching" part of the submodule UX work that the Google team is working on.

Quoted 4 lines
Quoted 2 lines

Maybe gc/submodule-update-with-branches? Or
gc/recursive-clone-with-branches.

Both sound good suggestions.

Ok, I think gc/recursive-clone-with-branches captures the intent better (the improvements to git submodule update are more of an implementation detail).

Thanks!