| 1282 | } |
| 1283 | |
| 1284 | fn json_status_name(status: FileStatus) -> &'static str { |
| 1285 | match status { |
| 1286 | FileStatus::Clean => "clean", |
| 1287 | FileStatus::Modified => "modified", |
| 1288 | FileStatus::Deleted => "deleted", |
| 1289 | FileStatus::Untracked => "untracked", |
| 1290 | FileStatus::Added => "added", |
| 1291 | FileStatus::PendingUntrack => "pending_untrack", |
| 1292 | FileStatus::Conflicted => "conflicted", |
| 1293 | FileStatus::TypeChanged => "type_changed", |
| 1294 | FileStatus::PermissionsChanged => "permissions_changed", |
| 1295 | } |
| 1296 | } |
| 1297 | |
| 1298 | // Helper Types |
| 1299 | |