Skip to content

Commit 225a777

Browse files
dschogitster
authored andcommitted
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]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 6a6c0f1 commit 225a777

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

12161216
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 "))
12181220
return;
12191221

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

0 commit comments

Comments
 (0)