<commit_before>{% import 'dotfiles.jinja' as dotfiles with context %}

git.config:
  file.managed:
    - name: {{ dotfiles.home }}/.config/git/config
    - source: salt://git/config
    - user: {{ dotfiles.user }}
    - group: {{ dotfiles.user }}
    - mode: 644
    - dir_mode: 755
    - makedirs: True

git.ignore:
  file.managed:
    - name: {{ dotfiles.home }}/.config/git/ignore
    - source: salt://git/ignore
    - user: {{ dotfiles.user }}
    - group: {{ dotfiles.user }}
    - mode: 644
    - dir_mode: 755
    - makedirs: True<commit_msg>git: install git and git-crypt<commit_after>{% import 'dotfiles.jinja' as dotfiles with context %}

git.install:
  pkg.installed:
    - name: git

git.config:
  file.managed:
    - name: {{ dotfiles.home }}/.config/git/config
    - source: salt://git/config
    - user: {{ dotfiles.user }}
    - group: {{ dotfiles.user }}
    - mode: 644
    - dir_mode: 755
    - makedirs: True

git.ignore:
  file.managed:
    - name: {{ dotfiles.home }}/.config/git/ignore
    - source: salt://git/ignore
    - user: {{ dotfiles.user }}
    - group: {{ dotfiles.user }}
    - mode: 644
    - dir_mode: 755
    - makedirs: True

{% if grains['os'] == 'Debian' %}
# On arch it need to be install from AUR
git-crypt.install:
  pkg.installed:
    - name: git-crypt
    - fromrepo: testing
{% endif %}

{'fraction_non_alphanumeric': 0.16429107276819205, 'fraction_numerical': 0.01800450112528132, 'mean_word_length': 2.351758793969849, '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': '288032', 'n_tokens_mistral': 509, 'n_tokens_neox': 470, 'n_words': 108}