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>

Johannes Schindelin committed May 10, 2019 at 13:23 UTC 225a777af9b802e1f8516031b5fbf08e4d5cb48a
1 file changed +3 -1
wt-status.c
+3 -1
@@ -1214,7 +1214,9 @@ static void abbrev_sha1_in_line(struct strbuf *line)
1214 int i;
1215
1216 if (starts_with(line->buf, "exec ") ||
1217 - starts_with(line->buf, "x "))
1217 + starts_with(line->buf, "x ") ||
1218 + starts_with(line->buf, "label ") ||
1219 + starts_with(line->buf, "l "))
1220 return;
1221
1222 split = strbuf_split_max(line, ' ', 3);