(ref: WorkingTreeRef, mergeBaseSha: string)
| 250 | } |
| 251 | |
| 252 | function buildWorkingTreeDiff(ref: WorkingTreeRef, mergeBaseSha: string): string { |
| 253 | let rawDiff = getRawDiff(workingTreeDiffArgs(ref, mergeBaseSha)); |
| 254 | if (includesUntrackedFiles(ref)) { |
| 255 | const untrackedFiles = getUntrackedFiles(); |
| 256 | if (untrackedFiles.length > 0) { |
| 257 | const untrackedDiff = getUntrackedDiff(untrackedFiles); |
| 258 | if (untrackedDiff) { |
| 259 | rawDiff = rawDiff ? `${rawDiff}\n${untrackedDiff}` : untrackedDiff; |
| 260 | } |
| 261 | } |
| 262 | } |
| 263 | return rawDiff; |
| 264 | } |
| 265 | |
| 266 | function resolveRefToSha(ref: string): string { |
| 267 | return execFileSync("git", ["rev-parse", "--verify", ref], { |
no test coverage detected