Add validation

- Buffer is related to file
- File is git tracked

I suppose this is useful case of #10.