Skip to contentSkip to conversation

What's cooking in git.git (Oct 2023, #03; Fri, 6)

DISCUSSION Junio C Hamano 4 participants 10 messages Oct 7, 2023 – Oct 28, 2023

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 and may be annotated with an URL to a message that raises issues but they are no means exhaustive. A topic without enough support may be discarded after a long period of no activity (of course they can be resubmit when new interests arise).

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]

* jc/merge-ort-attr-index-fix (2023-10-05) 1 commit
- merge-ort: initialize repo in index state

Fix "git merge-tree" to stop segfaulting when the --attr-source option is used.

Waiting for review response.
source: <[email protected]>

* jk/decoration-and-other-leak-fixes (2023-10-05) 3 commits (merged to 'next' on 2023-10-06 at 5fc05c94dc)
+ daemon: free listen_addr before returning
+ revision: clear decoration structs during release_revisions()
+ decorate: add clear_decoration() function

Leakfix.

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

* sn/typo-grammo-phraso-fixes (2023-10-05) 5 commits
- t/README: fix multi-prerequisite example
- doc/gitk: s/sticked/stuck/
- git-jump: admit to passing merge mode args to ls-files
- doc/diff-options: improve wording of the log.diffMerges mention
- doc: fix some typos, grammar and wording issues

Many typos, ungrammatical sentences and wrong phrasing have been fixed.

Needs review.
source: <[email protected]>

* so/diff-merges-dd (2023-10-05) 3 commits
- completion: complete '--dd'
- diff-merges: introduce '--dd' option
- diff-merges: improve --diff-merges documentation

"git log" and friends learned "--dd" that is a short-hand for "--diff-merges=first-parent -p".

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

* vd/loose-ref-iteration-optimization (2023-10-06) 4 commits
- files-backend.c: avoid stat in 'loose_fill_ref_dir'
- dir.[ch]: add 'follow_symlink' arg to 'get_dtype'
- dir.[ch]: expose 'get_dtype'
- ref-cache.c: fix prefix matching in ref iteration

The code to iterate over loose references have been optimized to reduce the number of lstat() system calls.
source: <[email protected]>

* jc/update-list-references-to-lore (2023-10-06) 1 commit
- doc: update list archive reference to use lore.kernel.org

source: <[email protected]>

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

* cc/git-replay (2023-09-07) 15 commits
- replay: stop assuming replayed branches do not diverge
- replay: add --contained to rebase contained branches
- replay: add --advance or 'cherry-pick' mode
- replay: disallow revision specific options and pathspecs
- replay: use standard revision ranges
- replay: make it a minimal server side command
- replay: remove HEAD related sanity check
- replay: remove progress and info output
- replay: add an important FIXME comment about gpg signing
- replay: don't simplify history
- replay: introduce pick_regular_commit()
- replay: die() instead of failing assert()
- replay: start using parse_options API
- replay: introduce new builtin
- t6429: remove switching aspects of fast-rebase

Waiting for review response.
cf. <[email protected]> cf. <[email protected]> cf. <[email protected]>
source: <[email protected]>

* pw/rebase-sigint (2023-09-07) 1 commit
- rebase -i: ignore signals when forking subprocesses

If the commit log editor or other external programs (spawned via "exec" insn in the todo list) receive internactive signal during "git rebase -i", it caused not just the spawned program but the "Git" process that spawned them, which is often not what the end user intended. "git" learned to ignore SIGINT and SIGQUIT while waiting for these subprocesses.

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

* tk/cherry-pick-sequence-requires-clean-worktree (2023-06-01) 1 commit
- cherry-pick: refuse cherry-pick sequence if index is dirty

"git cherry-pick A" that replays a single commit stopped before clobbering local modification, but "git cherry-pick A..B" did not, which has been corrected.

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

* jc/diff-cached-fsmonitor-fix (2023-09-15) 3 commits
- diff-lib: fix check_removed() when fsmonitor is active
- Merge branch 'jc/fake-lstat' into jc/diff-cached-fsmonitor-fix
- Merge branch 'js/diff-cached-fsmonitor-fix' into jc/diff-cached-fsmonitor-fix (this branch uses jc/fake-lstat.)

The optimization based on fsmonitor in the "diff --cached" codepath is resurrected with the "fake-lstat" introduced earlier.

It is unknown if the optimization is worth resurrecting, but in case...
source: <[email protected]>

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

* jk/commit-graph-leak-fixes (2023-10-03) 10 commits (merged to 'next' on 2023-10-06 at 5d202ef8b9)
+ commit-graph: clear oidset after finishing write
+ commit-graph: free write-context base_graph_name during cleanup
+ commit-graph: free write-context entries before overwriting
+ commit-graph: free graph struct that was not added to chain
+ commit-graph: delay base_graph assignment in add_graph_to_chain()
+ commit-graph: free all elements of graph chain
+ commit-graph: move slab-clearing to close_commit_graph()
+ merge: free result of repo_get_merge_bases()
+ commit-reach: free temporary list in get_octopus_merge_bases()
+ t6700: mark test as leak-free

Leakfix.

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

* jm/git-status-submodule-states-docfix (2023-10-04) 1 commit (merged to 'next' on 2023-10-04 at 520b7711a4)
+ git-status.txt: fix minor asciidoc format issue

Docfix.

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

* rs/parse-opt-ctx-cleanup (2023-10-03) 1 commit (merged to 'next' on 2023-10-04 at d5d0a2ce3b)
+ parse-options: drop unused parse_opt_ctx_t member

Code clean-up.

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

* tb/repack-max-cruft-size (2023-10-05) 4 commits (merged to 'next' on 2023-10-06 at b3ca6df3b9)
+ builtin/repack.c: avoid making cruft packs preferred
+ builtin/repack.c: implement support for --max-cruft-size
+ builtin/repack.c: parse --max-pack-size with OPT_MAGNITUDE
+ t7700: split cruft-related tests to t7704

"git repack" learned "--max-cruft-size" to prevent cruft packs from growing without bounds.

Will merge to 'master'.
source: <[email protected]>
source: <035393935108d02aaf8927189b05102f4f74f340.1696370003.git.me@ttaylorr.com>

* ak/color-decorate-symbols (2023-10-03) 1 commit
- decorate: add color.decorate.symbols config option

A new config for coloring.

Needs review.
source: <[email protected]>

* jc/attr-tree-config (2023-10-04) 2 commits
- attr: add attr.allowInvalidSource config to allow invalid revision
- attr: add attr.tree for setting the treeish to read attributes from

The attribute subsystem learned to honor attr.tree configuration that specifies which tree to read the .gitattributes files from.

Needs review.
source: <[email protected]>

* js/submodule-fix-misuse-of-path-and-name (2023-10-03) 6 commits (merged to 'next' on 2023-10-06 at 1054b6e752)
+ t7420: test that we correctly handle renamed submodules
+ t7419: test that we correctly handle renamed submodules
+ t7419, t7420: use test_cmp_config instead of grepping .gitmodules
+ t7419: actually test the branch switching
+ submodule--helper: return error from set-url when modifying failed
+ submodule--helper: use submodule_from_path in set-{url,branch}

In .gitmodules files, submodules are keyed by their names, and the path to the submodule whose name is $name is specified by the submodule.$name.path variable. There were a few codepaths that mixed the name and path up when consulting the submodule database, which have been corrected. It took long for these bugs to be found as the name of a submodule initially is the same as its path, and the problem does not surface until it is moved to a different path, which apparently happens very rarely.

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

* cw/prelim-cleanup (2023-09-29) 4 commits (merged to 'next' on 2023-10-03 at 5985929612)
+ parse: separate out parsing functions from config.h
+ config: correct bad boolean env value error message
+ wrapper: reduce scope of remove_or_warn()
+ hex-ll: separate out non-hash-algo functions

Shuffle some bits across headers and sources to prepare for libification effort.

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

* ds/init-diffstat-width (2023-09-29) 1 commit (merged to 'next' on 2023-10-03 at 18383ac895)
+ diff --stat: set the width defaults in a helper function

Code clean-up.

Will merge to 'master'.
source: <d45d1dac1a20699e370905b88b6fd0ec296751e7.1695441501.git.dsimic@manjaro.org>

* ar/diff-index-merge-base-fix (2023-10-02) 1 commit (merged to 'next' on 2023-10-06 at 0ff4dfc0e1)
+ diff: fix --merge-base with annotated tags

"git diff --merge-base X other args..." insisted that X must be a commit and errored out when given an annotated tag that peels to a commit, but we only need it to be a committish. This has been corrected.

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

* eb/limit-bulk-checkin-to-blobs (2023-09-26) 1 commit (merged to 'next' on 2023-10-02 at 89c9c95966)
+ bulk-checkin: only support blobs in index_bulk_checkin

The "streaming" interface used for bulk-checkin codepath has been narrowed to take only blob objects for now, with no real loss of functionality.

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

* js/update-urls-in-doc-and-comment (2023-09-26) 4 commits
- doc: refer to internet archive
- doc: update links for andre-simon.de
- doc: update links to current pages
- doc: switch links to https

Stale URLs have been updated to their current counterparts (or archive.org) and HTTP links are replaced with working HTTPS links.

Needs review.
source: <[email protected]>

* la/trailer-cleanups (2023-09-26) 4 commits
- trailer: only use trailer_block_* variables if trailers were found
- trailer: use offsets for trailer_start/trailer_end
- trailer: find the end of the log message
- commit: ignore_non_trailer computes number of bytes to ignore

Code clean-up.

Needs review.
source: <[email protected]>

* eb/hash-transition (2023-10-02) 30 commits
- t1016-compatObjectFormat: add tests to verify the conversion between objects
- t1006: test oid compatibility with cat-file
- t1006: rename sha1 to oid
- test-lib: compute the compatibility hash so tests may use it
- builtin/ls-tree: let the oid determine the output algorithm
- object-file: handle compat objects in check_object_signature
- tree-walk: init_tree_desc take an oid to get the hash algorithm
- builtin/cat-file: let the oid determine the output algorithm
- rev-parse: add an --output-object-format parameter
- repository: implement extensions.compatObjectFormat
- object-file: update object_info_extended to reencode objects
- object-file-convert: convert commits that embed signed tags
- object-file-convert: convert commit objects when writing
- object-file-convert: don't leak when converting tag objects
- object-file-convert: convert tag objects when writing
- object-file-convert: add a function to convert trees between algorithms
- object: factor out parse_mode out of fast-import and tree-walk into in object.h
- cache: add a function to read an OID of a specific algorithm
- tag: sign both hashes
- commit: export add_header_signature to support handling signatures on tags
- commit: convert mergetag before computing the signature of a commit
- commit: write commits for both hashes
- object-file: add a compat_oid_in parameter to write_object_file_flags
- object-file: update the loose object map when writing loose objects
- loose: compatibilty short name support
- loose: add a mapping between SHA-1 and SHA-256 for loose objects
- repository: add a compatibility hash algorithm
- object-names: support input of oids in any supported hash
- oid-array: teach oid-array to handle multiple kinds of oids
- object-file-convert: stubs for converting from one object format to another

Teach a repository to work with both SHA-1 and SHA-256 hash algorithms.

Needs review.
source: <[email protected]>

* jx/remote-archive-over-smart-http (2023-10-04) 4 commits
- archive: support remote archive from stateless transport
- transport-helper: call do_take_over() in connect_helper
- transport-helper: call do_take_over() in process_connect
- transport-helper: no connection restriction in connect_helper

"git archive --remote=<remote>" learned to talk over the smart http (aka stateless) transport.

Needs review.
source: <[email protected]>

* jx/sideband-chomp-newline-fix (2023-10-04) 3 commits
- pkt-line: do not chomp newlines for sideband messages
- pkt-line: memorize sideband fragment in reader
- test-pkt-line: add option parser for unpack-sideband

Sideband demultiplexer fixes.

Needs review.
source: <[email protected]>

* ty/merge-tree-strategy-options (2023-09-25) 1 commit (merged to 'next' on 2023-09-29 at aa65b54416)
+ merge-tree: add -X strategy option

"git merge-tree" learned to take strategy backend specific options via the "-X" option, like "git merge" does.

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

* js/ci-coverity (2023-10-05) 6 commits
(merged to 'next' on 2023-10-05 at 253788f0d1)
+ coverity: detect and report when the token or project is incorrect
+ coverity: allow running on macOS
+ coverity: support building on Windows
+ coverity: allow overriding the Coverity project
+ coverity: cache the Coverity Build Tool
+ ci: add a GitHub workflow to submit Coverity scans

GitHub CI workflow has learned to trigger Coverity check.

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

* js/config-parse (2023-09-21) 5 commits
- config-parse: split library out of config.[c|h]
- config.c: accept config_parse_options in git_config_from_stdin
- config: report config parse errors using cb
- config: split do_event() into start and flush operations
- config: split out config_parse_options

The parsing routines for the configuration files have been split into a separate file.

Needs review.
source: <[email protected]>

* jc/fake-lstat (2023-09-15) 1 commit
- cache: add fake_lstat()
(this branch is used by jc/diff-cached-fsmonitor-fix.)

A new helper to let us pretend that we called lstat() when we know our cache_entry is up-to-date via fsmonitor.

Needs review.
source: <[email protected]>

* kn/rev-list-ignore-missing-links (2023-09-20) 1 commit
- revision: add --ignore-missing-links user option

Surface the .ignore_missing_links bit that stops the revision traversal from stopping and dying when encountering a missing object to a new command line option of "git rev-list", so that the objects that are required but are missing can be enumerated.

What's the status of this thing?
source: <[email protected]>

* rs/parse-options-value-int (2023-09-18) 2 commits
- parse-options: use and require int pointer for OPT_CMDMODE
- parse-options: add int value pointer to struct option

A bit of type safety for the "value" pointer used in the parse-options API.

What's the status of this thing?
source: <[email protected]>

* cc/repack-sift-filtered-objects-to-separate-pack (2023-10-02) 9 commits (merged to 'next' on 2023-10-03 at e5a4824609)
+ gc: add gc.repackFilterTo config option
+ repack: implement --filter-to for storing filtered out objects
+ gc: add gc.repackFilter config option
+ repack: add --filter=<filter-spec> option
+ pack-bitmap-write: rebuild using new bitmap when remapping
+ repack: refactor finding pack prefix
+ repack: refactor finishing pack-objects command
+ t/helper: add 'find-pack' test-tool
+ pack-objects: allow --filter without --stdout

"git repack" machinery learns to pay attention to the "--filter=" option.

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

* la/trailer-test-and-doc-updates (2023-09-07) 13 commits (merged to 'next' on 2023-10-06 at 69fef35819)
+ trailer doc: <token> is a <key> or <keyAlias>, not both
+ trailer doc: separator within key suppresses default separator
+ trailer doc: emphasize the effect of configuration variables
+ trailer --unfold help: prefer "reformat" over "join"
+ trailer --parse docs: add explanation for its usefulness
+ trailer --only-input: prefer "configuration variables" over "rules"
+ trailer --parse help: expose aliased options
+ trailer --no-divider help: describe usual "---" meaning
+ trailer: trailer location is a place, not an action
+ trailer doc: narrow down scope of --where and related flags
+ trailer: add tests to check defaulting behavior with --no-* flags
+ trailer test description: this tests --where=after, not --where=before
+ trailer tests: make test cases self-contained

Test coverage for trailers has been improved.

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

* js/doc-unit-tests (2023-08-17) 3 commits
- ci: run unit tests in CI
- unit tests: add TAP unit test framework
- unit tests: Add a project plan document (this branch is used by js/doc-unit-tests-with-cmake.)

Process to add some form of low-level unit tests has started.

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

* js/doc-unit-tests-with-cmake (2023-09-25) 7 commits
- cmake: handle also unit tests
- cmake: use test names instead of full paths
- cmake: fix typo in variable name
- artifacts-tar: when including .dll files, don't forget the unit-tests
- unit-tests: do show relative file paths
- unit-tests: do not mistake .pdb files for being executable
- cmake: also build unit tests
(this branch uses js/doc-unit-tests.)

Update the base topic to work with CMake builds.

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

* tb/path-filter-fix (2023-08-30) 15 commits
- bloom: introduce deinit_bloom_filters()
- commit-graph: reuse existing Bloom filters where possible
- object.h: fix mis-aligned flag bits table
- commit-graph: drop unnecessary graph_read_bloom_data_context
- commit-graph.c: unconditionally load Bloom filters
- t/t4216-log-bloom.sh: harden test_bloom_filters_not_used()
- bloom: prepare to discard incompatible Bloom filters
- bloom: annotate filters with hash version
- commit-graph: new filter ver. that fixes murmur3
- repo-settings: introduce commitgraph.changedPathsVersion
- t4216: test changed path filters with high bit paths
- t/helper/test-read-graph: implement bloom-filters mode
- bloom.h: make load_bloom_filter_from_graph() public
- t/helper/test-read-graph.c: extract dump_graph_info()
- gitformat-commit-graph: describe version 2 of BDAT

The Bloom filter used for path limited history traversal was broken on systems whose "char" is unsigned; update the implementation and bump the format version to 2.

What's the status of this thing?
cf. <[email protected]>
cf. <[email protected]> cf. <[email protected]>
source: <[email protected]>

* jc/rerere-cleanup (2023-08-25) 4 commits
- rerere: modernize use of empty strbuf
- rerere: try_merge() should use LL_MERGE_ERROR when it means an error
- rerere: fix comment on handle_file() helper
- rerere: simplify check_one_conflict() helper function

Code clean-up.

Not ready to be reviewed yet.
source: <[email protected]>

* rj/status-bisect-while-rebase (2023-08-01) 1 commit
- status: fix branch shown when not only bisecting

"git status" is taught to show both the branch being bisected and being rebased when both are in effect at the same time.

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

--------------------------------------------------
[Discarded]

* tb/ci-coverity (2023-09-21) 1 commit
. .github/workflows: add coverity action

GitHub CI workflow has learned to trigger Coverity check.

Superseded by the js/ci-coverity topic.
source: <b23951c569660e1891a7fb3ad2c2ea1952897bd7.1695332105.git.me@ttaylorr.com>

* cw/git-std-lib (2023-09-11) 7 commits
. SQUASH???
. git-std-lib: add test file to call git-std-lib.a functions . git-std-lib: introduce git standard library
. parse: create new library for parsing strings and env values . config: correct bad boolean env value error message . wrapper: remove dependency to Git-specific internal file . hex-ll: split out functionality from hex

Another libification effort.

Superseded by the cw/prelim-cleanup topic.
cf. <[email protected]>
cf. <[email protected]>
source: <[email protected]>

* so/diff-merges-d (2023-09-11) 2 commits
- diff-merges: introduce '-d' option
- diff-merges: improve --diff-merges documentation

Superseded by the so/diff-merges-dd topic.
source: <[email protected]>

#1 lore raw

Am 07.10.23 um 10:20 schrieb Junio C Hamano:

Quoted 9 lines

* rs/parse-options-value-int (2023-09-18) 2 commits
- parse-options: use and require int pointer for OPT_CMDMODE
- parse-options: add int value pointer to struct option

A bit of type safety for the "value" pointer used in the parse-options API.

What's the status of this thing?
source: <[email protected]>

tl;dr: Feel free to drop this topic if it's in the way.

I think the added _int variables are defensible, but the mode_int member added to struct resume_mode in builtin/am.c is too ugly. Extending OPT_CMDMODE to support arguments would allow getting rid of the struct altogether and is probably a good idea anyway. It's surprisingly hard to get right, though -- just discovered that the interference detection is only working half of the time in the current code, and we can't have that, can we?

   # a OPT_CMDMODE option
   $ t/helper/test-tool parse-options --mode1 | grep integer
   integer: 1
   # something else setting the same variable
   $ % t/helper/test-tool parse-options --set23 | grep integer
   integer: 23
   # combined use is flagged if the OPT_CMDMODE option comes last
   $ t/helper/test-tool parse-options --set23 --mode1
   error: option `mode1' : incompatible with something else
   # ... but not the other way around
   $ t/helper/test-tool parse-options --mode1 --set23 | grep integer
   integer: 23

Anyway, I'll get there eventually and present a nicely shaven yak -- or give up and focus on the original topic.

https://lore.kernel.org/git/[email protected]/
detects and handles the same type mismatch by adding a level of abstraction (getters and setters). That way is more general and adds more overhead compared to the _int variant. A fair comparison requires argument support in OPT_CMDMODE, though, I think.

I don't mind removing this topic from seen for now; it's not ready, yet.

René

#2 lore raw
Quoted 6 lines · René Scharfe

Am 07.10.23 um 10:20 schrieb Junio C Hamano:

Quoted 4 lines

* rs/parse-options-value-int (2023-09-18) 2 commits
- parse-options: use and require int pointer for OPT_CMDMODE
- parse-options: add int value pointer to struct option
...

I don't mind removing this topic from seen for now; it's not ready, yet.

After seeing the discussion moved to giving a more type safe enum support and then somehow convesation seemed to have petered out, I was wondering if we figured out the problem space enough to see an updated version with well defined scope and good problem description. I do not mind keeping it on 'seen', especially if these two early steps are not expected to change. It is not like they are causing any maintenance burden.

Thanks.

#3 lore raw

Am 09.10.23 um 18:35 schrieb Junio C Hamano:

Quoted 7 lines
Quoted 5 lines · René Scharfe

Am 07.10.23 um 10:20 schrieb Junio C Hamano:

Quoted 4 lines

* rs/parse-options-value-int (2023-09-18) 2 commits
- parse-options: use and require int pointer for OPT_CMDMODE
- parse-options: add int value pointer to struct option
...

Quoted 7 lines
Quoted 1 line

I don't mind removing this topic from seen for now; it's not ready, yet.

After seeing the discussion moved to giving a more type safe enum support and then somehow convesation seemed to have petered out, I was wondering if we figured out the problem space enough to see an updated version with well defined scope and good problem description.

It's a simple idea with a broad scope: Replace void pointers or fortify them by tracking type information across their use in order to get compile time type checks for the entire code base. Give developers the basic guardrails they already have everywhere else also in generic code.

Adding such type checks is easy, but fixing all the places using incompatible pointers is a lot of churn. Option parsing, sorting and many other callback functions would have to be fortified. The OPT_CMDMODE patches were a test balloon for a small subset of the void space. Extending them to cover more or even all of the int options may give a better picture of the price for such a feature.

Will it uncover user-visible bugs? So far it hasn't, not directly. Perhaps ASan suffices and we don't need to care about exotic platforms that would punish our type sins.

Dealing with the OPT_CMDMODE code prompted to me to come up with ways to improve its error messages, though. These patches took me surprisingly long to prepare (plus my Git time is quite limited these days). I'll send them separately.

Quoted 3 lines

I do not mind keeping it on 'seen', especially if
these two early steps are not expected to change. It is not like they are causing any maintenance burden.

The OPT_CMDMODE error message improvements change the code a lot and conflict with these parse-options patches. Please drop the latter and let's discuss the former first, as their user-visible changes are more tangible and useful. I'll send an adjusted and perhaps bigger type safety test balloon eventually.

René

#4 lore raw
In reply to Junio C Hamano
Quoted 9 lines · Junio C Hamano

* ty/merge-tree-strategy-options (2023-09-25) 1 commit (merged to 'next' on 2023-09-29 at aa65b54416)
+ merge-tree: add -X strategy option

"git merge-tree" learned to take strategy backend specific options via the "-X" option, like "git merge" does.

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

We may want to hold off on this as there is a wierd copy-by-value of struct merge-options cf <[email protected]>

Best Wishes

Phillip

#5 lore raw
In reply to Junio C Hamano
Quoted 7 lines · Junio C Hamano

* tb/repack-max-cruft-size (2023-10-05) 4 commits (merged to 'next' on 2023-10-06 at b3ca6df3b9)
+ builtin/repack.c: avoid making cruft packs preferred
+ builtin/repack.c: implement support for --max-cruft-size
+ builtin/repack.c: parse --max-pack-size with OPT_MAGNITUDE
+ t7700: split cruft-related tests to t7704

Quoted 6 lines

"git repack" learned "--max-cruft-size" to prevent cruft packs from growing without bounds.

Will merge to 'master'.
source: <[email protected]>
source: <035393935108d02aaf8927189b05102f4f74f340.1696370003.git.me@ttaylorr.com>

Thanks. On a semi-related note, did you want to pick up my patch in

https://lore.kernel.org/git/035393935108d02aaf8927189b05102f4f74f340.1696370003.git.me@ttaylorr.com/

? That should address a performance bug that occurs when a repository (incorrectly) chooses a cruft pack as its preferred pack source when writing a MIDX bitmap, significantly impeding the pack-reuse mechanism.

Thanks,
Taylor

#6 lore raw
Quoted 15 lines · Taylor Blau
Quoted 7 lines · Junio C Hamano

* tb/repack-max-cruft-size (2023-10-05) 4 commits (merged to 'next' on 2023-10-06 at b3ca6df3b9)
+ builtin/repack.c: avoid making cruft packs preferred
+ builtin/repack.c: implement support for --max-cruft-size
+ builtin/repack.c: parse --max-pack-size with OPT_MAGNITUDE
+ t7700: split cruft-related tests to t7704

Quoted 6 lines

"git repack" learned "--max-cruft-size" to prevent cruft packs from growing without bounds.

Will merge to 'master'.
source: <[email protected]>
source: <035393935108d02aaf8927189b05102f4f74f340.1696370003.git.me@ttaylorr.com>

Quoted 7 lines

Thanks. On a semi-related note, did you want to pick up my patch in

https://lore.kernel.org/git/035393935108d02aaf8927189b05102f4f74f340.1696370003.git.me@ttaylorr.com/

? That should address a performance bug that occurs when a repository (incorrectly) chooses a cruft pack as its preferred pack source when writing a MIDX bitmap, significantly impeding the pack-reuse mechanism.

Isn't that in the above list already as b3ca6df3b9^2?

#7 lore raw
Quoted 19 lines · Junio C Hamano
Quoted 17 lines · Taylor Blau
Quoted 7 lines · Junio C Hamano

* tb/repack-max-cruft-size (2023-10-05) 4 commits (merged to 'next' on 2023-10-06 at b3ca6df3b9)
+ builtin/repack.c: avoid making cruft packs preferred
+ builtin/repack.c: implement support for --max-cruft-size
+ builtin/repack.c: parse --max-pack-size with OPT_MAGNITUDE
+ t7700: split cruft-related tests to t7704

Quoted 6 lines

"git repack" learned "--max-cruft-size" to prevent cruft packs from growing without bounds.

Will merge to 'master'.
source: <[email protected]>
source: <035393935108d02aaf8927189b05102f4f74f340.1696370003.git.me@ttaylorr.com>

Thanks. On a semi-related note, did you want to pick up my patch in

Quoted 7 lines
Quoted 5 lines

https://lore.kernel.org/git/035393935108d02aaf8927189b05102f4f74f340.1696370003.git.me@ttaylorr.com/

? That should address a performance bug that occurs when a repository (incorrectly) chooses a cruft pack as its preferred pack source when writing a MIDX bitmap, significantly impeding the pack-reuse mechanism.

Isn't that in the above list already as b3ca6df3b9^2?

Oops, duh. I hadn't expected you to group that patch in with the rest of tb/repack-max-cruft-size.

I'll put on my glasses the next time before suggesting you dropped one of my patches on the floor... ;-)

Thanks,
Taylor

#8 lore raw
Quoted 4 lines · Taylor Blau
Quoted 4 lines
Quoted 4 lines

Thanks. On a semi-related note, did you want to pick up my patch in

https://lore.kernel.org/git/035393935108d02aaf8927189b05102f4f74f340.1696370003.git.me@ttaylorr.com/

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

? That should address a performance bug that occurs when a repository (incorrectly) chooses a cruft pack as its preferred pack source when writing a MIDX bitmap, significantly impeding the pack-reuse mechanism.

Isn't that in the above list already as b3ca6df3b9^2?

Oops, duh. I hadn't expected you to group that patch in with the rest of tb/repack-max-cruft-size.

Heh, as you said, isn't it at least semi-related ;-)?

#9 lore raw
In reply to Junio C Hamano
Quoted 21 lines · Junio C Hamano

* tb/path-filter-fix (2023-08-30) 15 commits
- bloom: introduce deinit_bloom_filters()
- commit-graph: reuse existing Bloom filters where possible
- object.h: fix mis-aligned flag bits table
- commit-graph: drop unnecessary graph_read_bloom_data_context
- commit-graph.c: unconditionally load Bloom filters
- t/t4216-log-bloom.sh: harden test_bloom_filters_not_used()
- bloom: prepare to discard incompatible Bloom filters
- bloom: annotate filters with hash version
- commit-graph: new filter ver. that fixes murmur3
- repo-settings: introduce commitgraph.changedPathsVersion
- t4216: test changed path filters with high bit paths
- t/helper/test-read-graph: implement bloom-filters mode
- bloom.h: make load_bloom_filter_from_graph() public
- t/helper/test-read-graph.c: extract dump_graph_info()
- gitformat-commit-graph: describe version 2 of BDAT

The Bloom filter used for path limited history traversal was broken on systems whose "char" is unsigned; update the implementation and bump the format version to 2.

Quoted 5 lines

What's the status of this thing?
cf. <[email protected]>
cf. <[email protected]> cf. <[email protected]>
source: <[email protected]>

Good question ;-). There were a couple of outstanding issues pointed out by SZEDER Gábor that I addressed on top of what's already there.

I tied up what I think are all of the remaining loose ends and put everything together in a single unified (if a little long) patch series.

This should be ready to go, but I'd love to hear from Jonathan Tan and SZEDER before declaring victory here.

Thanks,
Taylor