Setup to use DCPAM Git repository


In DCPAM Git source codes, Japanese letters are used to describe comments. In order to avoid to mix Japanese character codes, only UTF-8 is accepted. It is recommended to set hooks to avoid commiting source codes with character codes other than UTF-8. Example is shown below.




Some rules

  • Only UTF-8 for commit messages is accepted.
  • Only UTF-8 for source codes is accepted.

commit-msg hook

This is an example of commit-msg script.

> cd .git/hooks

Place a commit-msg script.

> chmod 775 commit-msg
> cd ../..

pre-commit フックの設定

This is an example of pre-commit script.

> cd .git/hooks

Place a pre-commit script.

> chmod 775 pre-commit
> cd ../..