Re: [PATCH] worktree remove: clarify error message on dirty worktree

2019-08-13 Thread Junio C Hamano
Eric Sunshine writes: > On Tue, Aug 13, 2019 at 2:04 PM SZEDER Gábor wrote: >> To avoid data loss, 'git worktree remove' refuses to delete a worktree >> if it's dirty or contains untracked files. However, the error message >> only mentions that the worktree "is dirty", even if the worktree in >

Re: [PATCH] worktree remove: clarify error message on dirty worktree

2019-08-13 Thread Eric Sunshine
On Tue, Aug 13, 2019 at 2:04 PM SZEDER Gábor wrote: > To avoid data loss, 'git worktree remove' refuses to delete a worktree > if it's dirty or contains untracked files. However, the error message > only mentions that the worktree "is dirty", even if the worktree in > question is in fact clean, b

[PATCH] worktree remove: clarify error message on dirty worktree

2019-08-13 Thread SZEDER Gábor
To avoid data loss, 'git worktree remove' refuses to delete a worktree if it's dirty or contains untracked files. However, the error message only mentions that the worktree "is dirty", even if the worktree in question is in fact clean, but contains untracked files: $ git worktree add test-workt