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:
parent
f4e8585981
commit
548c6b0b7e
|
@ -58,8 +58,8 @@ Available commands:\n add\n rm\n blame\n commit\n checkout\n diff\n hide-
|
||||||
show_git_cmd_output() {
|
show_git_cmd_output() {
|
||||||
local filetype
|
local filetype
|
||||||
case "$1" in
|
case "$1" in
|
||||||
show|diff) filetype=diff ;;
|
diff) filetype=diff ;;
|
||||||
log) filetype=git-log ;;
|
log|show) filetype=git-log ;;
|
||||||
status) filetype=git-status ;;
|
status) filetype=git-status ;;
|
||||||
esac
|
esac
|
||||||
output=$(mktemp -d "${TMPDIR:-/tmp}"/kak-git.XXXXXXXX)/fifo
|
output=$(mktemp -d "${TMPDIR:-/tmp}"/kak-git.XXXXXXXX)/fifo
|
||||||
|
|
Loading…
Reference in New Issue
Block a user