Simplifying the function '_git_check_clean()'