X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=states%2Fgit%2Finit.sls;h=097f4b93cfa392a84daa77512a81c58af99e6954;hb=21ed4ff542f29c47169d068d4a95204e4320c04b;hp=3d1e0df74dcd6697767e7c98978a629ad4e44cd0;hpb=0a4e530904c17216de5e1a6b4c28e00705e26937;p=max%2Fsaltfiles.git diff --git a/states/git/init.sls b/states/git/init.sls index 3d1e0df..097f4b9 100644 --- a/states/git/init.sls +++ b/states/git/init.sls @@ -15,20 +15,35 @@ include: 'core.excludesfile': '/home/' + grains['user'] + '/.gitignore', 'merge.tool': 'diffuse', 'merge.ff': 'true', + 'pull.rebase': 'false', 'push.default': 'simple', - 'alias.lg': 'lg = log --graph --pretty=format:\'%Cred%h%Creset %G? %ad %s %C(bold blue)<%an>%Creset %C(yellow)%d%Creset\' --date=short', + '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': 'struct = log --graph --full-history --all --pretty=format:\'%ad %s %Creset %C(yellow)%d%Creset\' --date=short --simplify-by-decoration', + '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', 'alias.st': 'status', + 'alias.vh': 'verify-commit HEAD', + 'alias.vc': 'verify-commit', + 'alias.vt': 'tag -v', + '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.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', } %} {% for var,val in git_confs.items() %} {{ var }}: git.config_set: - - value: {{ val }} + - value: >- + {{ val }} - global: True - user: {{ grains['user'] }} {% endfor %}