libreoffice-online/.git-hooks
Skyler Grey a7121252c0 fix(hooks): Replace git diff-index call
git-diff-index isn't always provided separately to the main git binary,
so we can't necessarily use that as the command. We should always be
able to use `git diff-index`, as the git binary will find files named
`git-foo` when you run command `git foo`, so this will work whether the
binary is separate or not

Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
Change-Id: Id705855eedfd7e12c0706a9c7638e0bfb911b3fd
2024-07-19 16:20:19 +02:00
..
commit-msg git hooks: commit msg: allow to opt in for auto-sign-off 2020-11-04 14:37:27 +01:00
post-merge Add also the pre-commit and post-merge hooks, they are useful too. 2020-10-07 15:04:58 +02:00
pre-commit fix(hooks): Replace git diff-index call 2024-07-19 16:20:19 +02:00
README git hooks: commit msg: allow to opt in for auto-sign-off 2020-11-04 14:37:27 +01:00

commit-msg
----------

This hooks supports the `commit.signOff` option.

This is a boolean value which lets you enable the -s/--signoff option of
commit by default.  Note: Adding the Signed-off-by: line to a commit should be
a conscious act and means that you certify you have the rights to submit this
work under the same open source license. Please see the README.CONTRIBUTING.md
document for further discussion. The option is ignored if the author and the
committer is not the same.