Repository navigation
gc --remove: remove copies with a submodule and copies with status noise only - #28
Merged
Merged
Conversation
…от форматтера без отличий от HEAD
|
VERDICT: rework
|
…от форматтера без отличий от HEAD
Owner
Author
|
+1 from another project: ×0 in 0 task(s). Sent by |
|
VERDICT: rework
|
Owner
Author
|
Rework adeb6ce: |
|
VERDICT: accept
|
This was referenced Nov 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Friction — after a module was merged,
gc --removeleft every copy in place:git worktree removerefuses it without--force(working trees containing submodules cannot be moved or removed);dirty copy.Seen once in one project: 5 of 5 copies of a merged module were skipped; removed by hand.
Change (
remove_copy)git diff --quiet HEADreports a difference (any non-zero exit, incl. errors, counts as dirty);git status --porcelainand commits on no remote (rev-list --branches HEAD --not --remotes) in every initialized submodule block removal — the submodule repository is deleted with the copy; an uninitialized submodule has no checkout, so no work to lose;worktree remove --forcealways.Review rework
tools/metrics.py --checkpasses (force22); full suite 209 OK; VERSION 36, CHANGELOG line.Sent by
dpcli contribute. Anonymized: no project names, paths or quotes.