MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / status_options_proto

Function status_options_proto

atomic-cli/src/commands/rpc.rs:229–241  ·  view source on GitHub ↗

`atomic status` over Status — including `--json`: the IDE contract (schema_version, repository_root, entries) renders client-side from the wire's file entries, and `--reindex` composes the wire's Repair(ReindexWorkingCopy) before the status read. Only `--debug-ignore` stays local: it reads ignore files (`.atomicignore` plus the user's global ignore list) without touching the repository databases,

(options: &atomic_repository::status::StatusOptions)

Source from the content-addressed store, hash-verified

227/// ride the wire too (the parity the fixed handler options could never
228/// give).
229fn status_options_proto(options: &atomic_repository::status::StatusOptions) -> pb::StatusOptions {
230 pb::StatusOptions {
231 include_untracked: Some(options.include_untracked),
232 include_ignored: Some(options.include_ignored),
233 respect_ignore_files: Some(options.respect_ignore_files),
234 hash_contents: Some(options.hash_contents),
235 path_filters: options
236 .path_filters
237 .iter()
238 .map(|p| p.display().to_string())
239 .collect(),
240 }
241}
242
243pub fn status(args: &super::status::Status) -> CliResult<bool> {
244 if args.debug_ignore || args.no_reconcile || args.git {

Callers 1

statusFunction · 0.85

Calls 3

displayMethod · 0.80
collectMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected