Merge branch 'ja/worktree-orphan'
commit4dd046932835d14c449f04ee0f3885669cad60c5
authorJunio C Hamano <gitster@pobox.com>
Thu, 22 Jun 2023 23:29:05 +0000 (22 16:29 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 22 Jun 2023 23:29:05 +0000 (22 16:29 -0700)
tree7b3e845ac4ce0e535ecbbb1685f964d1fdc22086
parent6640c2d06d112675426cf436f0594f0e8c614848
parent926c40d04b5a77e00d3b22a5d2696c22b81569cc
Merge branch 'ja/worktree-orphan'

'git worktree add' learned how to create a worktree based on an
orphaned branch with `--orphan`.

* ja/worktree-orphan:
  worktree add: emit warn when there is a bad HEAD
  worktree add: extend DWIM to infer --orphan
  worktree add: introduce "try --orphan" hint
  worktree add: add --orphan flag
  t2400: add tests to verify --quiet
  t2400: refactor "worktree add" opt exclusion tests
  t2400: cleanup created worktree in test
  worktree add: include -B in usage docs
builtin/worktree.c