From 0aead04cb732d55c584c1235dd59d15a02d54461 Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Fri, 22 Nov 2013 19:57:55 +0100 Subject: git-log-describe: stop color on line To avoid funny color effects when doing: git log --color | git-log-describe.awk | less -RN --- git-log-describe.awk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/git-log-describe.awk b/git-log-describe.awk index 9bb5896..579b06d 100755 --- a/git-log-describe.awk +++ b/git-log-describe.awk @@ -31,6 +31,7 @@ $1 == "commit" && $2 ~ /^[0-9a-f]{5,40}$/ { printf("%" indent_len "sDescribe: ", ""); if (is_color) printf("\033[96m"); # light cyan - system("git describe --first-parent " hash);# " |tr -d '\''\n'\''"); + system("git describe --first-parent " hash " | tr -d '\n'"); if (is_color) printf("\033[m"); + printf("\n"); } -- cgit v1.2.1