chore: rework directory structure
Signed-off-by: Matej Focko <me@mfocko.xyz>
This commit is contained in:
parent
1fbdeb0d21
commit
01225fd44d
169 changed files with 1410 additions and 1690 deletions
6
roles/user/git/tasks/main.yml
Normal file
6
roles/user/git/tasks/main.yml
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
- name: Create git config
|
||||
ansible.builtin.template:
|
||||
src: templates/gitconfig
|
||||
dest: ~/.gitconfig
|
||||
mode: 0640
|
42
roles/user/git/templates/gitconfig
Normal file
42
roles/user/git/templates/gitconfig
Normal file
|
@ -0,0 +1,42 @@
|
|||
[alias]
|
||||
scommit = commit --signoff
|
||||
graph = log --oneline --decorate --graph --all
|
||||
|
||||
[commit]
|
||||
gpgsign = true
|
||||
|
||||
[core]
|
||||
editor = code --wait
|
||||
excludesfile = /home/{{ target_user }}/.gitignore
|
||||
|
||||
[diff]
|
||||
tool = vscode-difftool
|
||||
|
||||
[difftool "vscode-difftool"]
|
||||
cmd = code --wait --diff $LOCAL $REMOTE
|
||||
|
||||
[gpg]
|
||||
program = gpg2
|
||||
|
||||
[init]
|
||||
defaultBranch = main
|
||||
|
||||
[pull]
|
||||
rebase = true
|
||||
|
||||
[rebase]
|
||||
autoStash = true
|
||||
|
||||
[tag]
|
||||
gpgSign = true
|
||||
|
||||
[user]
|
||||
name = {{ fullname }}
|
||||
email = {{ git_email }}
|
||||
signingkey = {{ gpg_signingkey }}
|
||||
|
||||
[includeIf "gitdir:~/git/github.com/packit/"]
|
||||
path = /home/mfocko/git/github.com/packit/.gitconfig
|
||||
|
||||
[includeIf "gitdir:~/git/gitlab.fi.muni.cz/"]
|
||||
path = /home/mfocko/git/gitlab.fi.muni.cz/.gitconfig
|
Loading…
Add table
Add a link
Reference in a new issue