git-ignore: Use "git ls-files" instead of "git log -1" for delete check

It gets rid of the error message if it's already deleted, and also
deletes the file from the cache if it's been added, but not committed
yet.

82bf8a50-3275-11e4-a047-c80aa9e67bbd