From b9a0c86cdc1d54906cfb13837e80079842deb3f4 Mon Sep 17 00:00:00 2001 From: Maxim Baz Date: Sun, 1 Jul 2018 22:54:11 +0200 Subject: [PATCH] Quote file path, keep silent when not in git repo --- rc/extra/git-tools.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/extra/git-tools.kak b/rc/extra/git-tools.kak index 6bc777db..d4ce420f 100644 --- a/rc/extra/git-tools.kak +++ b/rc/extra/git-tools.kak @@ -97,7 +97,7 @@ Available commands:\n add\n rm\n blame\n commit\n checkout\n diff\n hide- } update_diff() { - git --no-pager diff -U0 $kak_buffile | perl -e ' + git --no-pager diff -U0 "$kak_buffile" 2>/dev/null | perl -e ' $flags = $ENV{"kak_timestamp"}; foreach $line () { if ($line =~ /@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))?/) {