summaryrefslogtreecommitdiff
path: root/script/git-hooks/pre-commit-hook
AgeCommit message (Collapse)AuthorFilesLines
2022-03-03script: Reformat shell scriptsAndreas Schneider1-5/+5
shfmt -f script/ | xargs shfmt -w -p -i 0 -fn Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2018-04-26Add a wrapper script as git pre-commit hookRalph Boehme1-0/+17
When developer mode is enabled, the wrapper script "script/git-hooks/pre-commit-hook" gets installed as .git/hooks/pre-commit and calls "script/git-hooks/pre-commit-script". This way we can later modify the "script/git-hooks/pre-commit-script" without the need to ever change the installed commit hook itself. Signed-off-by: Ralph Boehme <slow at samba.org> Reviewed-by: Martin Schwenke <martin at meltin.net> Reviewed-by: Jeremy Allison <jra at samba.org>