hanoman 0.3.2 → 0.3.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/dist/build-info.json +3 -3
- package/dist/server.js +5 -3
- package/package.json +1 -1
package/dist/build-info.json
CHANGED
package/dist/server.js
CHANGED
|
@@ -36879,12 +36879,14 @@ async function listWorktrees(repoDir, inputs) {
|
|
|
36879
36879
|
const previous = history.get(path);
|
|
36880
36880
|
if (!previous || h.startedAt > previous.startedAt) history.set(path, h);
|
|
36881
36881
|
}
|
|
36882
|
+
const raw = parseWorktreePorcelain(text ?? "");
|
|
36883
|
+
const mainPath = raw[0] ? resolve15(raw[0].path) : null;
|
|
36882
36884
|
const rows = [];
|
|
36883
|
-
for (const w of
|
|
36885
|
+
for (const w of raw) {
|
|
36884
36886
|
const path = resolve15(w.path);
|
|
36885
36887
|
if (path === trash || path.startsWith(trash + sep4)) continue;
|
|
36886
36888
|
const name2 = basename4(path);
|
|
36887
|
-
const deletable =
|
|
36889
|
+
const deletable = path !== baseReal && path !== mainPath;
|
|
36888
36890
|
const spec = inputs.specs.get(name2);
|
|
36889
36891
|
const latest = history.get(path);
|
|
36890
36892
|
const orphan = latest && (!latest.endedAt || latest.endedReason === "reconciled") && !hasWorktreeSession(path, latest.sessionId, inputs.sessions) ? { historyId: latest.id, sessionId: latest.sessionId } : void 0;
|
|
@@ -36896,7 +36898,7 @@ async function listWorktrees(repoDir, inputs) {
|
|
|
36896
36898
|
prunable: w.prunable,
|
|
36897
36899
|
locked: w.locked,
|
|
36898
36900
|
deletable,
|
|
36899
|
-
blocked: deletable ? null :
|
|
36901
|
+
blocked: deletable ? null : "checkout project",
|
|
36900
36902
|
spec: spec ? { id: spec.id, stage: spec.stage } : null,
|
|
36901
36903
|
session: sessions.get(path) ?? null,
|
|
36902
36904
|
createdAt: await bornAt(path),
|