<commit_before>function _git_last_commit --description "Prints the last git commit hash."
    echo -n -s (set_color $fish_color_quote)(git log -1 --pretty=format:%h) \
            (set_color normal)
end<commit_msg>Fish: git_last_commit doesn't break when checking an empty repo.<commit_after>function _git_last_commit --description "Prints the last git commit hash."
    if set -l commit (command git log -1 --pretty=format:%h ^&-)
        echo -n -s (set_color $fish_color_quote)$commit \
                (set_color normal)
    else
        echo -n -s (set_color $fish_color_error)"empty" \
                (set_color normal)
    end
end
{'fraction_non_alphanumeric': 0.10344827586206896, 'fraction_numerical': 0.003134796238244514, 'mean_word_length': 2.8493975903614457, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1079165', 'n_tokens_mistral': 200, 'n_tokens_neox': 193, 'n_words': 62}