summaryrefslogtreecommitdiff
path: root/t/t4207-log-decoration-colors.sh
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2016-07-09 12:49:49 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-07-12 22:08:26 (GMT)
commita903e233f65a3e93cad74007cc0d5a178f712263 (patch)
tree7903bb6521141f5b8469ad72b6a8f8120279a3d1 /t/t4207-log-decoration-colors.sh
parente568e563ade00bbb0937162f405fc160f253e224 (diff)
downloadgit-a903e233f65a3e93cad74007cc0d5a178f712263.zip
git-a903e233f65a3e93cad74007cc0d5a178f712263.tar.gz
git-a903e233f65a3e93cad74007cc0d5a178f712263.tar.bz2
log: decorate HEAD -> branch with the same color for arrow and HEAD
Commit 76c61fb (log: decorate HEAD with branch name under --decorate=full, too - 2015-05-13) adds "HEAD -> branch" decoration to show current branch vs detached HEAD. The sign of whether HEAD is detached or not is "->" (vs ",") because the branch is always colored by type. Color the arrow the same as HEAD to visually emphasize that the following branch is HEAD, without paying too much attention to the actual separators "->" or "," Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4207-log-decoration-colors.sh')
-rwxr-xr-xt/t4207-log-decoration-colors.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t4207-log-decoration-colors.sh b/t/t4207-log-decoration-colors.sh
index f8008b6..b972296 100755
--- a/t/t4207-log-decoration-colors.sh
+++ b/t/t4207-log-decoration-colors.sh
@@ -44,7 +44,7 @@ test_expect_success setup '
'
cat >expected <<EOF
-${c_commit}COMMIT_ID${c_reset}${c_commit} (${c_reset}${c_HEAD}HEAD${c_reset}${c_commit} ->\
+${c_commit}COMMIT_ID${c_reset}${c_commit} (${c_reset}${c_HEAD}HEAD ->\
${c_reset}${c_branch}master${c_reset}${c_commit},\
${c_reset}${c_tag}tag: v1.0${c_reset}${c_commit},\
${c_reset}${c_tag}tag: B${c_reset}${c_commit})${c_reset} B