File: post-commit

package info (click to toggle)
magit 4.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,084 kB
  • sloc: lisp: 28,431; makefile: 430; sh: 35
file content (13 lines) | stat: -rwxr-xr-x 315 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
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-commit) ${args[@]})"
fi

if [[ -x "$SHADOWED_GITHOOK_DIRECTORY" ]]
then
    "$SHADOWED_GITHOOK_DIRECTORY/$(basename $0)" "$@"
fi