diff options
author | Johannes Sixt <j6t@kdbg.org> | 2012-05-04 20:14:48 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-05-04 12:42:27 -0700 |
commit | 5d8863954f077d2c262d5cc4fc669947ff23d6d5 (patch) | |
tree | 56aaf37abe80507c48f69e60fac116d46355b05a /transport-helper.c | |
parent | t2020-checkout-detach: check for the number of orphaned commits (diff) | |
download | tgif-5d8863954f077d2c262d5cc4fc669947ff23d6d5.tar.xz |
checkout (detached): truncate list of orphaned commits at the new HEAD
When git checkout switches from a detached HEAD to any other commit, then
all orphaned commits were listed in a warning:
Warning: you are leaving 2 commits behind...:
a5e5396 another fixup
6aa1af6 fixup foo
But if the new commit is actually one from this list (6aa1af6 in this
example), then the list in the warning can be truncated at the new HEAD,
because history beginning at HEAD is not "left behind". This makes it so.
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'transport-helper.c')
0 files changed, 0 insertions, 0 deletions