<commit_before>---

- name: install git
  apt: pkg=git state=latest

- name: install gitg
  apt: pkg=gitg state=latest

- name: install meld
  apt: pkg=meld state=latest

- name: install gnome keyring dev
  apt: pkg=libgnome-keyring-dev state=latest

- name: compile git gnome keyring helper
  command: make
  args:
    chdir: /usr/share/doc/git/contrib/credential/gnome-keyring

- name: add gnome keyring helper to git
  become: true
  become_user: "{{ ansible_env.USER }}"
  command: git config --global credential.helper /usr/share/doc/git/contrib/credential/gnome-keyring/git-credential-gnome-keyring

- name: link gitignore
  become: true
  become_user: "{{ ansible_env.USER }}"
  file: src="{{ ansible_env.HOME }}/git/psunix/profile/git/gitignore" dest="{{ ansible_env.HOME }}/.gitignore" state=link

- name: setup git config
  become: true
  become_user: "{{ ansible_env.USER }}"
  command: git config --global {{ item }}
  with_items:
    - alias.co checkout
    - alias.ci commit
    - alias.st status
    - alias.up 'pull --rebase'
    - alias.br branch
    - alias.dt difftool
    - core.editor vim
    - core.excludesfile ~/.gitignore
    - color.ui auto
    - push.default simple<commit_msg>update git config<commit_after>---

- name: install git
  apt: pkg=git state=latest

- name: install gitg
  apt: pkg=gitg state=latest

- name: install meld
  apt: pkg=meld state=latest

- name: install gnome keyring dev
  apt: pkg=libgnome-keyring-dev state=latest

- name: compile git gnome keyring helper
  command: make
  args:
    chdir: /usr/share/doc/git/contrib/credential/gnome-keyring

- name: add gnome keyring helper to git
  become: true
  become_user: "{{ ansible_env.USER }}"
  command: git config --global credential.helper /usr/share/doc/git/contrib/credential/gnome-keyring/git-credential-gnome-keyring

- name: link gitignore
  become: true
  become_user: "{{ ansible_env.USER }}"
  file: src="{{ ansible_env.HOME }}/git/psunix/profile/git/gitignore" dest="{{ ansible_env.HOME }}/.gitignore" state=link

- name: setup git config
  become: true
  become_user: "{{ ansible_env.USER }}"
  command: git config --global {{ item }}
  with_items:
    - alias.co checkout
    - alias.ci commit
    - alias.st status
    - alias.up 'pull --rebase'
    - alias.br branch
    - alias.dt difftool
    - core.editor vim
    - core.excludesfile ~/.gitignore
    - color.ui auto
    - push.default current
{'fraction_non_alphanumeric': 0.12432656444260257, 'fraction_numerical': 0.0, 'mean_word_length': 3.169257340241796, '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': '5302255', 'n_tokens_mistral': 849, 'n_tokens_neox': 828, 'n_words': 211}