diff options
| author | Jack Jamison <jackqjamison@gmail.com> | 2026-07-05 01:19:30 -0400 |
|---|---|---|
| committer | Jack Jamison <jackqjamison@gmail.com> | 2026-07-05 01:19:30 -0400 |
| commit | bdf9a71ab7baa2b1de9abcfd5df1a9107a55d141 (patch) | |
| tree | c4524e6c41aa5107211103401dabfaefc81aa882 /.config/emacs/lisp/magit/git-hooks/post-rewrite | |
| parent | fe3984f541bd32bdfa418afb305b614176b55ca0 (diff) | |
add a bunch of emacs packages HELP
Diffstat (limited to '.config/emacs/lisp/magit/git-hooks/post-rewrite')
| -rwxr-xr-x | .config/emacs/lisp/magit/git-hooks/post-rewrite | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/.config/emacs/lisp/magit/git-hooks/post-rewrite b/.config/emacs/lisp/magit/git-hooks/post-rewrite new file mode 100755 index 0000000..128ddaa --- /dev/null +++ b/.config/emacs/lisp/magit/git-hooks/post-rewrite @@ -0,0 +1,13 @@ +#!/usr/bin/env bash + +if [[ "$INSIDE_EMACS" == *magit ]] +then + for arg in "$@"; do args+="\"$arg\""; done + $GIT_EDITOR --eval \ + "(magit-run-git-hook '(common-post-commit post-rewrite) ${args[@]})" +fi + +if [[ -x "$SHADOWED_GITHOOK_DIRECTORY" ]] +then + "$SHADOWED_GITHOOK_DIRECTORY/$(basename $0)" "$@" +fi |
