@doccy/fell 0.1.2 → 0.1.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.
Files changed (2) hide show
  1. package/lib/git.ts +4 -1
  2. package/package.json +1 -1
package/lib/git.ts CHANGED
@@ -146,10 +146,13 @@ export async function removeWorktree(
146
146
  /**
147
147
  * Dry-run prune to show what stale references would be cleaned.
148
148
  * Returns human-readable descriptions of each stale entry.
149
+ * Note: git writes prune verbose output to stderr, not stdout.
149
150
  */
150
151
  export async function pruneWorktreesDryRun(): Promise<string[]> {
151
152
  const result = await $`git worktree prune --dry-run -v`.nothrow().quiet()
152
- return result.stdout.toString().trim().split("\n").filter(Boolean)
153
+ const output = result.stderr.toString().trim()
154
+ if (!output) return []
155
+ return output.split("\n").filter(Boolean)
153
156
  }
154
157
 
155
158
  /** Actually prune stale worktree references. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doccy/fell",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Interactive git worktree manager. Navigate, inspect, delete, and prune worktrees with async PR status fetching.",
5
5
  "license": "MIT",
6
6
  "bin": {