status: fix display of rebase -ir's label command

The argument of a `label` command does *not* want to be turned into an
abbreviated SHA-1.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Johannes Schindelin 2019-05-10 13:23:14 -07:00 committed by Junio C Hamano
parent 6a6c0f10a7
commit 225a777af9

View File

@ -1214,7 +1214,9 @@ static void abbrev_sha1_in_line(struct strbuf *line)
int i; int i;
if (starts_with(line->buf, "exec ") || if (starts_with(line->buf, "exec ") ||
starts_with(line->buf, "x ")) starts_with(line->buf, "x ") ||
starts_with(line->buf, "label ") ||
starts_with(line->buf, "l "))
return; return;
split = strbuf_split_max(line, ' ', 3); split = strbuf_split_max(line, ' ', 3);