summaryrefslogtreecommitdiff
path: root/wt-status.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-05-19 07:45:33 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-05-19 07:45:33 (GMT)
commite0708c24d57b94b56b5556d05cc98f7ac5ba622b (patch)
treee24276b2863e2717e76aeb289a462e6ca9662327 /wt-status.c
parentdd5b7dc8ed2d02a693411aaae98f97d42c7a536c (diff)
parent225a777af9b802e1f8516031b5fbf08e4d5cb48a (diff)
downloadgit-e0708c24d57b94b56b5556d05cc98f7ac5ba622b.zip
git-e0708c24d57b94b56b5556d05cc98f7ac5ba622b.tar.gz
git-e0708c24d57b94b56b5556d05cc98f7ac5ba622b.tar.bz2
Merge branch 'js/rebase-i-label-shown-in-status-fix'
"git status" did not know that the "label" instruction in the todo-list "rebase -i -r" uses should not be shown as a hex object name. * js/rebase-i-label-shown-in-status-fix: status: fix display of rebase -ir's `label` command
Diffstat (limited to 'wt-status.c')
-rw-r--r--wt-status.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/wt-status.c b/wt-status.c
index e065558..d2a1bec 100644
--- a/wt-status.c
+++ b/wt-status.c
@@ -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);