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

Function entry_json

atomic-cli/src/commands/status_git.rs:330–341  ·  view source on GitHub ↗
(entry: &StagingEntry)

Source from the content-addressed store, hash-verified

328}
329
330fn entry_json(entry: &StagingEntry) -> serde_json::Value {
331 serde_json::json!({
332 "path": quote_path(entry.path.as_bytes()),
333 "x": stage_code_string(entry.x),
334 "y": stage_code_string(entry.y),
335 "durable_tracked": entry.durable_tracked,
336 "intent_to_add": entry.intent_to_add,
337 "skip_worktree": entry.skip_worktree,
338 "assume_unchanged": entry.assume_unchanged,
339 "unmerged": entry.unmerged,
340 })
341}
342
343fn git_status_json(
344 staging: &StagingState,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected