Add validation

- Buffer is related to file
- File is git tracked
Merge pull request #11 from syohex/add-validation

Add validation