(code: string)
| 91 | } |
| 92 | |
| 93 | const kind = (code: string): Kind => { |
| 94 | if (code === "??") return "added" |
| 95 | if (code.includes("U")) return "modified" |
| 96 | if (code.includes("A") && !code.includes("D")) return "added" |
| 97 | if (code.includes("D") && !code.includes("A")) return "deleted" |
| 98 | return "modified" |
| 99 | } |
| 100 | |
| 101 | export class Service extends Context.Service<Service, Interface>()("@opencode/Git") {} |
| 102 |