Skip to content

Commit ec9eed5

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 <[email protected]>
1 parent 8104ec9 commit ec9eed5

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
@@ -1197,7 +1197,9 @@ static void abbrev_sha1_in_line(struct strbuf *line)
11971197
int i;
11981198

11991199
if (starts_with(line->buf, "exec ") ||
1200-
starts_with(line->buf, "x "))
1200+
starts_with(line->buf, "x ") ||
1201+
starts_with(line->buf, "label ") ||
1202+
starts_with(line->buf, "l "))
12011203
return;
12021204

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

0 commit comments

Comments
 (0)