(p: string)
| 277 | } |
| 278 | |
| 279 | function normalizePath(p: string): string { |
| 280 | // Drop leading './' and trailing '/'. |
| 281 | let out = p; |
| 282 | if (out.startsWith("./")) out = out.slice(2); |
| 283 | while (out.endsWith("/")) out = out.slice(0, -1); |
| 284 | return out; |
| 285 | } |
| 286 | |
| 287 | async function readBlobAsText( |
| 288 | git: IsomorphicGitDiffClient, |