* Check if current directory is a git repository
()
| 14 | * Check if current directory is a git repository |
| 15 | */ |
| 16 | function isGitRepo(): boolean { |
| 17 | try { |
| 18 | execSync("git rev-parse --is-inside-work-tree", { stdio: "ignore" }); |
| 19 | return true; |
| 20 | } catch { |
| 21 | return false; |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | /** |
| 26 | * Get git status |
no outgoing calls
no test coverage detected