mirror of
https://github.com/git-for-windows/git.git
synced 2026-03-19 21:10:38 -05:00
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 <johannes.schindelin@gmx.de>
This commit is contained in:
@@ -1215,7 +1215,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);
|
||||
|
||||
Reference in New Issue
Block a user