rc git: Use git-log filetype for ‘:git show’

The git-log filetype is more appropriate for ‘git show’ output
because it highlights both diffs and commit data.
This commit is contained in:
Gregory Chamberlain 2020-02-02 00:24:43 +00:00
parent f4e8585981
commit 548c6b0b7e

View File

@ -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