mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-26 21:22:00 +03:00
Quote file path, keep silent when not in git repo
This commit is contained in:
parent
a56c39d69b
commit
b9a0c86cdc
@ -97,7 +97,7 @@ Available commands:\n add\n rm\n blame\n commit\n checkout\n diff\n hide-
|
|||||||
}
|
}
|
||||||
|
|
||||||
update_diff() {
|
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"};
|
$flags = $ENV{"kak_timestamp"};
|
||||||
foreach $line (<STDIN>) {
|
foreach $line (<STDIN>) {
|
||||||
if ($line =~ /@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))?/) {
|
if ($line =~ /@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))?/) {
|
||||||
|
Loading…
Reference in New Issue
Block a user