This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# 文法チェック対象の拡張子 | |
extensions='\.(php)$' | |
# トップレベルディレクトリを絶対パスで取得 例)/home/hoge/work/ | |
root=$(git rev-parse --show-toplevel) | |
# 1. コミットに登録されたファイル名一覧を取得 | |
# 2. 指定拡張子のみに絞り込み |