Merge branch 'rs/worktree-list-verbose'
authorJunio C Hamano <gitster@pobox.com>
Wed, 10 Feb 2021 22:48:32 +0000 (14:48 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 10 Feb 2021 22:48:32 +0000 (14:48 -0800)
commit02fb21617e0da10c6cadb1c55147299456633bca
tree2d8898c1eaf7b4a911b9c0f9c36fdb8d359e359b
parent7e94720c1ea42605a8f380802cfe90ec5e2477a2
parent076b444a6206bd69370efabb5d6d273d4b383a0b
Merge branch 'rs/worktree-list-verbose'

`git worktree list` now annotates worktrees as prunable, shows
locked and prunable attributes in --porcelain mode, and gained
a --verbose option.

* rs/worktree-list-verbose:
  worktree: teach `list` verbose mode
  worktree: teach `list` to annotate prunable worktree
  worktree: teach `list --porcelain` to annotate locked worktree
  t2402: ensure locked worktree is properly cleaned up
  worktree: teach worktree_lock_reason() to gently handle main worktree
  worktree: teach worktree to lazy-load "prunable" reason
  worktree: libify should_prune_worktree()
t/t2402-worktree-list.sh