diff options
author | Ismaël Bouya <ismael.bouya@fretlink.com> | 2018-10-20 17:04:44 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@fretlink.com> | 2018-10-20 17:04:44 +0200 |
commit | 1950387f0b222d9ca51b573a4b287f139e5248c5 (patch) | |
tree | a57f221e43fc7896288b9ff497c24e7d05c366fa /dotfiles/git | |
download | dotdrop-1950387f0b222d9ca51b573a4b287f139e5248c5.tar.gz dotdrop-1950387f0b222d9ca51b573a4b287f139e5248c5.tar.zst dotdrop-1950387f0b222d9ca51b573a4b287f139e5248c5.zip |
Validation initiale
Diffstat (limited to 'dotfiles/git')
-rw-r--r-- | dotfiles/git/config_files/git/config | 23 | ||||
-rwxr-xr-x | dotfiles/git/config_files/git/templates_fretlink/hooks/pre-push | 8 | ||||
-rw-r--r-- | dotfiles/git/config_files/tig/config | 19 |
3 files changed, 50 insertions, 0 deletions
diff --git a/dotfiles/git/config_files/git/config b/dotfiles/git/config_files/git/config new file mode 100644 index 0000000..5565c38 --- /dev/null +++ b/dotfiles/git/config_files/git/config | |||
@@ -0,0 +1,23 @@ | |||
1 | [user] | ||
2 | signingkey = DC384748709D2619FF2867216D0CAFFDDB1CFE90 | ||
3 | {%@@ if profile in role and role[profile] == "fretlink" @@%} | ||
4 | email = ismael.bouya@fretlink.com | ||
5 | {%@@ else @@%} | ||
6 | email = ismael.bouya@normalesup.org | ||
7 | {%@@ endif @@%} | ||
8 | name = Ismaël Bouya | ||
9 | [commit] | ||
10 | gpgsign = true | ||
11 | verbose = true | ||
12 | [push] | ||
13 | gpgSign = if-asked | ||
14 | {%@@ if profile in role and role[profile] == "fretlink" @@%} | ||
15 | [fretlink] | ||
16 | remote-name = upstream | ||
17 | {%@@ endif @@%} | ||
18 | [log] | ||
19 | showSignature = true | ||
20 | {%@@ if profile in role @@%} | ||
21 | [init] | ||
22 | templateDir = ~/.config/git/templates_{{@@ role[profile] @@}} | ||
23 | {%@@ endif @@%} | ||
diff --git a/dotfiles/git/config_files/git/templates_fretlink/hooks/pre-push b/dotfiles/git/config_files/git/templates_fretlink/hooks/pre-push new file mode 100755 index 0000000..19088c9 --- /dev/null +++ b/dotfiles/git/config_files/git/templates_fretlink/hooks/pre-push | |||
@@ -0,0 +1,8 @@ | |||
1 | #!/usr/bin/env bash | ||
2 | |||
3 | set -e | ||
4 | |||
5 | echo "[+] Running the linter" | ||
6 | make lint | ||
7 | |||
8 | exit 0 | ||
diff --git a/dotfiles/git/config_files/tig/config b/dotfiles/git/config_files/tig/config new file mode 100644 index 0000000..e9cdf17 --- /dev/null +++ b/dotfiles/git/config_files/tig/config | |||
@@ -0,0 +1,19 @@ | |||
1 | set editor-line-number = yes | ||
2 | set mouse = yes | ||
3 | set mouse-scroll = 5 | ||
4 | set refresh-mode = auto | ||
5 | set line-graphics = utf-8 | ||
6 | |||
7 | set pager-view-line-number = yes,interval=10 | ||
8 | set blame-view-line-number = yes,interval=10 | ||
9 | set grep-view-line-number = yes,interval=10 | ||
10 | set diff-view-line-number = yes,interval=10 | ||
11 | set log-view-line-number = yes,interval=10 | ||
12 | set blob-view-line-number = yes,interval=10 | ||
13 | set stage-view-line-number = yes,interval=10 | ||
14 | |||
15 | set main-view-commit-title = graph=v1,refs=yes | ||
16 | set refs-view-commit-title = graph=v1,refs=yes | ||
17 | set stash-view-commit-title = graph=v1,refs=yes | ||
18 | |||
19 | set refs-view-ref = display=yes | ||