Proper usage and extended pattern matching for Git file states