Skip to contentSkip to conversation

What's cooking in git.git (Mar 2022, #01; Thu, 3)

PATCH New Junio C Hamano 6 participants 22 messages Mar 4, 2022 – Mar 17, 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', 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.

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]

* jd/userdiff-kotlin (2022-03-03) 1 commit
- userdiff: add builtin diff driver for Kotlin language.

A new built-in userdiff driver for kotlin.

source: <[email protected]>

* ps/fetch-mirror-optim (2022-03-01) 6 commits
- refs/files-backend: optimize reading of symbolic refs
- remote: read symbolic refs via refs_read_symbolic_ref()
- refs: add ability for backends to special-case reading of symbolic refs
- fetch: avoid lookup of commits when not appending to FETCH_HEAD
- upload-pack: look up "want" lines via commit-graph
- Merge branch 'ps/fetch-atomic' into ps/fetch-mirror-optim (this branch uses ps/fetch-atomic.)

Various optimization for "git fetch".

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

* tk/t7063-chmtime-dirs-too (2022-03-01) 2 commits
- t7063: mtime-mangling instead of delays in untracked cache testing
- t/helper/test-chmtime: update mingw to support chmtime on directories

Teach "test-chmtime" to work on a directory and use it to avoid having to wait for a second in a few places in tests.

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

* ab/hook-tests-updates (2022-03-02) 10 commits
- tests: change "cat && chmod +x" to use "test_hook"
- tests: change "mkdir -p && write_script" to use "test_hook"
- test-lib-functions: add and use a "test_hook" wrapper
- fetch+push tests: have tests clean up their own mess
- hook tests: get rid of unnecessary sub-shells
- tests: indent and add hook setup to "test_expect_success"
- bugreport tests: tighten up "git bugreport -s hooks" test
- tests: assume the hooks are disabled by default
- t5540: don't rely on "hook/post-update.sample"
- hook tests: turn exit code assertions into a loop

Update tests around the use of hook scripts.

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

* ab/keep-git-exit-codes-in-tests (2022-03-02) 15 commits
- rev-list simplify tests: don't ignore "git" exit code
- checkout tests: don't ignore "git <cmd>" exit code
- apply tests: don't ignore "git ls-files" exit code, drop sub-shell
- gettext tests: don't ignore "test-tool regex" exit code
- rev-list tests: don't hide abort() in "test_expect_failure"
- diff tests: don't ignore "git rev-list" exit code
- notes tests: don't ignore "git" exit code
- rev-parse tests: don't ignore "git reflog" exit code
- merge tests: use "test_must_fail" instead of ad-hoc pattern
- apply tests: use "test_must_fail" instead of ad-hoc pattern
- diff tests: don't ignore "git diff" exit code in "read" loop
- diff tests: don't ignore "git diff" exit code
- read-tree tests: check "diff-files" exit code on failure
- tests: use "test_stdout_line_count", not "test $(git [...] | wc -l)"
- tests: change some 'test $(git) = "x"' to test_cmp

Updates tests around the use of "test $(git cmd) = constant".

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

* ab/plug-random-leaks (2022-03-02) 14 commits
- repository.c: free the "path cache" in repo_clear()
- range-diff: plug memory leak in read_patches()
- range-diff: plug memory leak in common invocation
- lockfile API users: simplify and don't leak "path"
- commit-graph: stop fill_oids_from_packs() progress on error and free()
- commit-graph: fix memory leak in misused string_list API
- submodule--helper: fix trivial leak in module_add()
- transport: stop needlessly copying bundle header references
- bundle: call strvec_clear() on allocated strvec
- remote-curl.c: free memory in cmd_main()
- urlmatch.c: add and use a *_release() function
- diff.c: free "buf" in diff_words_flush()
- merge-base: free() allocated "struct commit **" list
- index-pack: fix memory leaks

Plug random memory leaks.

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

* en/merge-ort-align-verbosity-with-recursive (2022-03-01) 1 commit
- merge-ort: exclude messages from inner merges by default

Align the level of verbose output from the ort backend during inner merge to that of the recursive backend.

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

* ep/test-malloc-check-with-glibc-2.34 (2022-03-03) 1 commit
- test-lib.sh: Use GLIBC_TUNABLES instead of MALLOC_CHECK_ on glibc >= 2.34

The method to trigger malloc check used in our tests no longer work with newer versions of glibc.

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

* gc/parse-tree-indirect-errors (2022-03-01) 1 commit
- checkout, clone: die if tree cannot be parsed

Check the return value from parse_tree_indirect() to turn segfaults into calls to die().

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

* jc/mailsplit-warn-on-tty (2022-03-03) 1 commit
- am/apply: warn if we end up reading patches from terminal

"git am" can read from the standard input when no mailbox is given on the command line, but the end-user gets no indication when it happens, making Git appear stuck.

source: <[email protected]>

* jc/stash-drop (2022-03-02) 3 commits
- stash: call reflog_delete() in reflog.c
- reflog: libify delete reflog function and helpers
- stash: add tests to ensure reflog --rewrite --updatref behavior

"git stash drop" is reimplemented as an internal call to reflog_delete() function, instead of invoking "git reflog delete" via run_command() API.

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

* nj/read-tree-doc-reffix (2022-03-03) 1 commit
- Documentation: git-read-tree: separate links using commas

Documentation mark-up fix.

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

* ps/fetch-atomic-fixup (2022-03-03) 1 commit
- t5503: simplify setup of test which exercises failure of backfill (this branch uses ps/fetch-atomic.)

Test simplification.

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

* tb/cruft-packs (2022-03-02) 17 commits
- sha1-file.c: don't freshen cruft packs
- builtin/gc.c: conditionally avoid pruning objects via loose
- builtin/repack.c: add cruft packs to MIDX during geometric repack
- builtin/repack.c: use named flags for existing_packs
- builtin/repack.c: allow configuring cruft pack generation
- builtin/repack.c: support generating a cruft pack
- builtin/pack-objects.c: --cruft with expiration
- reachable: report precise timestamps from objects in cruft packs
- reachable: add options to add_unseen_recent_objects_to_traversal
- builtin/pack-objects.c: --cruft without expiration
- builtin/pack-objects.c: return from create_object_entry()
- t/helper: add 'pack-mtimes' test-tool
- pack-mtimes: support writing pack .mtimes files
- chunk-format.h: extract oid_version()
- pack-write: pass 'struct packing_data' to 'stage_tmp_packfiles'
- pack-mtimes: support reading .mtimes files
- Documentation/technical: add cruft-packs.txt

A mechanism to pack unreachable objects into a "cruft pack", instead of ejecting them into loose form to be reclaimed later, has been introduced.

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

* tb/rename-remote-progress (2022-03-03) 2 commits
- builtin/remote.c: show progress when renaming remote references
- builtin/remote.c: parse options in 'rename'

"git remote rename A B", depending on the number of remote-tracking refs involved, takes long time renaming them. The command has been taught to show progress bar while making the user wait.

Will merge to 'next'?
source: <d5b0a4b71027619123b7284611692d3a9c128518.1646346287.git.me@ttaylorr.com>

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

* tl/ls-tree-oid-only (2022-02-08) 13 commits
- ls-tree.c: support --object-only option for "git-ls-tree"
- ls-tree: introduce function "fast_path()"
- ls-tree.c: introduce "--format" option
- cocci: allow padding with strbuf_addf()
- ls-tree: introduce struct "show_tree_data"
- ls-tree: slightly refactor show_tree()
- ls-tree: fix "--name-only" and "--long" combined use bug
- ls-tree: simplify nesting if/else logic in "show_tree()"
- ls-tree: rename "retval" to "recurse" in "show_tree()"
- ls-tree: use "size_t", not "int" for "struct strbuf"'s "len"
- ls-tree: use "enum object_type", not {blob,tree,commit}_type
- ls-tree: add missing braces to "else" arms
- ls-tree: remove commented-out code

"git ls-tree" learns "--oid-only" option, similar to "--name-only", and more generalized "--format" option.
source: <[email protected]>

* 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. <[email protected]>
source: <[email protected]>

* 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. <CAPUEsphktbdxeV7hvF52Or3CVHS8oOk5-WV=xfEZa8kfCVVnVg@mail.gmail.com>
source: <[email protected]>

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

* js/ci-github-workflow-markup (2022-03-01) 9 commits
- ci: call finalize_test_case_output a little later
- ci: use --github-workflow-markup in the GitHub workflow
- ci: optionally mark up output in the GitHub workflow
- test(junit): avoid line feeds in XML attributes
- tests: refactor --write-junit-xml code
- ci/run-build-and-tests: add some structure to the GitHub workflow output
- ci: make it easier to find failed tests' logs in the GitHub workflow
- ci/run-build-and-tests: take a more high-level view
- ci: fix code style

Update the GitHub workflow support to make it quicker to get to the failing test.

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

* jk/name-rev-w-genno (2022-02-28) 1 commit
- name-rev: use generation numbers if available

"git name-rev" learned to use the generation numbers when setting the lower bound of searching commits used to explain the revision, when available, instead of committer time.

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

* et/xdiff-indirection (2022-02-17) 1 commit
- xdiff: provide indirection to git functions

Insert a layer of preprocessor macros for common functions in xdiff codebase.

Expecting a (hopefully final) reroll.
cf. <[email protected]>
source: <20220217225408.GB7@edef91d97c94>

* jt/ls-files-stage-recurse (2022-02-23) 1 commit
(merged to 'next' on 2022-02-28 at 4ad82bfdf6)
+ ls-files: support --recurse-submodules --stage

Many output modes of "ls-files" does not work with its "--recurse-submodules" option, but the "-s" mode has taught to work with it.

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

* ab/c99-variadic-macros (2022-02-21) 2 commits (merged to 'next' on 2022-03-01 at 0419a86e23)
+ C99: remove hardcoded-out !HAVE_VARIADIC_MACROS code
+ git-compat-util.h: clarify GCC v.s. C99-specific in comment

Remove the escape hatch we added when we introduced the weather balloon to use variadic macros unconditionally, to make it official that we now have a hard dependency on the feature.

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

* ab/hook-tests (2022-02-19) 2 commits (merged to 'next' on 2022-02-28 at bb6b7d1c24)
+ hook tests: use a modern style for "pre-push" tests
+ hook tests: test for exact "pre-push" hook input

Test modernization.

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

* ab/test-leak-diag (2022-02-28) 4 commits (merged to 'next' on 2022-02-28 at 3019aad7fe)
+ test-lib: add "fast_unwind_on_malloc=0" to LSAN_OPTIONS
+ test-lib: make $GIT_BUILD_DIR an absolute path
+ test-lib: correct and assert TEST_DIRECTORY overriding
+ test-lib: add GIT_SAN_OPTIONS, inherit [AL]SAN_OPTIONS

Random test-framework clean-up.

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

* ds/worktree-docs (2022-02-23) 11 commits (merged to 'next' on 2022-02-28 at b7d23cb1a5)
+ worktree: use 'worktree' over 'working tree'
+ worktree: use 'worktree' over 'working tree'
+ worktree: use 'worktree' over 'working tree'
+ worktree: use 'worktree' over 'working tree'
+ worktree: use 'worktree' over 'working tree'
+ worktree: use 'worktree' over 'working tree'
+ worktree: use 'worktree' over 'working tree'
+ worktree: extract checkout_worktree()
+ worktree: extract copy_sparse_checkout()
+ worktree: extract copy_filtered_worktree_config()
+ worktree: combine two translatable messages

Tighten the language around "working tree" and "worktree" in the docs.

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

* en/merge-ort-plug-leaks (2022-02-20) 2 commits
(merged to 'next' on 2022-02-28 at d7afb6b624)
+ merge-ort: fix small memory leak in unique_path()
+ merge-ort: fix small memory leak in detect_and_process_renames()

Leakfix.

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

* jc/rerere-train-modernise (2022-02-27) 1 commit (merged to 'next' on 2022-02-28 at d86d29733d)
+ rerere-train: two fixes to the use of "git show -s"

Small modernization of the rerere-train script (in contrib/).

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

* ab/help-fixes (2022-02-23) 9 commits
(merged to 'next' on 2022-03-01 at 215f5dbbfb)
+ help: don't print "\n" before single-section output
+ help: add --no-[external-commands|aliases] for use with --all
+ help: error if [-a|-g|-c] and [-i|-m|-w] are combined
+ help: correct usage & behavior of "git help --all"
+ help: note the option name on option incompatibility
+ help.c: split up list_all_cmds_help() function
+ help tests: test "git" and "git help [-a|-g] spacing
+ help.c: use puts() instead of printf{,_ln}() for consistency
+ help doc: add missing "]" to "[-a|--all]"

Updates to how command line options to "git help" are handled.

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

* ac/usage-string-fixups (2022-02-23) 1 commit (merged to 'next' on 2022-02-28 at 5e8fa3f846)
+ amend remaining usage strings according to style guide

Usage-string normalization.

Will merge to 'master'.
source: <f425e36b7ea4a310a8ad93d47ead4c1713117388.1645626455.git.gitgitgadget@gmail.com>

* mc/index-pack-report-max-size (2022-02-23) 1 commit (merged to 'next' on 2022-02-28 at 31b907844b)
+ index-pack: clarify the breached limit

When "index-pack" dies due to incoming data exceeding the maximum allowed input size, include the value of the limit in the error message.

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

* sm/no-git-in-upstream-of-pipe-in-tests (2022-02-23) 1 commit
- t0003: avoid pipes with Git on LHS

Test fixes.

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

* ab/c99-designated-initializers (2022-02-24) 9 commits
(merged to 'next' on 2022-02-28 at 5ff6d5b26f)
+ fast-import.c: use designated initializers for "partial" struct assignments
+ refspec.c: use designated initializers for "struct refspec_item"
+ convert.c: use designated initializers for "struct stream_filter*"
+ userdiff.c: use designated initializers for "struct userdiff_driver"
+ archive-*.c: use designated initializers for "struct archiver"
+ object-file: use designated initializers for "struct git_hash_algo"
+ trace2: use designated initializers for "struct tr2_dst"
+ trace2: use designated initializers for "struct tr2_tgt"
+ imap-send.c: use designated initializers for "struct imap_server_conf"

Use designated initializers we started using in mid 2017 in more parts of the codebase that are relatively quiescent.

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

* ab/http-gcc-12-workaround (2022-02-25) 1 commit
- http API: fix dangling pointer issue noted by GCC 12.0

Work around false warning pre-release of GCC 12.
source: <[email protected]>

* ab/make-optim-noop (2022-03-03) 8 commits
- Makefiles: add and use wildcard "mkdir -p" template
- Makefile: add "$(QUIET)" boilerplate to shared.mak
- Makefile: move $(comma), $(empty) and $(space) to shared.mak
- Makefile: move ".SUFFIXES" rule to shared.mak
- Makefile: define $(LIB_H) in terms of $(FIND_SOURCE_FILES)
- Makefile: disable GNU make built-in wildcard rules
- Makefiles: add "shared.mak", move ".DELETE_ON_ERROR" to it
- scalar Makefile: use "The default target of..." pattern

Makefile refactoring with a bit of suffixes rule stripping to optimize the runtime overhead.

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

* ah/advice-switch-requires-detach-to-detach (2022-02-25) 1 commit (merged to 'next' on 2022-02-28 at 941ee621cf)
+ switch: mention the --detach option when dying due to lack of a branch

The error message given by "git switch HEAD~4" has been clarified to suggest the "--detach" option that is required.

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

* ds/commit-graph-gen-v2-fixes (2022-03-01) 5 commits
- commit-graph: fix generation number v2 overflow values
- commit-graph: start parsing generation v2 (again)
- commit-graph: fix ordering bug in generation numbers
- t5318: extract helpers to lib-commit-graph.sh
- test-read-graph: include extra post-parse info

Fixes to the way generation number v2 in the commit-graph files are (not) handled.
source: <[email protected]>

* ds/partial-bundles (2022-02-24) 11 commits
- bundle: unbundle promisor packs
- bundle: create filtered bundles
- rev-list: move --filter parsing into revision.c
- bundle: parse filter capability
- bundle: safely handle --objects option
- MyFirstObjectWalk: update recommended usage
- list-objects: consolidate traverse_commit_list[_filtered]
- pack-bitmap: drop filter in prepare_bitmap_walk()
- pack-objects: use rev.filter when possible
- revision: put object filter into struct rev_info
- index-pack: document and test the --promisor option (this branch is used by ds/bundle-uri.)

Bundle file format gets extended to allow a partial bundle, filtered by similar criteria you would give when making a partial/lazy clone.
source: <[email protected]>

* fs/gpgsm-update (2022-03-02) 3 commits
- t/lib-gpg: kill all gpg components, not just gpg-agent
- t/lib-gpg: reload gpg components after updating trustlist
- gpg-interface/gpgsm: fix for v2.3

Newer version of GPGSM changed its output in a backward incompatible way to break our code that parses its output. It also added more processes our tests need to kill when cleaning up. Adjustments have been made to accomodate these changes.

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

* gc/stash-on-branch-with-multi-level-name (2022-02-24) 1 commit (merged to 'next' on 2022-02-28 at 1a94306611)
+ stash: strip "refs/heads/" with skip_prefix

"git checkout -b branch/with/multi/level/name && git stash" only recorded the last level component of the branch name, which has been corrected.

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

* jd/prompt-upstream-mark (2022-02-25) 4 commits
- git-prompt: put upstream comments together
- git-prompt: make long upstream state indicator consistent
- git-prompt: make upstream state indicator location consistent
- git-prompt: rename upstream to upstream_type

Tweaks in the command line prompt (in contrib/) code around its GIT_PS1_SHOWUPSTREAM feature.

Needs reviews.
source: <[email protected]>

* pw/worktree-list-with-z (2022-02-25) 1 commit
- worktree: add -z option for list subcommand

"git worktree list --porcelain" did not c-quote pathnames and lock reasons with unsafe bytes correctly, which is worked around by introducing NUL terminated output format with "-z".

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

* rc/fetch-repair (2022-02-24) 8 commits
- doc/partial-clone: mention --repair fetch option
- fetch: after repair, encourage auto gc repacking
- maintenance: add ability to pass config options
- t5615-partial-clone: add test for fetch --repair
- fetch: add --repair option
- builtin/fetch-pack: add --repair option
- fetch-pack: add repairing
- fetch-negotiator: add specific noop initializor

"git fetch --repair" learned to fetch everything without telling the other side what we already have, which is useful when you cannot trust what you have in the local object store.
source: <[email protected]>

* tk/empty-untracked-cache (2022-02-28) 3 commits
- untracked-cache: write index when populating empty untracked cache
- t7519: populate untracked cache before test
- t7519: avoid file to index mtime race for untracked cache

The untracked cache newly computed weren't written back to the on-disk index file when there is no other change to the index, which has been corrected.

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

* tk/simple-autosetupmerge (2022-02-25) 2 commits
- t3200: tests for new branch.autosetupmerge option "simple"
- merge: new autosetupmerge option 'simple' for matching branches

"git -c branch.autosetupmerge=simple branch $A $B" will set the $B as $A's upstream only when $A and $B shares the same name, and "git -c push.default=simple" on branch $A would push to update the branch $A at the remote $B came from.

Needs review.
source: <[email protected]>

* tk/untracked-cache-with-uall (2022-02-25) 1 commit
- untracked-cache: support '--untracked-files=all' if configured

The performance of the "untracked cache" feature has been improved when "--untracked-files=<mode>" and "status.showUntrackedFiles" are combined.

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

* vd/sparse-read-tree (2022-03-01) 8 commits
- read-tree: make three-way merge sparse-aware
- read-tree: make two-way merge sparse-aware
- read-tree: narrow scope of index expansion for '--prefix'
- read-tree: integrate with sparse index
- read-tree: expand sparse checkout test coverage
- read-tree: explicitly disallow prefixes with a leading '/'
- status: fix nested sparse directory diff in sparse index
- sparse-index: prevent repo root from becoming sparse

"git read-tree" has been made to be aware of the sparse-index feature.

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

* en/sparse-checkout-fixes (2022-02-20) 5 commits
(merged to 'next' on 2022-02-28 at 7307431c62)
+ sparse-checkout: reject arguments in cone-mode that look like patterns
+ sparse-checkout: error or warn when given individual files
+ sparse-checkout: pay attention to prefix for {set, add}
+ sparse-checkout: correctly set non-cone mode when expected
+ sparse-checkout: correct reapply's handling of options

Further polishing of "git sparse-checkout".

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

* ab/commit-plug-leaks (2022-02-16) 2 commits
- commit: use strbuf_release() instead of UNLEAK()
- commit: fix "author_ident" leak

Leakfixes in the top-level called-once function.

Expecting a reroll.
I think UNLEAK->strbuf_release() is a regression.
source: <[email protected]>

* pw/single-key-interactive (2022-02-23) 4 commits
- add -p: disable stdin buffering when interactive.singlekey is set
- terminal: set VMIN and VTIME in non-canonical mode
- terminal: pop signal handler when terminal is restored
- terminal: always reset terminal when reading without echo

The single-key interactive operation used by "git add -p" has been made more robust.

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

* jh/builtin-fsmonitor-part3 (2022-03-01) 23 commits
- t/perf/p7527: add perf test for builtin FSMonitor
- t7527: FSMonitor tests for directory moves
- fsmonitor: optimize processing of directory events
- fsm-listen-darwin: shutdown daemon if worktree root is moved/renamed
- fsm-health-win32: force shutdown daemon if worktree root moves
- fsm-health-win32: add framework to monitor daemon health
- fsmonitor--daemon: stub in health thread
- fsmonitor--daemon: rename listener thread related variables
- fsmonitor--daemon: prepare for adding health thread
- fsmonitor--daemon: cd out of worktree root
- fsm-listen-darwin: ignore FSEvents caused by xattr changes on macOS
- unpack-trees: initialize fsmonitor_has_run_once in o->result
- fsmonitor-settings: remote repos on Windows are incompatible with FSMonitor
- fsmonitor-settings: remote repos on macOS are incompatible with FSMonitor
- fsmonitor-settings: stub in macOS-specific incompatibility checking
- fsmonitor-settings: virtual repos are incompatible with FSMonitor
- fsmonitor-settings: stub in platform-specific incompatibility checking
- fsmonitor-settings: bare repos are incompatible with FSMonitor
- t/helper/fsmonitor-client: create stress test
- t7527: test builtin FSMonitor watching repos with unicode paths
- t7527: test FS event reporing on macOS WRT case and Unicode
- fsm-listen-win32: handle shortnames
- Merge branch 'jh/builtin-fsmonitor-part2' into jh/builtin-fsmonitor-part3 (this branch uses jh/builtin-fsmonitor-part2.)

More fsmonitor--daemon.

Expecting a reroll on the updated "part 2".
source: <[email protected]>

* hn/reftable-no-empty-keys (2022-02-23) 7 commits (merged to 'next' on 2022-03-01 at dc4aa7e796)
+ reftable: rename writer_stats to reftable_writer_stats
+ reftable: add test for length of disambiguating prefix
+ reftable: ensure that obj_id_len is >= 2 on writing
+ reftable: avoid writing empty keys at the block layer
+ reftable: add a test that verifies that writing empty keys fails
+ reftable: reject 0 object_id_len
+ Documentation: object_id_len goes up to 31

General clean-up in reftable implementation, including clarification of the API documentation, tightening the code to honor documented length limit, etc.

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

* ps/fetch-atomic (2022-02-17) 7 commits
(merged to 'next' on 2022-02-18 at 3824153b23)
+ fetch: make --atomic flag cover pruning of refs
+ fetch: make --atomic flag cover backfilling of tags
+ refs: add interface to iterate over queued transactional updates
+ fetch: report errors when backfilling tags fails
+ fetch: control lifecycle of FETCH_HEAD in a single place
+ fetch: backfill tags before setting upstream
+ fetch: increase test coverage of fetches
(this branch is used by ps/fetch-atomic-fixup and ps/fetch-mirror-optim.)

"git fetch" can make two separate fetches, but ref updates coming from them were in two separate ref transactions under "--atomic", which has been corrected.

source: <[email protected]>

* pw/xdiff-alloc-fail (2022-02-16) 4 commits (merged to 'next' on 2022-03-01 at 8a10912059)
+ xdiff: handle allocation failure when merging
+ xdiff: refactor a function
+ xdiff: handle allocation failure in patience diff
+ xdiff: fix a memory leak

Improve failure case behaviour of xdiff library when memory allocation fails.

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

* gc/recursive-fetch-with-unused-submodules (2022-02-28) 12 commits
- SQUASH???
- SQUASH???
- submodule: fix latent check_has_commit() bug
- fetch: fetch unpopulated, changed submodules
- submodule: move logic into fetch_task_create()
- submodule: extract get_fetch_task()
- submodule: store new submodule commits oid_array in a struct
- submodule: inline submodule_commits() into caller
- submodule: make static functions read submodules from commits
- t5526: create superproject commits with test helper
- t5526: stop asserting on stderr literally
- t5526: introduce test helper to assert on fetches

When "git fetch --recurse-submodules" grabbed submodule commits that would be needed to recursively check out newly fetched commits in the superproject, it only paid attention to submodules that are in the current checkout of the superproject. We now do so for all submodules that have been run "git submodule init" on.

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

* cg/t3903-modernize (2022-02-23) 3 commits
(merged to 'next' on 2022-02-23 at 0d5a844b40)
+ tests: make the code more readable
+ tests: allow testing if a path is truly a file or a directory
+ t/t3903-stash.sh: replace test [-d|-f] with test_path_is_*

Test modernization.

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

* js/bisect-in-c (2022-02-23) 14 commits
- bisect: no longer try to clean up left-over .git/head-name files
- bisect: remove Cogito-related code
- bisect: turn git bisect into a full built-in
- bisect: move even the option parsing to bisect--helper
- bisect--helper: return only correct exit codes in cmd_*()
- bisect--helper: move the BISECT_STATE case to the end
- bisect--helper: make --bisect-state optional
- bisect--helper: align the sub-command order with git-bisect.sh
- bisect--helper: using --bisect-state without an argument is a bug
- bisect--helper: really retire --bisect-autostart
- bisect--helper: really retire --bisect-next-check
- bisect--helper: retire the --no-log option
- bisect: avoid double-quoting when printing the failed command
- bisect run: fix the error message

Final bits of "git bisect.sh" have been rewritten in C.

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

* js/scalar-diagnose (2022-02-06) 6 commits
- scalar: teach diagnose to gather loose objects information
- scalar: teach diagnose to gather packfile info
- scalar diagnose: include disk space information
- scalar: add diagnose
- scalar: validate the optional enlistment argument
- archive: optionally add "virtual" files

Implementation of "scalar diagnose" subcommand.

On hold.
cf. <[email protected]>
source: <[email protected]>

* jc/cat-file-batch-commands (2022-02-18) 4 commits (merged to 'next' on 2022-03-01 at 8764b7963c)
+ cat-file: add --batch-command mode
+ cat-file: add remove_timestamp helper
+ cat-file: introduce batch_mode enum to replace print_contents
+ cat-file: rename cmdmode to transform_mode

"git cat-file" learns "--batch-command" mode, which is a more flexible interface than the existing "--batch" or "--batch-check" modes, to allow different kinds of inquiries made.

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

* ar/submodule-update (2022-03-02) 13 commits
- submodule--helper update-clone: check for --filter and --init
- submodule update: add tests for --filter
- submodule--helper update-clone: learn --init
- submodule--helper: allow setting superprefix for init_submodule()
- submodule--helper: refactor get_submodule_displaypath()
- submodule--helper run-update-procedure: learn --remote
- submodule--helper: don't use bitfield indirection for parse_options()
- submodule--helper: get remote names from any repository
- submodule--helper: remove ensure-core-worktree
- submodule--helper run-update-procedure: remove --suboid
- submodule--helper: reorganize code for sh to C conversion
- submodule--helper: remove update-module-mode
- submodule tests: test for init and update failure output

Rewrite of "git submodule update" in C (early part).

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

* rj/receive-pack-abort-upon-disconnect (2022-01-28) 1 commit
- receive-pack: check if client is alive before completing the push

"git push" may be killed by the user when the server side has finished receiving all data and is about to commit the result. Give the latter a better chance to notice such situation and abort processing the ref updates.

Needs more work?
cf. <[email protected]>
source: <[email protected]>

* ab/object-file-api-updates (2022-02-25) 12 commits
- object-file API: pass an enum to read_object_with_reference()
- object-file.c: add a literal version of write_object_file_prepare()
- object-file API: have hash_object_file() take "enum object_type"
- object API: rename hash_object_file_literally() to write_*()
- object-file API: split up and simplify check_object_signature()
- object API users + docs: check <0, not !0 with check_object_signature()
- object API docs: move check_object_signature() docs to cache.h
- object API: correct "buf" v.s. "map" mismatch in *.c and *.h
- object-file API: have write_object_file() take "enum object_type"
- object-file API: add a format_object_header() function
- object-file API: return "void", not "int" from hash_object_file()
- object-file.c: split up declaration of unrelated variables

Object-file API shuffling.

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

* en/merge-tree (2022-02-23) 13 commits
- git-merge-tree.txt: add a section on potentional usage mistakes
- merge-tree: add a --allow-unrelated-histories flag
- merge-tree: allow ls-files -u style info to be NUL terminated
- merge-tree: provide easy access to ls-files -u style info
- merge-tree: provide a list of which files have conflicts
- merge-ort: provide a merge_get_conflicted_files() helper function
- merge-tree: support including merge messages in output
- merge-ort: split out a separate display_update_messages() function
- merge-tree: implement real merges
- merge-tree: add option parsing and initial shell for real merge function
- merge-tree: move logic for existing merge into new function
- merge-tree: rename merge_trees() to trivial_merge_trees()
- Merge branch 'en/remerge-diff' into en/merge-trees

A new command is introduced that takes two commits and computes a tree that would be contained in the resulting merge commit, if the histories leading to these two commits were to be merged, and is added as a new mode of "git merge-tree" subcommand.

On hold.
cf. <CABPp-BGZ7OAYRR5YKRsxJSo-C=ho+qcNAkqwkim8CkhCfCeHsA@mail.gmail.com>
source: <[email protected]>

* jh/p4-various-fixups (2022-02-10) 22 commits
- git-p4: sort imports
- git-p4: seperate multiple statements onto seperate lines
- git-p4: move inline comments to line above
- git-p4: only seperate code blocks by a single empty line
- git-p4: compare to singletons with "is" and "is not"
- git-p4: normalize indentation of lines in conditionals
- git-p4: ensure there is a single space around all operators
- git-p4: ensure every comment has a single #
- git-p4: remove spaces between dictionary keys and colons
- git-p4: remove redundant backslash-continuations inside brackets
- git-p4: remove extraneous spaces before function arguments
- git-p4: place a single space after every comma
- git-p4: removed brackets when assigning multiple return values
- git-p4: remove spaces around default arguments
- git-p4: remove padding from lists, tuples and function arguments
- git-p4: sort and de-duplcate pylint disable list
- git-p4: remove commented code
- git-p4: convert descriptive class and function comments into docstrings
- git-p4: improve consistency of docstring formatting
- git-p4: indent with 4-spaces
- git-p4: remove unneeded semicolons from statements
- git-p4: add blank lines between functions and class definitions

Various cleanups to "git p4".
source: <[email protected]>

* rs/bisect-executable-not-found (2022-01-19) 4 commits (merged to 'next' on 2022-02-28 at c74bff7954)
+ bisect--helper: double-check run command on exit code 126 and 127
+ bisect: document run behavior with exit codes 126 and 127
+ bisect--helper: release strbuf and strvec on run error
+ bisect--helper: report actual bisect_state() argument on error

A not-so-common mistake is to write a script to feed "git bisect run" without making it executable, in which case all tests will exit with 126 or 127 error codes, even on revisions that are marked as good. Try to recognize this situation and stop iteration early.

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

* en/present-despite-skipped (2022-03-01) 7 commits
(merged to 'next' on 2022-03-01 at 4982287a31)
+ repo_read_index: add config to expect files outside sparse patterns (merged to 'next' on 2022-02-15 at 960873fdad)
+ Accelerate clear_skip_worktree_from_present_files() by caching
+ Update documentation related to sparsity and the skip-worktree bit
+ repo_read_index: clear SKIP_WORKTREE bit from files present in worktree
+ unpack-trees: fix accidental loss of user changes
+ t1011: add testcase demonstrating accidental loss of user modifications
+ Merge branch 'vd/sparse-clean-etc' into en/present-despite-skipped

In sparse-checkouts, files mis-marked as missing from the working tree could lead to later problems. Such files were hard to discover, and harder to correct. Automatically detecting and correcting the marking of such files has been added to avoid these problems.

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

* js/use-builtin-add-i (2021-12-01) 2 commits
- add -i: default to the built-in implementation
- t2016: require the PERL prereq only when necessary

"git add -i" was rewritten in C some time ago and has been in testing; the reimplementation is now exposed to general public by default.

On hold.

What's the status of the "known breakage"?
Are we ready to switch if we wanted to?
There are known breakages on macOS.
cf. <[email protected]>
source: <[email protected]>

* jh/builtin-fsmonitor-part2 (2022-03-01) 30 commits
- update-index: convert fsmonitor warnings to advise
- t7527: test status with untracked-cache and fsmonitor--daemon
- fsmonitor: force update index after large responses
- fsmonitor--daemon: use a cookie file to sync with file system
- fsmonitor--daemon: periodically truncate list of modified files
- t/perf/p7519: add fsmonitor--daemon test cases
- t/perf/p7519: speed up test on Windows
- t/helper/test-chmtime: skip directories on Windows
- t/perf: avoid copying builtin fsmonitor files into test repo
- t7527: create test for fsmonitor--daemon
- t/helper/fsmonitor-client: create IPC client to talk to FSMonitor Daemon
- help: include fsmonitor--daemon feature flag in version info
- fsmonitor--daemon: implement handle_client callback
- compat/fsmonitor/fsm-listen-darwin: implement FSEvent listener on MacOS
- compat/fsmonitor/fsm-listen-darwin: add MacOS header files for FSEvent
- compat/fsmonitor/fsm-listen-win32: implement FSMonitor backend on Windows
- fsmonitor--daemon: create token-based changed path cache
- fsmonitor--daemon: define token-ids
- fsmonitor--daemon: add pathname classification
- fsmonitor--daemon: implement 'start' command
- fsmonitor--daemon: implement 'run' command
- compat/fsmonitor/fsm-listen-darwin: stub in backend for Darwin
- compat/fsmonitor/fsm-listen-win32: stub in backend for Windows
- fsmonitor--daemon: implement 'stop' and 'status' commands
- fsmonitor--daemon: add a built-in fsmonitor daemon
- fsmonitor: document builtin fsmonitor
- fsmonitor: use IPC to query the builtin FSMonitor daemon
- fsmonitor: config settings are repository-specific
- fsmonitor-ipc: create client routines for git-fsmonitor--daemon
- fsmonitor: enhance existing comments, clarify trivial response handling (this branch is used by jh/builtin-fsmonitor-part3.)

Built-in fsmonitor (part 2).

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

* es/superproject-aware-submodules (2022-02-28) 3 commits
- rev-parse: short-circuit superproject worktree when config unset
- introduce submodule.hasSuperproject record
- t7400-submodule-basic: modernize inspect() helper

A configuration variable in a repository tells if it is (or is not) a submodule of a superproject.

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

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

* jc/parse-options-check (2022-03-01) 1 commit . parse-options: make parse_options_check() test-only

Bypass sanity checks on the options array at runtime, and trigger them only during the tests.
source: <[email protected]>

* jc/merge-continue-doc (2022-02-28) 1 commit . merge: 'git merge --continue' is merely 'git commit'

"git merge" documentation clarifies that "git commit" is sufficient to conclude an interrupted merge.
source: <[email protected]>

#1 lore raw

ab/plug-random-leaks (was Re: What's cooking in git.git (Mar 2022, #01; Thu, 3))

Quoted 16 lines · Junio C Hamano

* ab/plug-random-leaks (2022-03-02) 14 commits
- repository.c: free the "path cache" in repo_clear()
- range-diff: plug memory leak in read_patches()
- range-diff: plug memory leak in common invocation
- lockfile API users: simplify and don't leak "path"
- commit-graph: stop fill_oids_from_packs() progress on error and free()
- commit-graph: fix memory leak in misused string_list API
- submodule--helper: fix trivial leak in module_add()
- transport: stop needlessly copying bundle header references
- bundle: call strvec_clear() on allocated strvec
- remote-curl.c: free memory in cmd_main()
- urlmatch.c: add and use a *_release() function
- diff.c: free "buf" in diff_words_flush()
- merge-base: free() allocated "struct commit **" list
- index-pack: fix memory leaks

Quoted 4 lines

Plug random memory leaks.

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

This series needs a re-roll before it gets merged. There is a correctness issue in this patch:

Quoted 1 line

- transport: stop needlessly copying bundle header references

Thanks,
-Stolee

#2 lore raw

Re: ab/plug-random-leaks (was Re: What's cooking in git.git (Mar 2022, #01; Thu, 3))

Quoted 18 lines · Derrick Stolee
Quoted 16 lines · Junio C Hamano

* ab/plug-random-leaks (2022-03-02) 14 commits
- repository.c: free the "path cache" in repo_clear()
- range-diff: plug memory leak in read_patches()
- range-diff: plug memory leak in common invocation
- lockfile API users: simplify and don't leak "path"
- commit-graph: stop fill_oids_from_packs() progress on error and free()
- commit-graph: fix memory leak in misused string_list API
- submodule--helper: fix trivial leak in module_add()
- transport: stop needlessly copying bundle header references
- bundle: call strvec_clear() on allocated strvec
- remote-curl.c: free memory in cmd_main()
- urlmatch.c: add and use a *_release() function
- diff.c: free "buf" in diff_words_flush()
- merge-base: free() allocated "struct commit **" list
- index-pack: fix memory leaks

Quoted 9 lines
Quoted 4 lines

Plug random memory leaks.

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

This series needs a re-roll before it gets merged. There is a correctness issue in this patch:

Quoted 1 line

- transport: stop needlessly copying bundle header references

Thanks. I just sent in that re-roll at:
https://lore.kernel.org/git/[email protected]/

#3 lore raw

PATCH 1/1 tests: test show --word-diff --color-moved

a18d66cefb ("diff.c: free "buf" in diff_words_flush()", 2022-03-04) introduced a breakage to show --word-diff --color-moved which gives

free(): double free detected in tcache 2
Aborted (core dumped)

on every incarnation. This was not caught by the test suite because we test diff --word-diff --color-moved only so far.

Therefore, add a test for show, too.

Reverting a18d66cefb makes the test pass, but there might be a better fix.

---
 t/t4015-diff-whitespace.sh | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
t/t4015-diff-whitespace.sh +7 -1
index 9babf13bc9..ff8a0426ca 100755
@@ -1622,7 +1622,7 @@ test_expect_success 'cmd option assumes configured colored-moved' '
 	test_cmp expected actual
 '
 
-test_expect_success 'no effect from --color-moved with --word-diff' '
+test_expect_success 'no effect on diff from --color-moved with --word-diff' '
 	cat <<-\EOF >text.txt &&
 	Lorem Ipsum is simply dummy text of the printing and typesetting industry.
 	EOF
@@ -1636,6 +1636,12 @@ test_expect_success 'no effect from --color-moved with --word-diff' '
 	test_cmp expect actual
 '
 
+test_expect_failure 'no effect on show from --color-moved with --word-diff' '
+	git show --color-moved --word-diff >actual &&
+	git show --word-diff >expect &&
+	test_cmp expect actual
+'
+
 test_expect_success 'set up whitespace tests' '
 	git reset --hard &&
 	# Note that these lines have no leading or trailing whitespace.
Signature · 1 line
2.35.1.981.gd72fe90d09
#4 lore raw

v2 cover diff.c: fix a recent memory leak regression

There's a really dumb think-o in a commit of mine in the recently landed ccafbbfb4ee (Merge branch 'ab/plug-random-leaks', 2022-03-13), sorry about that, and thanks a lot to Michael J Gruber for the report.

This "v2" series is re-roll of his addition of a regression test in the "v1"[1].

As the range-diff shows I took the libertay of adjusting the commit message a bit, mainly noting the regression, re-wording a bit, and replacing the (presumably glibc?) output with the better SANITIZE=address report.

The 2/2 then fixes the issue, and changes the relevant regression tests to run under SANITIZE=leak (i.e. the "linux-leaks" job).

1. https://lore.kernel.org/git/a5e5cdd4658d457ffbd80f7263e352cbf3141a1a.1647520853.git.git@grubix.eu/

Michael J Gruber (1):
tests: demonstrate "show --word-diff --color-moved" regression

Ævar Arnfjörð Bjarmason (1):
diff.c: fix a double-free regression in a18d66cefb

 diff.c                     | 11 +++++++++--
 t/t4015-diff-whitespace.sh | 12 ++++++++++--
 2 files changed, 19 insertions(+), 4 deletions(-)

Range-diff against v1:
1: f6e7318b418 ! 1: 7f6a6450259 tests: test show --word-diff --color-moved
@@ Metadata
Author: Michael J Gruber <[email protected]>

## Commit message ##
- tests: test show --word-diff --color-moved
+ tests: demonstrate "show --word-diff --color-moved" regression

- a18d66cefb ("diff.c: free "buf" in diff_words_flush()", 2022-03-04)
- introduced a breakage to show --word-diff --color-moved which gives
+ Add a failing test which demonstrates a regression in
+ a18d66cefb ("diff.c: free "buf" in diff_words_flush()", 2022-03-04),
+ the regression is discussed in detail in the subsequent commit. With
+ it running git show --word-diff --color-moved with SANITIZE=address
+ would emit:

- free(): double free detected in tcache 2
- Aborted (core dumped)
+ ==31191==ERROR: AddressSanitizer: attempting double-free on 0x617000021100 in thread T0:
+ #0 0x49f0a2 in free (git+0x49f0a2)
+ #1 0x9b0e4d in diff_words_flush diff.c:2153:3
+ #2 0x9aed5d in fn_out_consume diff.c:2354:3
+ #3 0xe092ab in consume_one xdiff-interface.c:43:9
+ #4 0xe072eb in xdiff_outf xdiff-interface.c:76:10
+ #5 0xec7014 in xdl_emit_diffrec xdiff/xutils.c:53:6
+ [...]

- on every incarnation. This was not caught by the test suite because we
- test diff --word-diff --color-moved only so far.
+ 0x617000021100 is located 0 bytes inside of 768-byte region [0x617000021100,0x617000021400)
+ freed by thread T0 here:
+ #0 0x49f0a2 in free (git+0x49f0a2)
+ [...(same stacktrace)...]

- Therefore, add a test for show, too.
+ previously allocated by thread T0 here:
+ #0 0x49f603 in __interceptor_realloc (git+0x49f603)
+ #1 0xde4da4 in xrealloc wrapper.c:126:8
+ #2 0x995dc5 in append_emitted_diff_symbol diff.c:794:2
+ #3 0x96c44a in emit_diff_symbol diff.c:1527:3
+ [...]
+
+ This was not caught by the test suite because we test `diff
+ --word-diff --color-moved` only so far.

- Reverting a18d66cefb makes the test pass, but there might be a better
- fix.
+ Therefore, add a test for show, too.

+ Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]>

## t/t4015-diff-whitespace.sh ##
@@ t/t4015-diff-whitespace.sh: test_expect_success 'cmd option assumes configured colored-moved' '
-: ----------- > 2: cae11491599 diff.c: fix a double-free regression in a18d66cefb

Signature · 1 line
2.35.1.1384.g7d2906948a1
#5 lore raw

PATCH v2 1/2 tests: demonstrate "show --word-diff --color-moved" regression

From: Michael J Gruber <[email protected]>

Add a failing test which demonstrates a regression in a18d66cefb ("diff.c: free "buf" in diff_words_flush()", 2022-03-04), the regression is discussed in detail in the subsequent commit. With it running git show --word-diff --color-moved with SANITIZE=address would emit:

	==31191==ERROR: AddressSanitizer: attempting double-free on 0x617000021100 in thread T0:
	    #0 0x49f0a2 in free (git+0x49f0a2)
	    #1 0x9b0e4d in diff_words_flush diff.c:2153:3
	    #2 0x9aed5d in fn_out_consume diff.c:2354:3
	    #3 0xe092ab in consume_one xdiff-interface.c:43:9
	    #4 0xe072eb in xdiff_outf xdiff-interface.c:76:10
	    #5 0xec7014 in xdl_emit_diffrec xdiff/xutils.c:53:6
	    [...]

	0x617000021100 is located 0 bytes inside of 768-byte region [0x617000021100,0x617000021400)
	freed by thread T0 here:
	    #0 0x49f0a2 in free (git+0x49f0a2)
	    [...(same stacktrace)...]

	previously allocated by thread T0 here:
	    #0 0x49f603 in __interceptor_realloc (git+0x49f603)
	    #1 0xde4da4 in xrealloc wrapper.c:126:8
	    #2 0x995dc5 in append_emitted_diff_symbol diff.c:794:2
	    #3 0x96c44a in emit_diff_symbol diff.c:1527:3
	    [...]

This was not caught by the test suite because we test diff --word-diff --color-moved only so far.

Therefore, add a test for show, too.

---
 t/t4015-diff-whitespace.sh | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
t/t4015-diff-whitespace.sh +7 -1
index 9babf13bc9b..ff8a0426ca5 100755
@@ -1622,7 +1622,7 @@ test_expect_success 'cmd option assumes configured colored-moved' '
 	test_cmp expected actual
 '
 
-test_expect_success 'no effect from --color-moved with --word-diff' '
+test_expect_success 'no effect on diff from --color-moved with --word-diff' '
 	cat <<-\EOF >text.txt &&
 	Lorem Ipsum is simply dummy text of the printing and typesetting industry.
 	EOF
@@ -1636,6 +1636,12 @@ test_expect_success 'no effect from --color-moved with --word-diff' '
 	test_cmp expect actual
 '
 
+test_expect_failure 'no effect on show from --color-moved with --word-diff' '
+	git show --color-moved --word-diff >actual &&
+	git show --word-diff >expect &&
+	test_cmp expect actual
+'
+
 test_expect_success 'set up whitespace tests' '
 	git reset --hard &&
 	# Note that these lines have no leading or trailing whitespace.
Signature · 1 line
2.35.1.1384.g7d2906948a1
#6 lore raw

Re: [PATCH v2 1/2] tests: demonstrate "show --word-diff --color-moved" regression

t/t4015-diff-whitespace.sh test_expect_success 'no effect from --color-moved with --word-diff' ' · line 1643

Quoted 5 lines · Ævar Arnfjörð Bjarmason
t/t4015-diff-whitespace.sh +5 -0
+test_expect_failure 'no effect on show from --color-moved with --word-diff' '
+	git show --color-moved --word-diff >actual &&
+	git show --word-diff >expect &&
+	test_cmp expect actual
+'

OK. Just for future reference ...

In this case it is OK to start with a "document current failure" that gets turned into expecting success in a separate patch for two reasons, (1) it is by somebody other than the author of the patch that fixes the breakage, and more importantly (2) the body of the test is short enough.

But in all normal cases, please add a test that expects success in the commit that implements a fix. A one-line change that turns expects_failure to expect_success in the commit that implements a fix, when presented in a patch form with the standard 3-line context, does not often have enough post-context to show the behaviour the test tries to exercise and makes reviewing harder. It also makes it more cumbersome to cherry-pick the fix to a different context as the two patches must be kept together.

Thanks.

#7 lore raw

PATCH v2 2/2 diff.c: fix a double-free regression in a18d66cefb

In reply to Ævar Arnfjörð Bjarmason

My a18d66cefb9 (diff.c: free "buf" in diff_words_flush(), 2022-03-04) has what it retrospect is a rather obvious bug (I don't know what I was thinking, if it all): We use the "emitted_symbols" allocation in append_emitted_diff_symbol() N times, but starting with a18d66cefb9 we'd free it after its first use!

The correct way to free this data would have been to add the free() to the existing free_diff_words_data() function, so let's do that. The "ecbdata->diff_words->opt->emitted_symbols" might be NULL, so let's add a trivial free_emitted_diff_symbols() helper next to the function that appends to it.

This fixes the "no effect on show from" leak tested for in the preceding commit. Perhaps confusingly this change will skip that test under SANITIZE=leak, but otherwise opt-in the "t4015-diff-whitespace.sh" test.

The reason is that a18d66cefb9 "fixed" the leak in the preceding "no effect on diff" test, but for the first call to diff_words_flush() the "wol->buf" would be NULL, so we wouldn't double-free (and SANITIZE=address would see nothing amiss). With this change we'll still pass that test, showing that we've also fixed leaks on this codepath.

We then have to skip the new "no effect on show" test because it happens to trip over an unrelated memory leak (in revision.c). The same goes for "move detection with submodules". Both of them pass with SANITIZE=address though, which would error on the "no effect on show" test before this change.

---
 diff.c                     | 11 +++++++++--
 t/t4015-diff-whitespace.sh |  6 ++++--
 2 files changed, 13 insertions(+), 4 deletions(-)
diff.c +9 -2
index 6b22946cd0e..ef7159968b6 100644
@@ -800,6 +800,14 @@ static void append_emitted_diff_symbol(struct diff_options *o,
 	f->line = e->line ? xmemdupz(e->line, e->len) : NULL;
 }
 
+static void free_emitted_diff_symbols(struct emitted_diff_symbols *e)
+{
+	if (!e)
+		return;
+	free(e->buf);
+	free(e);
+}
+
 struct moved_entry {
 	const struct emitted_diff_symbol *es;
 	struct moved_entry *next_line;
@@ -2150,7 +2158,6 @@ static void diff_words_flush(struct emit_callback *ecbdata)
 
 		for (i = 0; i < wol->nr; i++)
 			free((void *)wol->buf[i].line);
-		free(wol->buf);
 
 		wol->nr = 0;
 	}
@@ -2228,7 +2235,7 @@ static void free_diff_words_data(struct emit_callback *ecbdata)
 {
 	if (ecbdata->diff_words) {
 		diff_words_flush(ecbdata);
-		free (ecbdata->diff_words->opt->emitted_symbols);
+		free_emitted_diff_symbols(ecbdata->diff_words->opt->emitted_symbols);
 		free (ecbdata->diff_words->opt);
 		free (ecbdata->diff_words->minus.text.ptr);
 		free (ecbdata->diff_words->minus.orig);
t/t4015-diff-whitespace.sh +4 -2
index ff8a0426ca5..f3e20dd5bba 100755
@@ -6,6 +6,8 @@
 test_description='Test special whitespace in diff engine.
 
 '
+
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 . "$TEST_DIRECTORY"/lib-diff.sh
 
@@ -1636,7 +1638,7 @@ test_expect_success 'no effect on diff from --color-moved with --word-diff' '
 	test_cmp expect actual
 '
 
-test_expect_failure 'no effect on show from --color-moved with --word-diff' '
+test_expect_success !SANITIZE_LEAK 'no effect on show from --color-moved with --word-diff' '
 	git show --color-moved --word-diff >actual &&
 	git show --word-diff >expect &&
 	test_cmp expect actual
@@ -2022,7 +2024,7 @@ test_expect_success '--color-moved rewinds for MIN_ALNUM_COUNT' '
 	test_cmp expected actual
 '
 
-test_expect_success 'move detection with submodules' '
+test_expect_success !SANITIZE_LEAK 'move detection with submodules' '
 	test_create_repo bananas &&
 	echo ripe >bananas/recipe &&
 	git -C bananas add recipe &&
Signature · 1 line
2.35.1.1384.g7d2906948a1
#8 lore raw

tb/cruft-packs (was Re: What's cooking in git.git (Mar 2022, #01; Thu, 3))

In reply to Junio C Hamano
Quoted 19 lines · Junio C Hamano

* tb/cruft-packs (2022-03-02) 17 commits
- sha1-file.c: don't freshen cruft packs
- builtin/gc.c: conditionally avoid pruning objects via loose
- builtin/repack.c: add cruft packs to MIDX during geometric repack
- builtin/repack.c: use named flags for existing_packs
- builtin/repack.c: allow configuring cruft pack generation
- builtin/repack.c: support generating a cruft pack
- builtin/pack-objects.c: --cruft with expiration
- reachable: report precise timestamps from objects in cruft packs
- reachable: add options to add_unseen_recent_objects_to_traversal
- builtin/pack-objects.c: --cruft without expiration
- builtin/pack-objects.c: return from create_object_entry()
- t/helper: add 'pack-mtimes' test-tool
- pack-mtimes: support writing pack .mtimes files
- chunk-format.h: extract oid_version()
- pack-write: pass 'struct packing_data' to 'stage_tmp_packfiles'
- pack-mtimes: support reading .mtimes files
- Documentation/technical: add cruft-packs.txt

Quoted 6 lines

A mechanism to pack unreachable objects into a "cruft pack", instead of ejecting them into loose form to be reclaimed later, has been introduced.

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

This version looks good to me. There were some other comments that seem to have resolved without a need to change the patches.

Thanks,
-Stolee

#9 lore raw

Re: tb/cruft-packs (was Re: What's cooking in git.git (Mar 2022, #01; Thu, 3))

Hi,

Quoted 25 lines · Derrick Stolee
Quoted 23 lines · Junio C Hamano

* tb/cruft-packs (2022-03-02) 17 commits
- sha1-file.c: don't freshen cruft packs
- builtin/gc.c: conditionally avoid pruning objects via loose
- builtin/repack.c: add cruft packs to MIDX during geometric repack
- builtin/repack.c: use named flags for existing_packs
- builtin/repack.c: allow configuring cruft pack generation
- builtin/repack.c: support generating a cruft pack
- builtin/pack-objects.c: --cruft with expiration
- reachable: report precise timestamps from objects in cruft packs
- reachable: add options to add_unseen_recent_objects_to_traversal
- builtin/pack-objects.c: --cruft without expiration
- builtin/pack-objects.c: return from create_object_entry()
- t/helper: add 'pack-mtimes' test-tool
- pack-mtimes: support writing pack .mtimes files
- chunk-format.h: extract oid_version()
- pack-write: pass 'struct packing_data' to 'stage_tmp_packfiles'
- pack-mtimes: support reading .mtimes files
- Documentation/technical: add cruft-packs.txt

A mechanism to pack unreachable objects into a "cruft pack", instead of ejecting them into loose form to be reclaimed later, has been introduced.

Quoted 5 lines
Quoted 2 lines

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

This version looks good to me. There were some other comments that seem to have resolved without a need to change the patches.

I'm excited about this work! I just sent a quick review to the design doc.

Before merging to 'next', I'd be interested in two things:

1. Marking the feature as experimental so we can learn from experience. Clarifying what aspects we consider to be stable / set in stone and what are subject to modification.

2. Marking this as a repository format extension so it doesn't interact poorly with Git implementations (including older versions of Git itself) that are not aware of the new feature

Thoughts?

Thanks,
Jonathan

#10 lore raw

Re: tb/cruft-packs (was Re: What's cooking in git.git (Mar 2022, #01; Thu, 3))

Quoted 2 lines · Jonathan Nieder

I'm excited about this work! I just sent a quick review to the design doc.

Thanks! I haven't had a chance to look at the design doc, but let me respond quickly to this message:

Quoted 5 lines

Before merging to 'next', I'd be interested in two things:

1. Marking the feature as experimental so we can learn from experience. Clarifying what aspects we consider to be stable / set in stone and what are subject to modification.

I'm not sure there is much practical benefit to marking this feature as experimental. The only new file format here is the .mtimes one, which should make it easy for us to modify the format in a backwards-compatible way.

If there are other benefits you had in mind, I'm curious to hear them. But I think we should be fine to "lock in" the first version of the .mtimes format since we have an easy-ish mechanism to change it in the future.

Quoted 3 lines

2. Marking this as a repository format extension so it doesn't interact poorly with Git implementations (including older versions of Git itself) that are not aware of the new feature

The design of cruft packs was done intentionally to avoid needing a format extension. The cruft pack is "just a pack" to any older version of Git. The only thing an older version of Git wouldn't understand is how to interpret the .mtimes file. But that's no different than the current behavior without cruft packs, where any unreachable object inherits the mtime of its containing pack.

So an older version of Git might prune a different set of objects than a version that understands cruft packs depending on the contents of the .mtimes file, the mtime of the cruft pack, and the width of the grace period. But I think by downgrading you are more or less buying into the existing behavior. So I don't think there is a compelling reason to introduce a format extension here.

Thanks,
Taylor

#11 lore raw

Re: tb/cruft-packs (was Re: What's cooking in git.git (Mar 2022, #01; Thu, 3))

Quoted 18 lines · Taylor Blau
Quoted 2 lines · Jonathan Nieder

I'm excited about this work! I just sent a quick review to the design doc.

Thanks! I haven't had a chance to look at the design doc, but let me respond quickly to this message:

Quoted 5 lines

Before merging to 'next', I'd be interested in two things:

1. Marking the feature as experimental so we can learn from experience. Clarifying what aspects we consider to be stable / set in stone and what are subject to modification.

I'm not sure there is much practical benefit to marking this feature as experimental. The only new file format here is the .mtimes one, which should make it easy for us to modify the format in a backwards-compatible way.

Quoted 4 lines

If there are other benefits you had in mind, I'm curious to hear them. But I think we should be fine to "lock in" the first version of the .mtimes format since we have an easy-ish mechanism to change it in the future.

I feel similarly to Taylor here.

Quoted 11 lines
Quoted 3 lines

2. Marking this as a repository format extension so it doesn't interact poorly with Git implementations (including older versions of Git itself) that are not aware of the new feature

The design of cruft packs was done intentionally to avoid needing a format extension. The cruft pack is "just a pack" to any older version of Git. The only thing an older version of Git wouldn't understand is how to interpret the .mtimes file. But that's no different than the current behavior without cruft packs, where any unreachable object inherits the mtime of its containing pack.

Quoted 6 lines

So an older version of Git might prune a different set of objects than a version that understands cruft packs depending on the contents of the .mtimes file, the mtime of the cruft pack, and the width of the grace period. But I think by downgrading you are more or less buying into the existing behavior. So I don't think there is a compelling reason to introduce a format extension here.

In particular, older versions would first explode unreachable objects out of the cruft pack and into loose objects before expiring any of them based on the loose object mtime. There is no risk here of causing problems with older versions of Git and does not need an extension.

Thanks,
-Stolee

#12 lore raw

Re: tb/cruft-packs (was Re: What's cooking in git.git (Mar 2022, #01; Thu, 3))

Quoted 21 lines · Derrick Stolee
Quoted 13 lines · Taylor Blau
Quoted 3 lines · Jonathan Nieder

2. Marking this as a repository format extension so it doesn't interact poorly with Git implementations (including older versions of Git itself) that are not aware of the new feature

The design of cruft packs was done intentionally to avoid needing a format extension. The cruft pack is "just a pack" to any older version of Git. The only thing an older version of Git wouldn't understand is how to interpret the .mtimes file. But that's no different than the current behavior without cruft packs, where any unreachable object inherits the mtime of its containing pack.

Quoted 6 lines

So an older version of Git might prune a different set of objects than a version that understands cruft packs depending on the contents of the .mtimes file, the mtime of the cruft pack, and the width of the grace period. But I think by downgrading you are more or less buying into the existing behavior. So I don't think there is a compelling reason to introduce a format extension here.

Quoted 4 lines

In particular, older versions would first explode unreachable objects out of the cruft pack and into loose objects before expiring any of them based on the loose object mtime. There is no risk here of causing problems with older versions of Git and does not need an extension.

Surely when older and versions are acting on the same repository, they would fight by exploding out unreachable objects, packing them back into a cruft pack, etc, no?

Thanks,
Jonathan

#13 lore raw

Re: tb/cruft-packs (was Re: What's cooking in git.git (Mar 2022, #01; Thu, 3))

Quoted 22 lines · Jonathan Nieder
Quoted 21 lines · Derrick Stolee
Quoted 19 lines · Taylor Blau
Quoted 3 lines · Jonathan Nieder

2. Marking this as a repository format extension so it doesn't interact poorly with Git implementations (including older versions of Git itself) that are not aware of the new feature

The design of cruft packs was done intentionally to avoid needing a format extension. The cruft pack is "just a pack" to any older version of Git. The only thing an older version of Git wouldn't understand is how to interpret the .mtimes file. But that's no different than the current behavior without cruft packs, where any unreachable object inherits the mtime of its containing pack.

So an older version of Git might prune a different set of objects than a version that understands cruft packs depending on the contents of the .mtimes file, the mtime of the cruft pack, and the width of the grace period. But I think by downgrading you are more or less buying into the existing behavior. So I don't think there is a compelling reason to introduce a format extension here.

Quoted 8 lines
Quoted 4 lines

In particular, older versions would first explode unreachable objects out of the cruft pack and into loose objects before expiring any of them based on the loose object mtime. There is no risk here of causing problems with older versions of Git and does not need an extension.

Surely when older and versions are acting on the same repository, they would fight by exploding out unreachable objects, packing them back into a cruft pack, etc, no?

You are referring to a situation where there are multiple possible versions responsible for maintaining a repository. Git does not support parallel writers doing significant updates like full repacks and GCs and instead relies on the user to control the concurrency there. The standard we keep to is that parallel readers can still access the repo during this time.

If someone was running a case where they had these parallel maintenance processes, then they would already be risking failure with existing features (though actually in the case of the old versions breaking the new ones): what if the new/old versions differ in their understanding of the commit-graph? The old one could remove commits but not update the commit-graph, leaving extra commits in that file that the new one would fail to verify. How about the multi-pack-index? The new version would try loading objects from missing pack-files since the old version deleted those packs without updating the multi-pack-index.

At least in the cruft packs the worst case is that no objects are ever expired because they are toggling between loose objects and cruft packs.

Thanks,
-Stolee

#14 lore raw

Re: tb/cruft-packs (was Re: What's cooking in git.git (Mar 2022, #01; Thu, 3))

Quoted 4 lines · Derrick Stolee

... Git does not
support parallel writers doing significant updates like full repacks and GCs and instead relies on the user to control the concurrency there.

At least when we set out to give our users Git, allowing such concurrent writing without corrupting repositories was what we aimed to achieve. If you did two simultanenous repacks, one of the may fail while trying to acquire a lock or two, so from waste-avoidance perspective, there is a strong incentive on the user's side to make sure such housecleaning tasks are not triggered needlessly and simultanously, but it shouldn't lead to repository corruption.

Have we broken that over the course of adding new commits and developers? If so, we have stuff that needs fixing, and also ensure that the developer and end-user expectations are aligned.

Thanks.

#15 lore raw

Re: tb/cruft-packs (was Re: What's cooking in git.git (Mar 2022, #01; Thu, 3))

Quoted 7 lines · Junio C Hamano
Quoted 4 lines · Derrick Stolee

... Git does not
support parallel writers doing significant updates like full repacks and GCs and instead relies on the user to control the concurrency there.

Quoted 7 lines

At least when we set out to give our users Git, allowing such concurrent writing without corrupting repositories was what we aimed to achieve. If you did two simultanenous repacks, one of the may fail while trying to acquire a lock or two, so from waste-avoidance perspective, there is a strong incentive on the user's side to make sure such housecleaning tasks are not triggered needlessly and simultanously, but it shouldn't lead to repository corruption.

It is not true that git repack does not support parallel writers.

Indeed, repack doesn't hold any locks on the repository ahead of time, but the concurrent writers situation will at worst leave us in a state where objects appear twice across multiple packs.

So yes, users are incentivized to limit multiple repack processes from stomping on each other and wasting effort, but multiple writers running git repack cannot corrupt a repository.

Thanks,
Taylor

#16 lore raw

Re: tb/cruft-packs (was Re: What's cooking in git.git (Mar 2022, #01; Thu, 3))

In reply to Taylor Blau
Quoted 18 lines · Taylor Blau
Quoted 2 lines · Jonathan Nieder

I'm excited about this work! I just sent a quick review to the design doc.

Thanks! I haven't had a chance to look at the design doc, but let me respond quickly to this message:

Quoted 5 lines

Before merging to 'next', I'd be interested in two things:

1. Marking the feature as experimental so we can learn from experience. Clarifying what aspects we consider to be stable / set in stone and what are subject to modification.

I'm not sure there is much practical benefit to marking this feature as experimental. The only new file format here is the .mtimes one, which should make it easy for us to modify the format in a backwards-compatible way.

Quoted 4 lines

If there are other benefits you had in mind, I'm curious to hear them. But I think we should be fine to "lock in" the first version of the .mtimes format since we have an easy-ish mechanism to change it in the future.

Hmph, how? For example, if it turns out that rewriting .mtimes file for each object access turns out to be too much I/O churn and the approach to use the mtime of the cruft pack for expiration of the entire cruft pack (while ejecting objects that was used from the cruft pack out of it to resurrect them from expiration schedule) is more preferrable, how do we back out of from the "lock in" once this series is unleashed to the workd?

#17 lore raw

Re: tb/cruft-packs (was Re: What's cooking in git.git (Mar 2022, #01; Thu, 3))

Quoted 5 lines · Junio C Hamano
Quoted 4 lines

If there are other benefits you had in mind, I'm curious to hear them. But I think we should be fine to "lock in" the first version of the .mtimes format since we have an easy-ish mechanism to change it in the future.

Quoted 7 lines

Hmph, how? For example, if it turns out that rewriting .mtimes file for each object access turns out to be too much I/O churn and the approach to use the mtime of the cruft pack for expiration of the entire cruft pack (while ejecting objects that was used from the cruft pack out of it to resurrect them from expiration schedule) is more preferrable, how do we back out of from the "lock in" once this series is unleashed to the workd?

(Note that this series does not propose rewriting the .mtimes file during each object access, since we only need to update our view of "last modified time" when pruning or repacking. I think a more complete explanation of why can be found in [1] and [2]).

That detail aside, if we suddenly decided that cruft packs were a bad idea and we should get rid of them, then we would be fine to drop all of the cruft pack code. A future version of Git that didn't understand cruft packs would ignore the .mtimes file, and we would go back to handling unreachable objects as we do today (by ejecting them loose when pruning a too-new object that hasn't fallen out of the grace period).

In other words, this series is designed intentionally so that older versions of Git that don't understand cruft packs will continue to work fine even in the presence of cruft packs. If we backed out of cruft packs at a later date, it would be no different than using an older version of Git that predates cruft packs.

In other words, I think Stolee's comparison to a feature like commit-graphs (where older versions of Git that don't yet understand commit-graphs work just fine even in repositories that have commit-graphs written) is applicable to this series, too.

Thanks,
Taylor

[1]: https://lore.kernel.org/git/[email protected]/
[2]: https://lore.kernel.org/git/[email protected]/

#18 lore raw

jc/stash-drop (was: What's cooking in git.git (Mar 2022, #01; Thu, 3))

In reply to Junio C Hamano
Quoted 11 lines · Junio C Hamano

* jc/stash-drop (2022-03-02) 3 commits
- stash: call reflog_delete() in reflog.c
- reflog: libify delete reflog function and helpers
- stash: add tests to ensure reflog --rewrite --updatref behavior

"git stash drop" is reimplemented as an internal call to reflog_delete() function, instead of invoking "git reflog delete" via run_command() API.

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

I've been reviewing this closely & it looks good to me, all feedback has been addressed, and there's nothing outstanding (there's one sub-thread on v4 answering a question from Phillip Wood asking if the new test needs REFFILES, it does).

#19 lore raw

Re: jc/stash-drop

Quoted 11 lines · Ævar Arnfjörð Bjarmason
Quoted 9 lines · Junio C Hamano

* jc/stash-drop (2022-03-02) 3 commits
- stash: call reflog_delete() in reflog.c
- reflog: libify delete reflog function and helpers
- stash: add tests to ensure reflog --rewrite --updatref behavior

"git stash drop" is reimplemented as an internal call to reflog_delete() function, instead of invoking "git reflog delete" via run_command() API.

Quoted 7 lines
Quoted 2 lines

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

I've been reviewing this closely & it looks good to me, all feedback has been addressed, and there's nothing outstanding (there's one sub-thread on v4 answering a question from Phillip Wood asking if the new test needs REFFILES, it does).

I think this one is good, and I agree that we should leave the "old side is not even visible to regular users and tests need to peek into the implementation detail of the log files---do we need the --rewrite option at all, instead of doing so always?" outside the topic.

Thanks.

#20 lore raw

ds/commit-graph-gen-v2-fixes (was Re: What's cooking in git.git (Mar 2022, #01; Thu, 3))

In reply to Junio C Hamano
Quoted 10 lines · Junio C Hamano

* ds/commit-graph-gen-v2-fixes (2022-03-01) 5 commits
- commit-graph: fix generation number v2 overflow values
- commit-graph: start parsing generation v2 (again)
- commit-graph: fix ordering bug in generation numbers
- t5318: extract helpers to lib-commit-graph.sh
- test-read-graph: include extra post-parse info

Fixes to the way generation number v2 in the commit-graph files are (not) handled.
source: <[email protected]>

After discussing the issues in detail with Patrick, it seems that an additional patch is required (submitted in [1], though I incorrectly numbered it "5/4" when it should be "6/5"). I can also re-roll to make sure that the patch is visible inline with the rest of the series, if you want.

Thanks,
-Stolee

[1] https://lore.kernel.org/git/[email protected]/

#21 lore raw

Re: ds/commit-graph-gen-v2-fixes (was Re: What's cooking in git.git (Mar 2022, #01; Thu, 3))

Quoted 19 lines · Derrick Stolee
Quoted 10 lines · Junio C Hamano

* ds/commit-graph-gen-v2-fixes (2022-03-01) 5 commits
- commit-graph: fix generation number v2 overflow values
- commit-graph: start parsing generation v2 (again)
- commit-graph: fix ordering bug in generation numbers
- t5318: extract helpers to lib-commit-graph.sh
- test-read-graph: include extra post-parse info

Fixes to the way generation number v2 in the commit-graph files are (not) handled.
source: <[email protected]>

After discussing the issues in detail with Patrick, it seems that an additional patch is required (submitted in [1], though I incorrectly numbered it "5/4" when it should be "6/5"). I can also re-roll to make sure that the patch is visible inline with the rest of the series, if you want.

Quoted 4 lines

Thanks,
-Stolee

[1] https://lore.kernel.org/git/[email protected]/

I do recall seeing the follow-up patch. Let me queue it on top.

Thanks.