Any PR is welcome if below kept
- DON'T COMMIT FILES WITH 42 HEADER NOT REMOVED
- If possible, keep the Norm
Run init.sh
to initialize git pre-commit hook.
bash init.sh
Note: POSIX shell is not supported. use bash instead.
It will copy hooks/pre-commit.sh
into .git/hooks/pre-commit
, and set execute permission on it.
File history managed by VCS.
Just let VCS handle it, and stop polluting history :)
This pre-commit script will remove 42 header from Makefile
and *.{c,h,sh,mk}
files
Alternative: run shell command below before every commit, or never touch 42 header
find . -name '*.c' -o -name "*.h" -o -name "*.sh" -o -name "*.mk" -o -name "Makefile" \
| xargs -L1 sh hooks/scripts/42header-remover.sh
It will automatically download Github release assets for dependencies described in the ft_header_deps.properties
file.
After change dependencies, please run build/script/init-header-deps.sh
manually.