-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathskip-flags.ts
More file actions
39 lines (36 loc) · 966 Bytes
/
skip-flags.ts
File metadata and controls
39 lines (36 loc) · 966 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
export type SkipFlag =
// Common across commands
| "detached-head"
| "wrong-branch"
| "base-merged-into-default"
| "already-merged"
| "merged-new-work"
| "fetch-failed"
| "dirty"
| "operation-in-progress"
// Push-specific
| "no-commits"
| "behind-remote"
| "diverged"
// Pull-specific
| "no-share"
| "remote-gone"
| "rebased-locally"
// Integrate-specific
| "no-base-branch"
| "no-base-remote"
| "retarget-target-not-found"
| "retarget-base-not-found"
| "retarget-no-default"
| "retarget-same-base"
// Extract-specific
| "extract-target-exists"
| "below-merge-point";
export const BENIGN_SKIPS: ReadonlySet<SkipFlag> = new Set([
"already-merged",
"no-commits",
"no-share",
"no-base-branch",
]);
export const RETARGET_EXEMPT_SKIPS: ReadonlySet<SkipFlag> = new Set(["no-base-branch", "retarget-target-not-found"]);
export const EXTRACT_EXEMPT_SKIPS: ReadonlySet<SkipFlag> = new Set(["no-base-branch"]);