(ref: WorkingTreeRef, mergeBaseSha: string)
| 235 | } |
| 236 | |
| 237 | function workingTreeDiffArgs(ref: WorkingTreeRef, mergeBaseSha: string): string[] { |
| 238 | switch (ref) { |
| 239 | case WORKING_TREE_REF.UNSTAGED: |
| 240 | return []; |
| 241 | case WORKING_TREE_REF.STAGED: |
| 242 | return ["--cached"]; |
| 243 | case WORKING_TREE_REF.WORK: |
| 244 | return [mergeBaseSha]; |
| 245 | } |
| 246 | } |
| 247 | |
| 248 | function includesUntrackedFiles(ref: WorkingTreeRef): boolean { |
| 249 | return ref === WORKING_TREE_REF.WORK; |
no outgoing calls
no test coverage detected