-   Notifications  You must be signed in to change notification settings 
- Fork 4
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
I encountered an issue with this plugin getting stuck when trying to calculate the additions and deletions of a file that differs from the last commit of it. If the file is the same as in the last commit or isn't part of a git repo, there are no visible problems I've encountered. When vim gets stuck, I can terminate the currently executed command with <C-c> and edit the file, but lightline-gitdiff doesn't work any more.
In the log I found the following:
Executing BufRead Autocommands for "*" autocommand :call lightline#gitdiff#update(v:false) Calling shell to execute: "(cd '/home/bjoern/git/pybaccm' && git rev-parse --is-inside-work-tree --prefix '.') >/tmp/vujHtbr/0 2>&1" Calling shell to execute: "(cd '/home/bjoern/git/pybaccm' && git diff --word-diff=porcelain --unified=0 -- 'main.py') >/tmp/vujHtbr/1 2>&1" Command terminated I was also able to pinpoint the first occurrence of this issue to commit 8dff975. In the log produced with the plugin on this commit, I found the following:
Executing BufRead Autocommands for "*" autocommand :call lightline#gitdiff#write_to_cache(v:false) | :call lightline#update() Calling shell to execute: "(cd '/home/bjoern/git/pybaccm' && git diff --word-diff=porcelain --unified=0 -- 'main.py') >/tmp/vudtl1o/0 2>&1" Command terminated Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working