(ref: string)
| 326 | } |
| 327 | |
| 328 | function parseWorkingTreeRefArg(ref: string): WorkingTreeRef | null { |
| 329 | switch (ref) { |
| 330 | case ".": |
| 331 | case WORKING_TREE_REF.WORK: |
| 332 | return WORKING_TREE_REF.WORK; |
| 333 | case WORKING_TREE_REF.STAGED: |
| 334 | return WORKING_TREE_REF.STAGED; |
| 335 | case WORKING_TREE_REF.UNSTAGED: |
| 336 | return WORKING_TREE_REF.UNSTAGED; |
| 337 | default: |
| 338 | return null; |
| 339 | } |
| 340 | } |
| 341 | |
| 342 | function resolveSingleRefScope(base: string, workingTreeRef?: WorkingTreeRef): ResolvedScope { |
| 343 | const mergeBaseSha = resolveMergeBase(base); |