Skip to content

Commit 4de8609

Browse files
committed
Merge pull request git-for-windows#2185 from dscho/fix-status-with-rebase-ir
Fix `git status`' display of `git rebase -ir`'s `label` commands
2 parents 5df6868 + 7f618bf commit 4de8609

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)