Skip to content

Commit

Permalink
status: fix display of rebase -ir's label command
Browse files Browse the repository at this point in the history
The argument of a `label` command does *not* want to be turned into an
abbreviated SHA-1.

Signed-off-by: Johannes Schindelin <[email protected]>
  • Loading branch information
dscho committed May 10, 2019
1 parent 8104ec9 commit ec9eed5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion wt-status.c
Original file line number Diff line number Diff line change
Expand Up @@ -1197,7 +1197,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);
Expand Down

0 comments on commit ec9eed5

Please sign in to comment.