Repository navigation
feat(repo): repo fetch --json prints the pinned sha as JSON - #8
Closed
vchamarthi wants to merge 1 commit into
Closed
vchamarthi wants to merge 1 commit into
vchamarthi wants to merge 1 commit into
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This was referenced Oct 21, 2026
Owner
Author
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.
Summary
dokimi repo fetchprints<sha>\t<git_dir>. A script has to split a tab-separated line to get the pinned commit.--jsonprints{"sha", "git_dir"}instead, the same flagrepo validate,scanandinspectalready take. The default output is unchanged.Evidence
5c70cbf90f4eab95b30dcd6ad7ae60a4f37de268run.shunderexperiment_safe.py(macOS sandbox):python3.14 -m pytest tests/test_repo_manifest.py -k repo_fetch_cli, andtests/test_docs_code_refs.pytest_repo_fetch_cli_jsonfailed withdokimi: error: unrecognized arguments: --json.test_repo_fetch_cli_jsonpasses. It checks the JSON keys and that the default line is still<sha>\t<git_dir>.tests/test_docs_code_refs.py: 31 passed.test_repo_fetch_clicould not run in the sandbox (git cannot open /dev/null there), so it was not re-run. The new test stubsopen_source, so it does not clone.make ci-localwas not run. No live fetch.Blast radius
cmd_repo_fetchand thefetchparser indokimi/dokimi/commands/repo.py, one new test, one line inrepo-evaluation-contract.md, and one changelog fragment. Without--jsonthe output is byte-for-byte the same.Overlap
repo budget. It does not touchrepo fetch.repo fetch.repo fetch.repo fetch.repo fetch.repo fetch.repo fetch.repo fetch.--delegationand an execution id. It does not touchrepo fetch.repo fetch.Created with claude-sonnet-5-5.