1
0
mirror of https://github.com/git/git.git synced 2025-03-16 20:15:26 +00:00
git/builtin
Johannes Sixt 5d8863954f 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>
2012-05-04 12:42:27 -07:00
..
2012-02-20 00:15:11 -08:00
2012-01-06 12:44:07 -08:00
2012-03-28 15:19:17 -07:00
2012-02-20 00:14:55 -08:00
2011-11-07 22:12:19 -08:00
2012-03-01 20:59:31 -08:00
2012-04-02 13:11:49 -07:00
2011-12-28 11:32:36 -08:00
2011-12-22 11:27:26 -08:00
2012-02-26 23:05:45 -08:00
2012-03-20 15:53:30 -07:00
2012-02-20 00:15:28 -08:00