From 548c6b0b7e810071f6f8b03117f7cb825c3dc805 Mon Sep 17 00:00:00 2001 From: Gregory Chamberlain Date: Sun, 2 Feb 2020 00:24:43 +0000 Subject: [PATCH] =?UTF-8?q?rc=20git:=20Use=20git-log=20filetype=20for=20?= =?UTF-8?q?=E2=80=98:git=20show=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The git-log filetype is more appropriate for ‘git show’ output because it highlights both diffs and commit data. --- rc/tools/git.kak | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rc/tools/git.kak b/rc/tools/git.kak index 556b09ca..bd2c39fd 100644 --- a/rc/tools/git.kak +++ b/rc/tools/git.kak @@ -58,8 +58,8 @@ Available commands:\n add\n rm\n blame\n commit\n checkout\n diff\n hide- show_git_cmd_output() { local filetype case "$1" in - show|diff) filetype=diff ;; - log) filetype=git-log ;; + diff) filetype=diff ;; + log|show) filetype=git-log ;; status) filetype=git-status ;; esac output=$(mktemp -d "${TMPDIR:-/tmp}"/kak-git.XXXXXXXX)/fifo