Repository navigation
insights: the scan reads each repo's history once, and four steps no reader uses are off unless switched on - #39
Merged
Conversation
…reader uses are off unless switched on Kit-Commit: 02e3daf968a8757bf3d5be58f19b92b27f45b7e1 Kit-Only: plugins/insights
Merged
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.
Before and after:
git log -- <path>once per file, each call walking the whole history. On a laptop with many repositories that was the larger part of the scan.git log --name-only, plus one more call for its merge commits), and every file's answer is taken from that read. The answer is the onegit log -- <path>gives, merges and history simplification included. A path git would read as a pattern, a repository with no commits or too many, or a failed call goes to git one path at a time, as before. The commit check asks git in batches per repository and skips session logs that cannot hold a commit call. The inventory walks each folder once, and the launcher scan skips a script that names no launch word without decoding it.AGENTIC_SETUP_WORKTREE_SIZES,AGENTIC_SETUP_WORKTREE_DIRTY,AGENTIC_SETUP_WORKTREE_MERGED), and the git ignore check on a file with no commits (AGENTIC_SETUP_IGNORE_CHECK). Set a variable to1to run that step again. Their fields stay in the output as empty (or absent). Nothing is deleted.Limits: the whole-history read is used for a repository asked about 8 times or more; for fewer files one call each is cheaper and stays. Time limits for that read come in the last pull request of this stack.
Test:
cd plugins/insights/scripts/v15/engine/variants/views && uv run --no-project python -m unittest test_view_built test_view_mylevel test_counts(45 tests, OK)claude plugin validate .passes with the warnings it already gave.The new read has tests in the sources this repository is published from, comparing its answer with
git log -- <path>on repositories with renames, spaces and non-ASCII names, quoted names, merges, random histories, linked worktrees and no commits; they pass and are not shipped here.One change. I did not edit a version, a
CHANGELOG.md,marketplace.jsonorkit.json.Nothing personal: no names, no paths from my machine, no output of my own scan, no secrets.
No version change: nothing reaches members until a release.