(filePath: string)
| 62 | } |
| 63 | |
| 64 | async function getAddingCommit(filePath: string) { |
| 65 | try { |
| 66 | const { stdout } = await exec( |
| 67 | `git log --diff-filter=A --follow --format=%h -- "${filePath}"`, |
| 68 | ); |
| 69 | return stdout.trim() || null; |
| 70 | } catch { |
| 71 | return null; |
| 72 | } |
| 73 | } |
no test coverage detected