<commit_before>
git_vimdiff() {
  GIT_PAGER= GIT_EXTERNAL_DIFF=git_diff_wrapper git diff -w "$@"
}
complete -F _git_diff -o default git_vimdiff

git_diff() {
  git diff -w "$@" | vim -R -
}
complete -F _git_diff -o default git_diff

#-------------------------------------------------

glg() {
  git log --graph --pretty=format:'%Cred%h%Creset - %s %Cgreen(%cr)%Creset%C(yellow)%d%Creset' --abbrev-commit --date=relative "$@"
}
complete -F _git_log -o default glg

gln() {
  git log --name-only "$@"
}
complete -F _git_log -o default gln

#-------------------------------------------------

git_mod() {
  git ls-files -m
}

#-------------------------------------------------

git_attach() {
  git remote add origin $1
  git push origin master
  git branch --set-upstream master origin/master
}
<commit_msg>git: easy vim based on status<commit_after>
git_vimdiff() {
  GIT_PAGER= GIT_EXTERNAL_DIFF=git_diff_wrapper git diff -w "$@"
}
complete -F _git_diff -o default git_vimdiff

git_diff() {
  git diff -w "$@" | vim -R -
}
complete -F _git_diff -o default git_diff

#-------------------------------------------------

glg() {
  git log --graph --pretty=format:'%Cred%h%Creset - %s %Cgreen(%cr)%Creset%C(yellow)%d%Creset' --abbrev-commit --date=relative "$@"
}
complete -F _git_log -o default glg

gln() {
  git log --name-only "$@"
}
complete -F _git_log -o default gln

#-------------------------------------------------

git_mod() {
  git ls-files -m
}

#-------------------------------------------------

git_attach() {
  git remote add origin $1
  git push origin master
  git branch --set-upstream master origin/master
}

#-------------------------------------------------

git_status_vim() {
  FILTER="awk '{print \$2}'" pick_with_vim "git status --short" "vim"
}

{'fraction_non_alphanumeric': 0.31864406779661014, 'fraction_numerical': 0.001694915254237288, 'mean_word_length': 1.6833333333333333, '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': '2088701', 'n_tokens_mistral': 610, 'n_tokens_neox': 585, 'n_words': 152}