Changing the get_next_char to detect git diff