Warn the user when unreachable commits are being left behind.
Rubén Justo (3):
checkout: move orphaned_commit_warning()
worktree: warn when removing a worktree with orphan commits
checkout: warn when unreachable commits after using --orphan
builtin/checkout.c | 132 ++-----------------------------------
builtin/worktree.c | 8 +++
checkout.c | 132 +++++++++++++++++++++++++++++++++++++
checkout.h | 10 +++
t/t2020-checkout-detach.sh | 9 +++
t/t2403-worktree-move.sh | 10 +++
6 files changed, 175 insertions(+), 126 deletions(-)
base-commit: b28a910c4c1e6d7cbdc0663e75c2f5bc6b11eb20