added function to check if file is tracked.  Useful to the likes of vim-...

...airline which needs the status