<commit_before>function git
  if arg $argv
    call $git $argv
  end
end

function git.isgit
  if arg.one $argv
    if test -d $argv[1]/.git
      return 0
    else
      return 1
    end
  end
end

function git.url
  if arg $argv
    if test -d "$argv/.git"
      wd.save
      cd "$argv"
      call $git config --get remote.origin.url
      cd (wd.get)
    end
  else
    call $git config --get remote.origin.url
  end
  # git ls-remote --get-url
# git config --get remote.origin.url
end

function git.add
  if arg $argv
    call $git add $argv
  else
    call $git add .
  end
end

function git.commit
  if arg $argv
    call $git commit -a -m "$argv"
  else
    call $git commit -a -v --reuse-message=HEAD
  end
end

function git.init
  find.program git
end

function git.status
  call $git status
end

# function git.url<commit_msg>adding git.commit, temporary solution for color.personal<commit_after>function git
  if arg $argv
    call $git $argv
  end
end

function git.isgit
  if arg.one $argv
    if test -d $argv[1]/.git
      return 0
    else
      return 1
    end
  end
end

function git.url
  if arg $argv
    if test -d "$argv/.git"
      wd.save
      cd "$argv"
      call $git config --get remote.origin.url
      cd (wd.get)
    end
  else
    call $git config --get remote.origin.url
  end
  # git ls-remote --get-url
# git config --get remote.origin.url
end

function git.add
  if arg $argv
    call $git add $argv
  else
    call $git add .
  end
end

function git.push
  if arg $argv
    call $git push $argv
  else
    call $git push origin
  end
end

function git.commit
  if arg $argv
    call $git commit -a -m "$argv"
  else
    call $git commit -a -v --reuse-message=HEAD
  end
end

function git.init
  find.program git
end

function git.status
  call $git status
end

# function git.url
{'fraction_non_alphanumeric': 0.08905992303463442, 'fraction_numerical': 0.003298515667949423, 'mean_word_length': 2.10580204778157, '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': '4840911', 'n_tokens_mistral': 646, 'n_tokens_neox': 637, 'n_words': 240}