includes both staged and working tree files

this is needed so this task can be used in a pre-commit hook