]> granicus.if.org Git - git/commitdiff
Merge branch 'nd/worktree-add-lock'
authorJunio C Hamano <gitster@pobox.com>
Wed, 26 Apr 2017 06:39:12 +0000 (15:39 +0900)
committerJunio C Hamano <gitster@pobox.com>
Wed, 26 Apr 2017 06:39:12 +0000 (15:39 +0900)
Allow to lock a worktree immediately after it's created. This helps
prevent a race between "git worktree add; git worktree lock" and
"git worktree prune".

* nd/worktree-add-lock:
  worktree add: add --lock option

1  2 
builtin/worktree.c

Simple merge