@cvr/stacked 0.4.2 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/stacked +0 -0
- package/package.json +1 -1
- package/src/commands/sync.ts +13 -13
package/bin/stacked
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/src/commands/sync.ts
CHANGED
|
@@ -116,21 +116,21 @@ export const sync = Command.make("sync", {
|
|
|
116
116
|
return;
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
yield*
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
Effect.
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
119
|
+
yield* Effect.gen(function* () {
|
|
120
|
+
yield* withSpinner(`Fetching ${trunk}`, git.fetch());
|
|
121
|
+
yield* git.checkout(trunk);
|
|
122
|
+
yield* withSpinner(`Rebasing ${trunk} onto ${originTrunk}`, git.rebase(originTrunk)).pipe(
|
|
123
|
+
Effect.catchTag("GitError", (e) =>
|
|
124
|
+
Effect.fail(
|
|
125
|
+
new StackError({
|
|
126
|
+
code: ErrorCode.REBASE_CONFLICT,
|
|
127
|
+
message: `Rebase conflict on ${trunk}: ${e.message}\n\nResolve conflicts, then run:\n git rebase --continue`,
|
|
128
|
+
}),
|
|
129
|
+
),
|
|
128
130
|
),
|
|
129
|
-
)
|
|
130
|
-
|
|
131
|
-
results.push({ name: trunk, action: "rebased", base: originTrunk });
|
|
131
|
+
);
|
|
132
|
+
results.push({ name: trunk, action: "rebased", base: originTrunk });
|
|
132
133
|
|
|
133
|
-
yield* Effect.gen(function* () {
|
|
134
134
|
for (let i = startIdx; i < branches.length; i++) {
|
|
135
135
|
const branch = branches[i];
|
|
136
136
|
if (branch === undefined) continue;
|