Skip to content

Commit a2386f7

Browse files
committed
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>
1 parent 4308317 commit a2386f7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

wt-status.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1215,7 +1215,9 @@ static void abbrev_sha1_in_line(struct strbuf *line)
12151215
int i;
12161216

12171217
if (starts_with(line->buf, "exec ") ||
1218-
starts_with(line->buf, "x "))
1218+
starts_with(line->buf, "x ") ||
1219+
starts_with(line->buf, "label ") ||
1220+
starts_with(line->buf, "l "))
12191221
return;
12201222

12211223
split = strbuf_split_max(line, ' ', 3);

0 commit comments

Comments
 (0)