kemayo/sublime-text-2-git — pull request #158 by nh2 (2012-07-12 11:11:09+00:00)
Title: Fix windows annotations

Windows doesn't allow other programs to read files created with `tempfile.NamedTemporaryFile(delete=True)`. That's why we get something like:

```
Exception in thread Thread-173:
Traceback (most recent call last):
File ".\threading.py", line 532, in __bootstrap_inner
File ".\git.py", line 96, in run
File ".\subprocess.py", line 701, in communicate
File ".\subprocess.py", line 911, in _communicate
IOError: [Errno 32] Broken pipe
```

Also, `diff` is usually not installed on windows. One of these commits tells the user about this.

Side note: It would be cool if the checks for the existence of external programs could be done in some initialisation part of the plugin, like in the [detection phase of SublimeLinter](https://github.com/SublimeLinter/SublimeLinter/blob/9de381a137174e009b053e8ab7ccef4e3bdbbdea/sublimelinter/modules/base_linter.py#L114).