You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: accept human-friendly duration formats in prune --older-than (#24)
* Initial plan
* feat: add human-friendly duration format support to prune command
Co-authored-by: captainsafia <1857993+captainsafia@users.noreply.github.com>
* doc: update documentation to show human-friendly duration format support
Co-authored-by: captainsafia <1857993+captainsafia@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: captainsafia <1857993+captainsafia@users.noreply.github.com>
Copy file name to clipboardExpand all lines: README.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -173,6 +173,8 @@ Remove worktrees older than a specific duration (bypasses merge check):
173
173
174
174
**Note:** When using `--older-than`, the merge status check is bypassed, and all worktrees older than the specified duration will be removed. The `--base` flag cannot be used with `--older-than`.
175
175
176
+
You can use human-friendly formats (e.g., `30d`, `2w`, `6M`, `1y`) or ISO 8601 duration format (e.g., `P30D`, `P2W`, `P6M`, `P1Y`):
177
+
176
178
```bash
177
179
# Remove worktrees older than 30 days
178
180
grove prune --older-than 30d
@@ -185,6 +187,9 @@ grove prune --older-than 1y
185
187
186
188
# Preview what would be removed for worktrees older than 2 weeks
0 commit comments