Merge branch 'es/worktree-forced-ops-fix'
commit1c515bf7e2b395509a122fb92cd6f925bf09a6fe
authorJunio C Hamano <gitster@pobox.com>
Mon, 17 Sep 2018 20:53:59 +0000 (17 13:53 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 17 Sep 2018 20:53:59 +0000 (17 13:53 -0700)
tree8e4410c4163d6d8c985f7aef742efab8cb563ef6
parent2af0b1c6007401086bd72d4f49fbd5e9462f37f4
parent684e742249b48ec0c5491a98fa3b1427793738ce
Merge branch 'es/worktree-forced-ops-fix'

Fix a bug in which the same path could be registered under multiple
worktree entries if the path was missing (for instance, was removed
manually).  Also, as a convenience, expand the number of cases in
which --force is applicable.

* es/worktree-forced-ops-fix:
  doc-diff: force worktree add
  worktree: delete .git/worktrees if empty after 'remove'
  worktree: teach 'remove' to override lock when --force given twice
  worktree: teach 'move' to override lock when --force given twice
  worktree: teach 'add' to respect --force for registered but missing path
  worktree: disallow adding same path multiple times
  worktree: prepare for more checks of whether path can become worktree
  worktree: generalize delete_git_dir() to reduce code duplication
  worktree: move delete_git_dir() earlier in file for upcoming new callers
  worktree: don't die() in library function find_worktree()
Documentation/doc-diff