only check added, modified or renamed files in a valid git tree