Let the update_diff fail if we are not in git repo

This commit is contained in:
Maxim Baz 2018-07-02 22:43:23 +02:00
parent 551674875d
commit fb045ec072
No known key found for this signature in database
GPG Key ID: 011FDC52DA839335

View File

@ -97,7 +97,6 @@ Available commands:\n add\n rm\n blame\n commit\n checkout\n diff\n hide-
}
update_diff() {
git rev-parse --show-toplevel >/dev/null 2>&1 || return
git --no-pager diff -U0 "$kak_buffile" | perl -e '
$flags = $ENV{"kak_timestamp"};
foreach $line (<STDIN>) {