diff options
author | Junio C Hamano <gitster@pobox.com> | 2011-05-24 10:08:29 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-05-24 14:26:42 -0700 |
commit | f807b3dcab9cafd76936d24936b8353f99b2ae6d (patch) | |
tree | 56b891ece6ef23b8586187327cdbf40dc94ccd00 /hash.h | |
parent | commit: give final warning when reattaching HEAD to leave commits behind (diff) | |
download | tgif-f807b3dcab9cafd76936d24936b8353f99b2ae6d.tar.xz |
checkout: make advice when reattaching the HEAD less loud
When switching away from a detached HEAD with "git checkout", we give a
listing of the commits about to be lost, and then tell how to resurrect
them since 8e2dc6a (commit: give final warning when reattaching HEAD to
leave commits behind, 2011-02-18).
This is a good safety measure for people who are not comfortable with the
detached HEAD state, but the advice on how to keep the state you just left
was given even to those who set advice.detachedHead to false.
Keep the warning and informational commit listing, but honor the setting
of advice.detachedHead to squelch the advice.
Helped-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'hash.h')
0 files changed, 0 insertions, 0 deletions