config/git: add global hooksPath
This commit is contained in:
parent
537bcf9d84
commit
d401be9aab
|
@ -2,6 +2,7 @@
|
||||||
autocrlf = input
|
autocrlf = input
|
||||||
editor = nvim
|
editor = nvim
|
||||||
pager = diffr --colors refine-added:none:background:0x33,0x66,0x33:bold --colors added:none:background:0x33,0x44,0x33 --colors refine-removed:none:background:0x66,0x33,0x33:bold --colors removed:none:background:0x44,0x33,0x33 | less --RAW-CONTROL-CHARS --quit-on-intr
|
pager = diffr --colors refine-added:none:background:0x33,0x66,0x33:bold --colors added:none:background:0x33,0x44,0x33 --colors refine-removed:none:background:0x66,0x33,0x33:bold --colors removed:none:background:0x44,0x33,0x33 | less --RAW-CONTROL-CHARS --quit-on-intr
|
||||||
|
hooksPath = .dev/githooks
|
||||||
[interactive]
|
[interactive]
|
||||||
diffFilter = diffr --colors refine-added:none:background:0x33,0x66,0x33:bold --colors added:none:background:0x33,0x44,0x33 --colors refine-removed:none:background:0x66,0x33,0x33:bold --colors removed:none:background:0x44,0x33,0x33
|
diffFilter = diffr --colors refine-added:none:background:0x33,0x66,0x33:bold --colors added:none:background:0x33,0x44,0x33 --colors refine-removed:none:background:0x66,0x33,0x33:bold --colors removed:none:background:0x44,0x33,0x33
|
||||||
[submodule]
|
[submodule]
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
upCount=$(git rev-list --count HEAD...@{push} 2>/dev/null)
|
upCount=$(git rev-list --count HEAD...@{push} 2>/dev/null)
|
||||||
count=$(expr $a + 3 \& ${upCount:-0} \> 3 \| 6)
|
count=$(expr ${upCount:-0} + 3 \& ${upCount:-0} \> 3 \| 6)
|
||||||
git --no-pager lo -$count --color=always --graph HEAD @{push} | head -9 || git --no-pager lo -7
|
git --no-pager lo -$count --color=always --graph HEAD @{push} | head -9 || git --no-pager lo -7
|
||||||
|
|
Loading…
Reference in New Issue