reset --hard: skip blank lines when reporting the commit subject
commit054a5aee6f3e8e90d96f7b3f76f5f55752561c59
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Wed, 29 Jun 2016 14:14:50 +0000 (29 16:14 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 29 Jun 2016 22:03:36 +0000 (29 15:03 -0700)
tree8bd12b3a439f6135c4d4168d9a7897360263f6d6
parent88ef402f9c18dafee5c8b222200f8f984b17a73e
reset --hard: skip blank lines when reporting the commit subject

When there are blank lines at the beginning of a commit message, the
pretty printing machinery already skips them when showing a commit
subject (or the complete commit message). We shall henceforth do the
same when reporting the commit subject after the user called

git reset --hard <commit>

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/reset.c