Files
odfstudio/.git-hooks
Pierre 2ab69c32cf tdf#169010 obsolete generate-style-excludelist and cleanup excludelist
perlify .git-hooks/pre-commit; for readability, should clarify git calls
perlify reformat-formatted-files;

Change-Id: I947848738e0f80b992ed1852caa3f81ea201bbc6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192913
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2026-02-04 14:36:58 +01:00
..

Git hooks are executable scripts you can place in $GIT_DIR/hooks directory to trigger action at certain points.

To install manually, run:

  cd .git/hooks && ln -s ../../.git-hooks/* ./
  
When you using GIT for Windows, you need Windows links
Open a Dos-Box with admin rights then
  cd .git/hooks
  FOR /F " usebackq " %i IN (`dir /b ..\..\.git-hooks`) DO del /as /f %i & del %i & mklink %i ..\..\.git-hooks\%i
the error 'Could Not Find ...' can be ignore

There are two groups of these hooks: client side and server side.

The client-side hooks:
are for client operations such as committing and merging.

The server-side hooks:
are for Git server operations such as receiving pushed commits.

See Also [ http://git-scm.com/book/en/Customizing-Git-Git-Hooks ]