git-verify-commit
This commit is contained in:
parent
ac2076fc03
commit
ba3b2ac1c9
10
.zshrc
10
.zshrc
|
@ -82,6 +82,16 @@ if __name__ == \"__main__\":
|
||||||
function countlines() {
|
function countlines() {
|
||||||
find . -type f -name "$1" -exec wc -l {} \; | awk '{print $0} {total += $1} END {print "Total lines:", total}'
|
find . -type f -name "$1" -exec wc -l {} \; | awk '{print $0} {total += $1} END {print "Total lines:", total}'
|
||||||
}
|
}
|
||||||
|
function git-verify-commit () {
|
||||||
|
git verify-commit $1
|
||||||
|
ret=$?
|
||||||
|
if [ $ret -ne 0 ]; then
|
||||||
|
echo "Commit is not signed."
|
||||||
|
else
|
||||||
|
echo "OK"
|
||||||
|
fi
|
||||||
|
return $ret
|
||||||
|
}
|
||||||
|
|
||||||
### ---- zsh options -------------------------------------
|
### ---- zsh options -------------------------------------
|
||||||
setopt autocd
|
setopt autocd
|
||||||
|
|
Loading…
Reference in New Issue