]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'jc/checkout-no-op-switch-errors' into maint-2.46
authorJunio C Hamano <gitster@pobox.com>
Fri, 16 Aug 2024 19:50:51 +0000 (12:50 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 16 Aug 2024 19:50:51 +0000 (12:50 -0700)
"git checkout --ours" (no other arguments) complained that the
option is incompatible with branch switching, which is technically
correct, but found confusing by some users.  It now says that the
user needs to give pathspec to specify what paths to checkout.

* jc/checkout-no-op-switch-errors:
  checkout: special case error messages during noop switching

1  2 
builtin/checkout.c
t/t7201-co.sh

Simple merge
diff --cc t/t7201-co.sh
Simple merge