@doccy/fell 0.1.1 → 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.
- package/README.md +1 -1
- package/lib/git.ts +4 -1
- package/package.json +1 -1
package/README.md
CHANGED
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
|
-
|
|
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. */
|