Skip to content

Commit 229d1af

Browse files
committed
Merge pull request #2185 from dscho/fix-status-with-rebase-ir
Fix `git status`' display of `git rebase -ir`'s `label` commands
2 parents a541156 + ef8c720 commit 229d1af

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)