From: Johannes Schindelin Date: Fri, 10 May 2019 20:23:14 +0000 (-0700) Subject: status: fix display of rebase -ir's `label` command X-Git-Tag: v2.22.0-rc1~9^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/225a777af9b802e1f8516031b5fbf08e4d5cb48a 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 Signed-off-by: Junio C Hamano --- diff --git a/wt-status.c b/wt-status.c index f4fa982638..f9fba796fb 100644 --- a/wt-status.c +++ b/wt-status.c @@ -1214,7 +1214,9 @@ static void abbrev_sha1_in_line(struct strbuf *line) int i; 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; split = strbuf_split_max(line, ' ', 3);