Skip to contentSkip to conversation

What's cooking in git.git (Jan 2022, #04; Fri, 14)

DISCUSSION Junio C Hamano 7 participants 13 messages Jan 15, 2022 – Jan 19, 2022

lore
Share & tools
lore
#0 lore raw

I just tagged Git 2.35-rc1 with a few last-minute fixes. Let's make sure we can find and fix any remaining regressions introduced during this cycle before the final.

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/

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

* ab/refs-errno-cleanup (2022-01-13) 1 commit
(merged to 'next' on 2022-01-14 at 00bb61876a)
+ refs API: use "failure_errno", not "errno"

A brown-paper-bag fix on top of a topic that was merged during this cycle.
source: <[email protected]>

* ab/reftable-build-fixes (2022-01-13) 2 commits (merged to 'next' on 2022-01-14 at ebd978ea66)
+ reftable tests: avoid "int" overflow, use "uint64_t"
+ reftable: avoid initializing structs from structs

A few portability tweaks.
source: <[email protected]>

* js/t1450-making-it-writable-does-not-need-full-posixperm (2022-01-13) 1 commit (merged to 'next' on 2022-01-14 at fd4f2f4bb4)
+ t1450-fsck: exec-bit is not needed to make loose object writable

Test fix.
source: <[email protected]>

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

* je/http-better-error-output (2021-12-03) 1 commit
. http-backend: give a hint that web browser access is not supported

When the http-backend program, which is the server-side component for the smart HTTP transport, sends a "404 Not found" error, we deliberately did not say anything to the requesting client. We now send a message back to the browser to tell the user that they do not want to visit the URL via their browser, instead of a totally blank page.

Expecting a reroll.
Breaks its self tests.
cf. <[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]>

* ar/submodule-update (2021-10-13) 9 commits
. submodule--helper: rename helper functions
. submodule--helper: remove unused helpers
. submodule: move core cmd_update() logic to C
. submodule--helper: run update using child process struct . submodule--helper: allow setting superprefix for init_submodule() . submodule--helper: refactor get_submodule_displaypath() . submodule--helper: rename helpers for update-clone
. submodule--helper: get remote names from any repository . submodule--helper: split up ensure_core_worktree()

Rewrite of "git submodule update" in C.

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

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

* ds/sparse-checkout-requires-per-worktree-config (2022-01-14) 6 commits
- worktree: copy sparse-checkout patterns and config on add
- sparse-checkout: use repo_config_set_worktree_gently()
- config: add repo_config_set_worktree_gently()
- worktree: add 'init-worktree-config' subcommand
- config: make some helpers repo-aware
- setup: use a repository when upgrading format

"git sparse-checkout" wants to work with per-worktree configration, but did not work well in a worktree attached to a bare repository.

Expecting an update.
cf. <[email protected]>
source: <[email protected]>

* pw/add-p-hunk-split-fix (2022-01-12) 2 commits
- builtin add -p: fix hunk splitting
- t3701: clean up hunk splitting tests

"git add -p" rewritten in C regressed hunk splitting in some cases, which has been corrected.

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

* gc/fetch-negotiate-only-early-return (2022-01-12) 3 commits
- fetch --negotiate-only: do not update submodules
- fetch: skip tasks related to fetching objects
- fetch: use goto cleanup in cmd_fetch()

"git fetch --nogotiate-only" is an internal command used by "git push" to figure out which part of our history is missing from the other side. It should never recurse into submodules even when fetch.recursesubmodules configuration variable is set, nor it should trigger "gc". The code has been tightened up to ensure it only does common ancestry discovery and nothing else.

Almost there.
source: <[email protected]>

* jh/p4-fix-use-of-process-error-exception (2022-01-06) 1 commit (merged to 'next' on 2022-01-10 at 49d529bfd7)
+ git-p4: fix instantiation of CalledProcessError

Will cook in 'next'.
source: <[email protected]>

* jh/p4-spawning-external-commands-cleanup (2022-01-06) 3 commits (merged to 'next' on 2022-01-10 at 54b36b4e66)
+ git-p4: don't print shell commands as python lists
+ git-p4: pass command arguments as lists instead of using shell
+ git-p4: don't select shell mode using the type of the command argument

Will cook in 'next'.
source: <[email protected]>

* pb/pull-rebase-autostash-fix (2022-01-14) 1 commit (merged to 'next' on 2022-01-14 at 83a388a7e2)
+ pull --rebase: honor rebase.autostash when fast-forwarding

"git pull --rebase" ignored the rebase.autostash configuration variable when the remote history is a descendant of our history, which has been corrected.

Will cook in 'next'.
source: <[email protected]>

* rs/grep-expr-cleanup (2022-01-06) 4 commits (merged to 'next' on 2022-01-10 at b70a3bb0fa)
+ grep: use grep_and_expr() in compile_pattern_and()
+ grep: extract grep_binexp() from grep_or_expr()
+ grep: use grep_not_expr() in compile_pattern_not()
+ grep: use grep_or_expr() in compile_pattern_or()

Code clean-up.

Will cook in 'next'.
source: <[email protected]>

* fs/ssh-signing-crlf (2022-01-07) 1 commit
- gpg-interface: trim CR from ssh-keygen

The code path that verifies signatures made with ssh were made to work better on a system with CRLF line endings.

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

* jc/qsort-s-alignment-fix (2022-01-07) 2 commits (merged to 'next' on 2022-01-10 at 329fd6e09a)
+ stable-qsort: avoid using potentially unaligned access
+ compat/qsort_s.c: avoid using potentially unaligned access

Fix a hand-rolled alloca() imitation that may have violated alignment requirement of data being sorted in compatibility implementation of qsort_s() and stable qsort().

Will cook in 'next'.
source: <[email protected]>
source: <[email protected]>

* ps/avoid-unnecessary-hook-invocation-with-packed-refs (2022-01-12) 7 commits . fixup! refs: open-code deletion of packed refs
. refs: skip hooks when deleting uncovered packed refs
. refs: do not execute reference-transaction hook on packing refs . refs: demonstrate excessive execution of the reference-transaction hook . refs: allow skipping the reference-transaction hook
. refs: allow passing flags when beginning transactions
. refs: open-code deletion of packed refs

Because a deletion of ref would need to remove it from both the loose ref store and the packed ref store, a delete-ref operation that logically removes one ref may end up invoking ref-transaction hook twice, which has been corrected.

Introduces new leaks when merged to 'seen'.
source: <[email protected]>

* rs/apply-symlinks-use-strset (2022-01-07) 1 commit (merged to 'next' on 2022-01-10 at 32497a67d5)
+ apply: use strsets to track symlinks

"git apply" (ab)used the util pointer of the string-list to keep track of how each symbolic link needs to be handled, which has been simplified by using strset.

Will cook in 'next'.
source: <[email protected]>

* ld/sparse-index-bash-completion (2022-01-10) 3 commits
- sparse-checkout: limit tab completion to a single level
- sparse-checkout: custom tab completion
- sparse-checkout: custom tab completion tests

The command line completion (in contrib/) learns to complete arguments give to "git sparse-checkout" command.
source: <[email protected]>

* bc/clarify-eol-attr (2022-01-12) 2 commits
- docs: correct documentation about eol attribute
- t0027: add tests for eol without text in .gitattributes

Doc and test update around the eol attribute.
source: <[email protected]>

* jz/rev-list-exclude-first-parent-only (2022-01-12) 1 commit
- git-rev-list: add --exclude-first-parent-only flag

"git log" and friends learned an option --exclude-first-parent-only to propagate UNINTERESTING bit down only along the first-parent chain, just like --first-parent option shows commits that lack the UNINTERESTING bit only along the first-parent chain.
source: <[email protected]>

* en/present-despite-skipped (2022-01-14) 6 commits
- 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 (this branch uses vd/sparse-clean-etc.)

(NEEDSWORK: BY DOING WHAT), cope better with files on the working tree that should not exist according to the sparse checkout settings.
source: <[email protected]>

* bc/csprng-mktemps (2022-01-04) 2 commits
- wrapper: use a CSPRNG to generate random file names
- wrapper: add a helper to generate numbers from a CSPRNG

Pick a better random number generator and use it when we prepare temporary filenames.

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

* jc/reflog-parse-options (2022-01-10) 2 commits
(merged to 'next' on 2022-01-12 at 1659e49c4b)
+ builtin/reflog.c: use parse-options api for expire, delete subcommands
+ Merge branch 'ab/reflog-prep' into jc/reflog-parse-options

Use the parse-options API in "git reflog" command.

Will cook in 'next'.
source: <[email protected]>

* vd/sparse-clean-etc (2022-01-13) 9 commits
- update-index: reduce scope of index expansion in do_reupdate
- update-index: integrate with sparse index
- update-index: add tests for sparse-checkout compatibility
- checkout-index: integrate with sparse index
- checkout-index: add --ignore-skip-worktree-bits option
- checkout-index: expand sparse checkout compatibility tests
- clean: integrate with sparse index
- reset: reorder wildcard pathspec conditions
- reset: fix validation in sparse index test
(this branch is used by en/present-despite-skipped.)

"git update-index", "git checkout-index", and "git clean" are taught to work better with the sparse checkout feature.
source: <[email protected]>

* ms/update-index-racy (2022-01-07) 4 commits
(merged to 'next' on 2022-01-14 at 705a33f63b)
+ update-index: refresh should rewrite index in case of racy timestamps
+ t7508: add tests capturing racy timestamp handling
+ t7508: fix bogus mtime verification
+ test-lib: introduce API for verifying file mtime

"git update-index --refresh" has been taught to deal better with racy timestamps (just like "git status" already does).

Will cook in 'next'.
source: <[email protected]>

* jc/find-header (2022-01-06) 1 commit
(merged to 'next' on 2022-01-10 at 8a13b4f0b3)
+ receive-pack.c: consolidate find header logic

Code clean-up.

Will cook in 'next'.
source: <[email protected]>

* jc/name-rev-stdin (2022-01-10) 2 commits
- name-rev.c: use strbuf_getline instead of limited size buffer
- name-rev: deprecate --stdin in favor of --annotate-stdin

"git name-rev --stdin" does not behave like usual "--stdin" at all. Start the process of renaming it to "--annotate-stdin".

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

* en/remerge-diff (2021-12-30) 10 commits
- merge-ort: mark conflict/warning messages from inner merges as omittable
- show, log: include conflict/warning messages in --remerge-diff headers
- diff: add ability to insert additional headers for paths
- merge-ort: format messages slightly different for use in headers
- merge-ort: mark a few more conflict messages as omittable
- merge-ort: capture and print ll-merge warnings in our preferred fashion
- ll-merge: make callers responsible for showing warnings
- log: clean unneeded objects during log --remerge-diff
- show, log: provide a --remerge-diff capability
- Merge branch 'ns/tmp-objdir' into en/remerge-diff

"git log --remerge-diff" shows the difference from mechanical merge result and the merge result that is actually recorded.

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

* bs/forbid-i18n-of-protocol-token-in-fetch-pack (2021-12-22) 2 commits
- fixup! fetch-pack: parameterize message containing 'ready' keyword
- fetch-pack: parameterize message containing 'ready' keyword

L10n support for a few error messages.

Expecting an ack for fixup.
source: <[email protected]>

* gc/branch-recurse-submodules (2022-01-10) 6 commits
- branch: add --recurse-submodules option for branch creation
- builtin/branch: clean up action-picking logic in cmd_branch()
- branch: add a dry_run parameter to create_branch()
- branch: make create_branch() always create a branch
- branch: move --set-upstream-to behavior to dwim_and_setup_tracking()
- Merge branch 'js/branch-track-inherit' into gc/branch-recurse-submodules

"git branch" learned the "--recurse-submodules" option.

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

* hn/reftable-coverity-fixes (2021-12-22) 18 commits
- reftable: be more paranoid about 0-length memcpy calls
- reftable: add print functions to the record types
- reftable: make reftable_record a tagged union
- reftable: remove outdated file reftable.c
- reftable: implement record equality generically
- reftable: make reftable-record.h function signatures const correct
- reftable: handle null refnames in reftable_ref_record_equal
- reftable: drop stray printf in readwrite_test
- reftable: order unittests by complexity
- reftable: all xxx_free() functions accept NULL arguments
- reftable: fix resource warning
- reftable: ignore remove() return value in stack_test.c
- reftable: check reftable_stack_auto_compact() return value
- reftable: fix resource leak blocksource.c
- reftable: fix resource leak in block.c error path
- reftable: fix OOB stack write in print functions
- Merge branch 'hn/create-reflog-simplify' into hn/reftable-coverity-fixes
- Merge branch 'hn/reftable' into hn/reftable-coverity-fixes

Problems identified by Coverity in the reftable code have been corrected.

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

* tb/midx-bitmap-corruption-fix (2022-01-04) 9 commits
- pack-bitmap.c: gracefully fallback after opening pack/MIDX
- midx: read RIDX chunk when present
- t/lib-bitmap.sh: parameterize tests over reverse index source
- t5326: move tests to t/lib-bitmap.sh
- t5326: extract test_rev_exists
- t5326: drop unnecessary setup
- pack-revindex.c: instrument loading on-disk reverse index
- midx.c: make changing the preferred pack safe
- t5326: demonstrate bitmap corruption after permutation

A bug that made multi-pack bitmap and the object order out-of-sync (hence the .midx data gets corrupted) has been fixed.

Waiting for a hopefully final review.
cf. <Ydceeo33Yt4N%[email protected]>
source: <[email protected]>

* pw/fix-some-issues-in-reset-head (2021-12-08) 14 commits
- rebase -m: don't fork git checkout
- rebase --apply: set ORIG_HEAD correctly
- rebase --apply: fix reflog
- reset_head(): take struct rebase_head_opts
- rebase: cleanup reset_head() calls
- reset_head(): make default_reflog_action optional
- reset_head(): factor out ref updates
- create_autostash(): remove unneeded parameter
- reset_head(): remove action parameter
- rebase --apply: don't run post-checkout hook if there is an error
- rebase: do not remove untracked files on checkout
- rebase: pass correct arguments to post-checkout hook
- t5403: refactor rebase post-checkout hook tests
- rebase: factor out checkout for up to date branch

Fix "some issues" in a helper function reset_head().

Expecting a reroll.
cf. <[email protected]>
cf. <[email protected]>
cf. <[email protected]>
cf. <[email protected]>
cf. <CABPp-BEHW4VLG18twcM_8iOco1jZ2iuGT+KN8aS+-sAAnBhTnw@mail.gmail.com>
source: <[email protected]>

* ab/cat-file (2022-01-12) 12 commits
(merged to 'next' on 2022-01-12 at ee4d43041d)
+ cat-file: s/_/-/ in typo'd usage_msg_optf() message
+ cat-file: don't whitespace-pad "(...)" in SYNOPSIS and usage output (merged to 'next' on 2022-01-05 at e145efa605)
+ cat-file: use GET_OID_ONLY_TO_DIE in --(textconv|filters)
+ object-name.c: don't have GET_OID_ONLY_TO_DIE imply *_QUIETLY
+ cat-file: correct and improve usage information
+ cat-file: fix remaining usage bugs
+ cat-file: make --batch-all-objects a CMDMODE
+ cat-file: move "usage" variable to cmd_cat_file()
+ cat-file docs: fix SYNOPSIS and "-h" output
+ parse-options API: add a usage_msg_optf()
+ cat-file tests: test messaging on bad objects/paths
+ cat-file tests: test bad usage

Assorted updates to "git cat-file", especially "-h".

Will cook in 'next'.
source: <[email protected]>
source: <[email protected]>

* ab/grep-patterntype (2021-12-27) 7 commits
- grep API: call grep_config() after grep_init()
- grep.c: don't pass along NULL callback value
- built-ins: trust the "prefix" from run_builtin()
- fixup! grep tests: add missing "grep.patternType" config tests
- grep tests: add missing "grep.patternType" config tests
- log tests: check if grep_config() is called by "log"-like cmds
- grep.h: remove unused "regex_t regexp" from grep_opt

Some code clean-up in the "git grep" machinery.

Reroll exists.
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.
There are known breakages on macOS.
cf. <[email protected]>
source: <[email protected]>

* jt/conditional-config-on-remote-url (2021-12-15) 2 commits
- config: include file if remote URL matches a glob
- config: make git_config_include() static

The conditional inclusion mechanism of configuration files using "[includeIf <condition>]" learns to base its decision on the URL of the remote repository the repository interacts with.

How does this one look these days?
source: <[email protected]>

* ab/ambiguous-object-name (2022-01-13) 6 commits
- object-name: re-use "struct strbuf" in show_ambiguous_object()
- object-name: iterate ambiguous objects before showing header
- object-name: show date for ambiguous tag objects
- object-name: make ambiguous object output translatable
- object-name: explicitly handle OBJ_BAD in show_ambiguous_object()
- object-name tests: add tests for ambiguous object blind spots

Error output given in response to an ambiguous object name has been improved.
source: <[email protected]>

* tl/ls-tree-oid-only (2022-01-13) 9 commits
- ls-tree.c: introduce "--format" option
- cocci: allow padding with strbuf_addf()
- ls-tree.c: introduce struct "show_tree_data"
- ls-tree.c: support --object-only option for "git-ls-tree"
- ls-tree: optimize naming and handling of "return" 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]>

* ab/config-based-hooks-2 (2022-01-07) 17 commits
- run-command: remove old run_hook_{le,ve}() hook API
- receive-pack: convert push-to-checkout hook to hook.h
- read-cache: convert post-index-change to use hook.h
- commit: convert {pre-commit,prepare-commit-msg} hook to hook.h
- git-p4: use 'git hook' to run hooks
- send-email: use 'git hook run' for 'sendemail-validate'
- git hook run: add an --ignore-missing flag
- hooks: convert worktree 'post-checkout' hook to hook library
- hooks: convert non-worktree 'post-checkout' hook to hook library
- merge: convert post-merge to use hook.h
- am: convert applypatch-msg to use hook.h
- rebase: convert pre-rebase to use hook.h
- hook API: add a run_hooks_l() wrapper
- am: convert {pre,post}-applypatch to use hook.h
- gc: use hook library for pre-auto-gc hook
- hook API: add a run_hooks() wrapper
- hook: add 'run' subcommand

More "config-based hooks".

Will merge to 'next', with minor nits?
source: <[email protected]>

* jh/builtin-fsmonitor-part2 (2021-12-25) 31 commits
- fixup! t7527: create test for fsmonitor--daemon
- fixup! t/perf/p7519: speed up test on Windows
- 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

Built-in fsmonitor (part 2).

Expecting a reroll.
Seems that the discussion stalled.
cf. <[email protected]>
source: <[email protected]>

* es/superproject-aware-submodules (2021-11-18) 5 commits
- submodule: use config to find superproject worktree
- submodule: record superproject gitdir during 'update'
- submodule: record superproject gitdir during absorbgitdirs
- introduce submodule.superprojectGitDir record
- t7400-submodule-basic: modernize inspect() helper

A configuration variable in a submodule points at the location of the superproject it is bound to (RFC).

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

* ab/only-single-progress-at-once (2022-01-07) 7 commits
- *.c: use isatty(0|2), not isatty(STDIN_FILENO|STDERR_FILENO)
- pack-bitmap-write.c: don't return without stop_progress()
- progress.c: add temporary variable from progress struct
- progress.c tests: test some invalid usage
- progress.c tests: make start/stop commands on stdin
- progress.c test helper: add missing braces
- leak tests: fix a memory leak in "test-progress" helper

Further tweaks on progress API.

Getting there.
source: <[email protected]>

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

* ms/customizable-ident-expansion (2021-12-25) 2 commits . fixup! keyword expansion: make "$Id$" string configurable . keyword expansion: make "$Id$" string configurable

Instead of "$Id$", user-specified string (like $FreeBSD$) can be used as an in-blob placeholder for keyword expansion.

Will discard.
Stalled for too long.
cf. <[email protected]>
cf. <[email protected]>
source: <[email protected]>

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

Instead of leaving unreachable objects in loose form when packing, or ejecting them into loose form when repacking, gather them in a packfile with an auxiliary file that records the last-use time of these objects.

Dropped per author request.
cf. <[email protected]>
cf. <[email protected]> cf. <[email protected]> cf. <[email protected]>
source: <[email protected]>

#1 lore raw
Quoted 10 lines · Junio C Hamano

* en/present-despite-skipped (2022-01-14) 6 commits
- 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 (this branch uses vd/sparse-clean-etc.)

Quoted 4 lines

(NEEDSWORK: BY DOING WHAT), cope better with files on the working tree that should not exist according to the sparse checkout settings.
source: <[email protected]>

Perhaps:

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.

#2 lore raw
Quoted 16 lines · Elijah Newren
Quoted 10 lines · Junio C Hamano

* en/present-despite-skipped (2022-01-14) 6 commits
- 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 (this branch uses vd/sparse-clean-etc.)

Quoted 4 lines

(NEEDSWORK: BY DOING WHAT), cope better with files on the working tree that should not exist according to the sparse checkout settings.
source: <[email protected]>

Quoted 6 lines

Perhaps:

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.

Thanks.

#3 lore raw

ab/grep-patterntype (was: What's cooking in git.git (Jan 2022, #04; Fri, 14))

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

* ab/grep-patterntype (2021-12-27) 7 commits
- grep API: call grep_config() after grep_init()
- grep.c: don't pass along NULL callback value
- built-ins: trust the "prefix" from run_builtin()
- fixup! grep tests: add missing "grep.patternType" config tests
- grep tests: add missing "grep.patternType" config tests
- log tests: check if grep_config() is called by "log"-like cmds
- grep.h: remove unused "regex_t regexp" from grep_opt

Quoted 4 lines

Some code clean-up in the "git grep" machinery.

Reroll exists.
source: <[email protected]>

That v7 you hadn't picked up had a merge conflict with "master", which I submitted a v8 for just now:
https://lore.kernel.org/git/[email protected]/

Obviously not for v2.35.0, but submitting it now anyway in case queuing it helps to have topics ready for the post-release. I think in its current form it should be ready to merge down in one of the first batches post-release.

#4 lore raw

ab/config-based-hooks-2 (was: What's cooking in git.git (Jan 2022, #04; Fri, 14))

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

* ab/config-based-hooks-2 (2022-01-07) 17 commits
- run-command: remove old run_hook_{le,ve}() hook API
- receive-pack: convert push-to-checkout hook to hook.h
- read-cache: convert post-index-change to use hook.h
- commit: convert {pre-commit,prepare-commit-msg} hook to hook.h
- git-p4: use 'git hook' to run hooks
- send-email: use 'git hook run' for 'sendemail-validate'
- git hook run: add an --ignore-missing flag
- hooks: convert worktree 'post-checkout' hook to hook library
- hooks: convert non-worktree 'post-checkout' hook to hook library
- merge: convert post-merge to use hook.h
- am: convert applypatch-msg to use hook.h
- rebase: convert pre-rebase to use hook.h
- hook API: add a run_hooks_l() wrapper
- am: convert {pre,post}-applypatch to use hook.h
- gc: use hook library for pre-auto-gc hook
- hook API: add a run_hooks() wrapper
- hook: add 'run' subcommand

Quoted 4 lines

More "config-based hooks".

Will merge to 'next', with minor nits?
source: <[email protected]>

I'd really like that, if you're OK with it.

I.e. I could re-roll it, but those comments are relatively minor, and in any case will be addressed eventually by subsequent to-be-submitted parts of the hook.[ch] API conversion.

So unless Emily or Glen have strong objections I think it makes sense to mark it for 'next'. Thanks!

#5 lore raw

Re: ab/config-based-hooks-2 (was: What's cooking in git.git (Jan 2022, #04; Fri, 14))

Quoted 26 lines · Ævar Arnfjörð Bjarmason
Quoted 19 lines · Junio C Hamano

* ab/config-based-hooks-2 (2022-01-07) 17 commits
- run-command: remove old run_hook_{le,ve}() hook API
- receive-pack: convert push-to-checkout hook to hook.h
- read-cache: convert post-index-change to use hook.h
- commit: convert {pre-commit,prepare-commit-msg} hook to hook.h
- git-p4: use 'git hook' to run hooks
- send-email: use 'git hook run' for 'sendemail-validate'
- git hook run: add an --ignore-missing flag
- hooks: convert worktree 'post-checkout' hook to hook library
- hooks: convert non-worktree 'post-checkout' hook to hook library
- merge: convert post-merge to use hook.h
- am: convert applypatch-msg to use hook.h
- rebase: convert pre-rebase to use hook.h
- hook API: add a run_hooks_l() wrapper
- am: convert {pre,post}-applypatch to use hook.h
- gc: use hook library for pre-auto-gc hook
- hook API: add a run_hooks() wrapper
- hook: add 'run' subcommand

Quoted 4 lines

More "config-based hooks".

Will merge to 'next', with minor nits?
source: <[email protected]>

Quoted 8 lines

I'd really like that, if you're OK with it.

I.e. I could re-roll it, but those comments are relatively minor, and in any case will be addressed eventually by subsequent to-be-submitted parts of the hook.[ch] API conversion.

So unless Emily or Glen have strong objections I think it makes sense to mark it for 'next'. Thanks!

No strong objections from me :) The minor comments can be cleaned up, and some might presumably become obsolete later?

#6 lore raw

Re: ab/config-based-hooks-2 (was: What's cooking in git.git (Jan 2022, #04; Fri, 14))

Quoted 35 lines · Glen Choo
Quoted 32 lines · Ævar Arnfjörð Bjarmason
Quoted 19 lines · Junio C Hamano

* ab/config-based-hooks-2 (2022-01-07) 17 commits
- run-command: remove old run_hook_{le,ve}() hook API
- receive-pack: convert push-to-checkout hook to hook.h
- read-cache: convert post-index-change to use hook.h
- commit: convert {pre-commit,prepare-commit-msg} hook to hook.h
- git-p4: use 'git hook' to run hooks
- send-email: use 'git hook run' for 'sendemail-validate'
- git hook run: add an --ignore-missing flag
- hooks: convert worktree 'post-checkout' hook to hook library
- hooks: convert non-worktree 'post-checkout' hook to hook library
- merge: convert post-merge to use hook.h
- am: convert applypatch-msg to use hook.h
- rebase: convert pre-rebase to use hook.h
- hook API: add a run_hooks_l() wrapper
- am: convert {pre,post}-applypatch to use hook.h
- gc: use hook library for pre-auto-gc hook
- hook API: add a run_hooks() wrapper
- hook: add 'run' subcommand

Quoted 4 lines

More "config-based hooks".

Will merge to 'next', with minor nits?
source: <[email protected]>

I'd really like that, if you're OK with it.

I.e. I could re-roll it, but those comments are relatively minor, and in any case will be addressed eventually by subsequent to-be-submitted parts of the hook.[ch] API conversion.

Quoted 5 lines
Quoted 2 lines

So unless Emily or Glen have strong objections I think it makes sense to mark it for 'next'. Thanks!

No strong objections from me :) The minor comments can be cleaned up, and some might presumably become obsolete later?

No objections from me either. Thanks.

#7 lore raw

Re: ab/config-based-hooks-2

In reply to Ævar Arnfjörð Bjarmason
Quoted 21 lines · Ævar Arnfjörð Bjarmason
Quoted 19 lines · Junio C Hamano

* ab/config-based-hooks-2 (2022-01-07) 17 commits
- run-command: remove old run_hook_{le,ve}() hook API
- receive-pack: convert push-to-checkout hook to hook.h
- read-cache: convert post-index-change to use hook.h
- commit: convert {pre-commit,prepare-commit-msg} hook to hook.h
- git-p4: use 'git hook' to run hooks
- send-email: use 'git hook run' for 'sendemail-validate'
- git hook run: add an --ignore-missing flag
- hooks: convert worktree 'post-checkout' hook to hook library
- hooks: convert non-worktree 'post-checkout' hook to hook library
- merge: convert post-merge to use hook.h
- am: convert applypatch-msg to use hook.h
- rebase: convert pre-rebase to use hook.h
- hook API: add a run_hooks_l() wrapper
- am: convert {pre,post}-applypatch to use hook.h
- gc: use hook library for pre-auto-gc hook
- hook API: add a run_hooks() wrapper
- hook: add 'run' subcommand

Quoted 6 lines
Quoted 4 lines

More "config-based hooks".

Will merge to 'next', with minor nits?
source: <[email protected]>

I'd really like that, if you're OK with it.

Obviously I am not ready to say I am OK (or not OK for that matter), and that is why I was soliciting comments by the reviewers whose comments were ignored.

And knowing how proliferate you can be when you want to, adjusting patches for reviews you received and testing the result thoroughly would be much better use of time (include the time already spent by reviewers to comment on the previous iteration), no?

#8 lore raw

ds/sparse-checkout-requires-per-worktree-config (was Re: What's cooking in git.git (Jan 2022, #04; Fri, 14))

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

* ds/sparse-checkout-requires-per-worktree-config (2022-01-14) 6 commits
- worktree: copy sparse-checkout patterns and config on add
- sparse-checkout: use repo_config_set_worktree_gently()
- config: add repo_config_set_worktree_gently()
- worktree: add 'init-worktree-config' subcommand
- config: make some helpers repo-aware
- setup: use a repository when upgrading format

Quoted 6 lines

"git sparse-checkout" wants to work with per-worktree configration, but did not work well in a worktree attached to a bare repository.

Expecting an update.
cf. <[email protected]>
source: <[email protected]>

Sorry for the delay. I've spent the last two weeks with my family under quarantine for COVID.

I will update this topic this week.

Thanks,
-Stolee

#9 lore raw

Re: ds/sparse-checkout-requires-per-worktree-config (was Re: What's cooking in git.git (Jan 2022, #04; Fri, 14))

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

* ds/sparse-checkout-requires-per-worktree-config (2022-01-14) 6 commits
- worktree: copy sparse-checkout patterns and config on add
- sparse-checkout: use repo_config_set_worktree_gently()
- config: add repo_config_set_worktree_gently()
- worktree: add 'init-worktree-config' subcommand
- config: make some helpers repo-aware
- setup: use a repository when upgrading format

Quoted 6 lines

"git sparse-checkout" wants to work with per-worktree configration, but did not work well in a worktree attached to a bare repository.

Expecting an update.
cf. <[email protected]>
source: <[email protected]>

Quoted 4 lines

Sorry for the delay. I've spent the last two weeks with my family under quarantine for COVID.

I will update this topic this week.

Sorry to hear that. I hope everybody is not hurt too badly.

Take your time, be safe and be well.

Thanks.

#10 lore raw

ar/submodule-update (was Re: What's cooking in git.git (Jan 2022, #04; Fri, 14))

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

* ar/submodule-update (2021-10-13) 9 commits
. submodule--helper: rename helper functions
. submodule--helper: remove unused helpers
. submodule: move core cmd_update() logic to C
. submodule--helper: run update using child process struct . submodule--helper: allow setting superprefix for init_submodule() . submodule--helper: refactor get_submodule_displaypath() . submodule--helper: rename helpers for update-clone
. submodule--helper: get remote names from any repository . submodule--helper: split up ensure_core_worktree()

Quoted 5 lines

Rewrite of "git submodule update" in C.

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

How close are we to getting this into 'next'? Last I checked, it seemed like the only remaining piece is to rebase this onto es/superproject-aware-submodules.

I have some planned work that will teach "git fetch" how to clone newly added submodules (this is the issue described in the BUGS section of Documentation/git-fetch.txt). That work will probably use the same machinery as git submodule update, so I'm wondering whether it's better to base this new work off ar/submodule-update or master.

#11 lore raw

Re: ar/submodule-update (was Re: What's cooking in git.git (Jan 2022, #04; Fri, 14))

Quoted 15 lines · Glen Choo
Quoted 13 lines · Junio C Hamano

* ar/submodule-update (2021-10-13) 9 commits
. submodule--helper: rename helper functions
. submodule--helper: remove unused helpers
. submodule: move core cmd_update() logic to C
. submodule--helper: run update using child process struct . submodule--helper: allow setting superprefix for init_submodule() . submodule--helper: refactor get_submodule_displaypath() . submodule--helper: rename helpers for update-clone
. submodule--helper: get remote names from any repository . submodule--helper: split up ensure_core_worktree()

Rewrite of "git submodule update" in C.

Quoted 7 lines
Quoted 3 lines

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

How close are we to getting this into 'next'? Last I checked, it seemed like the only remaining piece is to rebase this onto es/superproject-aware-submodules.

Unless we have a new version of, a new review or a new ack on any topic since we tagged -rc0, there should be anything to make them any closer to 'next'.

In any case, a rebased version would not come from me, so I think the message I am responding to has To: and Cc: addresses mixed up.

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

* pw/add-p-hunk-split-fix (2022-01-12) 2 commits
- builtin add -p: fix hunk splitting
- t3701: clean up hunk splitting tests

"git add -p" rewritten in C regressed hunk splitting in some cases, which has been corrected.

Will merge to 'next'?

I think so, Ævar did had some suggestions but said he was happy enough with the patches as they are and neither you nor I were keen his suggested changes. c.f. <[email protected]>

Best Wishes

Phillip