lalph 0.3.125 → 0.3.126
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/dist/cli.mjs +7 -4
- package/package.json +1 -1
- package/src/shared/git.ts +4 -3
package/dist/cli.mjs
CHANGED
|
@@ -242228,9 +242228,12 @@ const addOrUpdateProject = fnUntraced(function* (existing, fromPlanMode = false)
|
|
|
242228
242228
|
//#endregion
|
|
242229
242229
|
//#region src/shared/git.ts
|
|
242230
242230
|
const parseBranch = (ref) => {
|
|
242231
|
-
|
|
242232
|
-
|
|
242233
|
-
|
|
242231
|
+
if (!ref.startsWith("origin/") && !ref.startsWith("upstream/")) return {
|
|
242232
|
+
remote: "origin",
|
|
242233
|
+
branch: ref,
|
|
242234
|
+
branchWithRemote: ref
|
|
242235
|
+
};
|
|
242236
|
+
const [remote, branch] = ref.split("/", 2);
|
|
242234
242237
|
return {
|
|
242235
242238
|
remote,
|
|
242236
242239
|
branch,
|
|
@@ -243738,7 +243741,7 @@ const commandEdit = make$60("edit").pipe(withDescription("Open the selected proj
|
|
|
243738
243741
|
const commandSource = make$60("source").pipe(withDescription("Select the issue source to use (e.g. GitHub Issues or Linear). This applies to all projects."), withHandler(() => selectIssueSource), provide(Settings.layer));
|
|
243739
243742
|
//#endregion
|
|
243740
243743
|
//#region package.json
|
|
243741
|
-
var version = "0.3.
|
|
243744
|
+
var version = "0.3.126";
|
|
243742
243745
|
//#endregion
|
|
243743
243746
|
//#region src/Tracing.ts
|
|
243744
243747
|
const TracingLayer = unwrap$3(gen(function* () {
|
package/package.json
CHANGED
package/src/shared/git.ts
CHANGED
|
@@ -5,9 +5,10 @@ export const parseBranch = (
|
|
|
5
5
|
readonly branch: string
|
|
6
6
|
readonly branchWithRemote: string
|
|
7
7
|
} => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
if (!ref.startsWith("origin/") && !ref.startsWith("upstream/")) {
|
|
9
|
+
return { remote: "origin", branch: ref, branchWithRemote: ref }
|
|
10
|
+
}
|
|
11
|
+
const [remote, branch] = ref.split("/", 2) as [string, string]
|
|
11
12
|
const branchWithRemote = `${remote}/${branch}`
|
|
12
13
|
return { remote, branch, branchWithRemote } as const
|
|
13
14
|
}
|