(entry: &StagingEntry)
| 328 | } |
| 329 | |
| 330 | fn 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 | |
| 343 | fn git_status_json( |
| 344 | staging: &StagingState, |
nothing calls this directly
no outgoing calls
no test coverage detected