git hooks for PKGBUILD
This commit is contained in:
parent
1340d9c485
commit
b1168ac6fc
1
Makefile
1
Makefile
@ -54,6 +54,7 @@ ssh:
|
|||||||
git:
|
git:
|
||||||
ln -s $(PWD)/sub/git/gitconfig ~/.gitconfig
|
ln -s $(PWD)/sub/git/gitconfig ~/.gitconfig
|
||||||
ln -s $(PWD)/sub/git/gitignore ~/.gitignore
|
ln -s $(PWD)/sub/git/gitignore ~/.gitignore
|
||||||
|
ln -s $(PWD)/sub/git/hooks ~/.githooks
|
||||||
|
|
||||||
ranger:
|
ranger:
|
||||||
echo "sudo pacman -S highlight ttf-joypixels noto-fonts-emoji ueberzug poppler"
|
echo "sudo pacman -S highlight ttf-joypixels noto-fonts-emoji ueberzug poppler"
|
||||||
|
|||||||
@ -2,6 +2,7 @@
|
|||||||
excludesfile = ~/.gitignore
|
excludesfile = ~/.gitignore
|
||||||
editor = nvim
|
editor = nvim
|
||||||
fileMode = false
|
fileMode = false
|
||||||
|
hooksPath = /home/kan/.githooks
|
||||||
|
|
||||||
[init]
|
[init]
|
||||||
defaultBranch = master
|
defaultBranch = master
|
||||||
|
|||||||
7
sub/git/hooks/pre-commit
Executable file
7
sub/git/hooks/pre-commit
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
if [ -e PKGBUILD ]
|
||||||
|
then
|
||||||
|
makepkg --printsrcinfo > .SRCINFO
|
||||||
|
git add .SRCINFO
|
||||||
|
exit
|
||||||
|
fi
|
||||||
Loading…
x
Reference in New Issue
Block a user