mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-08 11:33:48 -05:00
The diffing part of the plugin diffs two files which are written afresh each time. When the same buffer was processed twice in quick succession, the second process to write a file could write it before the first process had finished reading it. This manifested as the "from" file being read as empty, causing diff to report that all the lines in the file had been added. This commit adds a counter to disambiguate successive temporary files.