Revision 0eb8548f45cc51bff9b70f551f4c472af353a814 authored by Matthieu Moy on 27 September 2015, 15:13:42 UTC, committed by Junio C Hamano on 02 October 2015, 18:29:46 UTC
After using "git checkout --detach", the reflog is left with an entry
like

  checkout: moving from ... to HEAD

This message is parsed to generate the 'HEAD detached at' message in
'git branch' and 'git status', which leads to the not-so-useful message
'HEAD detached at HEAD'.

Instead, when parsing such reflog entry, resolve HEAD to the
corresponding commit in the reflog, so that the message becomes 'HEAD
detached at $sha1'.

Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 9cb07d8
History
File Mode Size
bitmap.c -rw-r--r-- 5.0 KB
ewah_bitmap.c -rw-r--r-- 16.2 KB
ewah_io.c -rw-r--r-- 5.2 KB
ewah_rlw.c -rw-r--r-- 2.9 KB
ewok.h -rw-r--r-- 6.6 KB
ewok_rlw.h -rw-r--r-- 3.1 KB

back to top