Re: [PATCH] prune --worktrees: fix expire vs worktree existence condition

2015-03-31 Thread Duy Nguyen
On Tue, Mar 31, 2015 at 3:47 AM, Max Kirillov wrote: > `git prune --worktrees` was pruning worktrees which were non-existent OR > expired, while it rather should prune those which are orphaned AND > expired, as git-checkout documentation describes. Fix it. > > Add test 'not prune proper checkouts'

[PATCH] prune --worktrees: fix expire vs worktree existence condition

2015-03-30 Thread Max Kirillov
`git prune --worktrees` was pruning worktrees which were non-existent OR expired, while it rather should prune those which are orphaned AND expired, as git-checkout documentation describes. Fix it. Add test 'not prune proper checkouts', which uses valid but expired worktree. Modify test 'not prun