summaryrefslogtreecommitdiff
path: root/dotfiles/git
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@fretlink.com>2018-10-20 17:04:44 +0200
committerIsmaël Bouya <ismael.bouya@fretlink.com>2018-10-20 17:04:44 +0200
commit1950387f0b222d9ca51b573a4b287f139e5248c5 (patch)
treea57f221e43fc7896288b9ff497c24e7d05c366fa /dotfiles/git
downloaddotdrop-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/config23
-rwxr-xr-xdotfiles/git/config_files/git/templates_fretlink/hooks/pre-push8
-rw-r--r--dotfiles/git/config_files/tig/config19
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
3set -e
4
5echo "[+] Running the linter"
6make lint
7
8exit 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 @@
1set editor-line-number = yes
2set mouse = yes
3set mouse-scroll = 5
4set refresh-mode = auto
5set line-graphics = utf-8
6
7set pager-view-line-number = yes,interval=10
8set blame-view-line-number = yes,interval=10
9set grep-view-line-number = yes,interval=10
10set diff-view-line-number = yes,interval=10
11set log-view-line-number = yes,interval=10
12set blob-view-line-number = yes,interval=10
13set stage-view-line-number = yes,interval=10
14
15set main-view-commit-title = graph=v1,refs=yes
16set refs-view-commit-title = graph=v1,refs=yes
17set stash-view-commit-title = graph=v1,refs=yes
18
19set refs-view-ref = display=yes