Adding the git_dirty_character function.