summaryrefslogtreecommitdiff
path: root/advice.h
diff options
context:
space:
mode:
authorAlex Henrie <alexhenrie24@gmail.com>2022-02-26 06:12:13 (GMT)
committerJunio C Hamano <gitster@pobox.com>2022-02-26 06:21:48 (GMT)
commit808213ba36ea72408cc45117a825ad9a714535ba (patch)
tree46ce0e0ac916122d22dfe7ddd552c36beff5714d /advice.h
parentdab1b7905d0b295f1acef9785bb2b9cbb0fdec84 (diff)
downloadgit-808213ba36ea72408cc45117a825ad9a714535ba.zip
git-808213ba36ea72408cc45117a825ad9a714535ba.tar.gz
git-808213ba36ea72408cc45117a825ad9a714535ba.tar.bz2
switch: mention the --detach option when dying due to lack of a branch
Users who are accustomed to doing `git checkout <tag>` assume that `git switch <tag>` will do the same thing. Inform them of the --detach option so they aren't left wondering why `git switch` doesn't work but `git checkout` does. Signed-off-by: Alex Henrie <alexhenrie24@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'advice.h')
-rw-r--r--advice.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/advice.h b/advice.h
index a7521d6..a395712 100644
--- a/advice.h
+++ b/advice.h
@@ -20,6 +20,7 @@ struct string_list;
ADVICE_CHECKOUT_AMBIGUOUS_REMOTE_BRANCH_NAME,
ADVICE_COMMIT_BEFORE_MERGE,
ADVICE_DETACHED_HEAD,
+ ADVICE_SUGGEST_DETACHING_HEAD,
ADVICE_FETCH_SHOW_FORCED_UPDATES,
ADVICE_GRAFT_FILE_DEPRECATED,
ADVICE_IGNORED_HOOK,