update packages
This commit is contained in:
6
lisp/magit/githooks/config
Normal file
6
lisp/magit/githooks/config
Normal file
@@ -0,0 +1,6 @@
|
||||
# -*- mode: gitconfig -*-
|
||||
[hook "magit-common-post-commit"]
|
||||
event = post-commit
|
||||
event = post-merge
|
||||
event = post-rewrite
|
||||
command = magit-run-git-hook magit-common-git-post-commit-functions
|
||||
8
lisp/magit/githooks/magit-run-git-hook
Executable file
8
lisp/magit/githooks/magit-run-git-hook
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
if [ -n "$MAGIT_HOOK_EDITOR" ]
|
||||
then
|
||||
for arg in "$@"; do args+="\"$arg\""; done
|
||||
$MAGIT_HOOK_EDITOR --eval "(magit-run-git-hook ${args[@]})"
|
||||
else
|
||||
true
|
||||
fi
|
||||
Reference in New Issue
Block a user