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:
parent
6a6c0f10a7
commit
225a777af9
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user