* Get the relative path from git root to dir
(dir: string)
| 159 | * Get the relative path from git root to dir |
| 160 | */ |
| 161 | async function getGitRelativePath(dir: string): Promise<string> { |
| 162 | const result = await execCmd("git", ["rev-parse", "--show-prefix"], dir) |
| 163 | return result.success ? result.stdout.trim().replace(/\/$/, "") : "" |
| 164 | } |
| 165 | |
| 166 | /** |
| 167 | * List files using git ls-files |
no test coverage detected