'core.excludesfile': '/home/' + grains['user'] + '/.gitignore',
'merge.tool': 'diffuse',
'merge.ff': 'true',
+ 'pull.rebase': 'false',
'push.default': 'simple',
'alias.lg': 'log --graph --pretty=format:\'%Cred%h%Creset %G? %ad %s %C(bold blue)<%an>%Creset %C(yellow)%d%Creset\' --date=short',
'alias.hist': 'log --graph --full-history --all --pretty=format:\'%Cred%h%Creset %G? %ad %s %C(bold blue)<%an>%Creset %C(yellow)%d%Creset\' --date=short',
'alias.struct': 'log --graph --full-history --all --pretty=format:\'%ad %s %Creset %C(yellow)%d%Creset\' --date=short --simplify-by-decoration',
'alias.co': 'checkout',
- 'alias.ci': 'commit -S',
- 'alias.commit': 'commit -S',
+ 'alias.ci': 'commit',
'alias.st': 'status',
'alias.vh': 'verify-commit HEAD',
'alias.vc': 'verify-commit',
'alias.tag': 'tag -s',
'alias.t': 'tag -s',
'alias.alias': '!req=$\'\\033[0;31m=\\033[0m\'; git config --get-regexp ^alias\. | sed -e s/^alias\.// -e "s/\ /\t$req\ /"',
- 'alias.rebase': 'rebase -S',
- 'alias.merge': 'merge -S',
+ 'alias.r': 'rebase',
+ 'alias.m': 'merge',
+ 'alias.pa': '!git remote | xargs -L1 git push --all',
+ 'sendemail.smtpserver': 'mail.friedersdorff.com',
+ 'sendemail.smtpuser': 'max',
+ 'sendemail.smtpencryption': 'tls',
+ 'sendemail.smtpserverport': '587',
}
%}
- user: {{ grains['user'] }}
{% endfor %}
+{% if grains['host'] in ["barium"] %}
+work_email:
+ git.config_set:
+ - name: user.email
+ - value: >-
+ maximilian.friedersdorff@envsys.co.uk
+ - global: True
+ - user: {{ grains['user'] }}
+
+work_gpg:
+ git.config_set:
+ - name: user.signingkey
+ - value: >-
+ B3030EB2
+ - global: True
+ - user: {{ grains['user'] }}
+{% endif %}
+
global gitignore:
file.managed:
- name: {{ grains['homedir'] }}/.gitignore