aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-07-22using /usr/bin/envMikhail Troshev
bash can be placed in /usr/local/bin on FreeBSD
2013-02-06Merge pull request #14 from pblack/copyrights_with_entityBenjamin C Meyer
Augmenting the copyright_year check to be able to check that a copyright...
2013-02-01Augmenting the copyright_year check to be able to check that a copyright ↵Phil Black-Knight
exists for a specific entitfy for the current year.
2012-04-09Add hook that checks the commit message for hints it should be split.Benjamin C Meyer
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
2012-02-13Merge pull request #10 from arikon/masterBenjamin C Meyer
Fix icefox/git-hooks#9: -L arg to find must precede path to find from
2012-02-13Fix icefox/git-hooks#9: -L arg to find must precede path to find fromSergey Belov
2012-01-25Don't re-install.Jeremy Dunck
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
2012-01-25When we find hooks also look for symbolic links.Benjamin C Meyer
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
2012-01-25Add another standard-help-flagOluf Lorenzen
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
2012-01-25Remove non-posix shell command flags which is causing problems across OS's.Benjamin C Meyer
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
2012-01-25Fix whitespace errors introduced byBenjamin C Meyer
7502217953a8e8e5b56f0a531a16cfc14b825e82 Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
2012-01-25Don't turn on set -e until after we test for the presence of aspell.Benjamin C Meyer
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
2012-01-24Merge pull request #6 from AlekSi/masterBenjamin C Meyer
Fix --about for signed-off-by hook
2012-01-24Correct the copyright year and add a LICENSE file.Benjamin C Meyer
2011-12-11Fix --about for signed-off-by hook.Alexey Palazhchenko
2011-09-16Merge pull request #3 from daniel/masterBenjamin C Meyer
Lion compability fix
2011-09-16Lion compability.Daniel Eriksson
2011-09-05Change my mind on the previous commit making the new default .githooksBenjamin C Meyer
not .hooks to match other .git* files/directories. Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
2011-09-01Fix OS X sort -V breakageBenjamin C Meyer
The -V option to sort is not include in OS X's sort so special case OS X. Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
2011-09-01Include the directory .hooks inside the repository as one of the directories ↵Benjamin C Meyer
that are searched. Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
2010-06-19Revert "Mention the envvar GIT_HOOKS_VERBOSE to help debug hooks that exit ↵Benjamin C Meyer
with non-zero, but don't output an error" This reverts commit 536997d6d30467e2e9e401cca2cf6e7daa499665.
2010-06-19When listing hooks don't change the cwd, just use the GITDIR variableBenjamin C Meyer
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
2010-06-19When listing the hook_dirs use GITDIR for the project hooksBenjamin C Meyer
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
2010-06-19When listing hooks use GITDIR and pipe stderr to dev/nullBenjamin C Meyer
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
2010-06-19If the hooks are installed or not is important, put it on its own line in ↵Benjamin C Meyer
the output Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
2010-06-19Allow git config path to contain $HOME or other shell variables by expanding ↵Benjamin C Meyer
them with eval. Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
2010-06-19When listing hooks, the dir should always be a dir, so add / to the end of ↵Benjamin C Meyer
the dir. This allows the dir to be a symlink. Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
2010-06-19Tweak introduction sentance to the project to include the three types of hooks.Benjamin C Meyer
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
2010-06-19When a hook returns with non-zero report which hook last ran before exitingBenjamin C Meyer
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
2010-06-19Mention the envvar GIT_HOOKS_VERBOSE to help debug hooks that exit with ↵Benjamin C Meyer
non-zero, but don't output an error Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
2010-06-19Use rev-parse --git-dir to determine the location of the GITDIR.Benjamin C Meyer
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
2010-06-19Show explicity how to set the global hooks with the contrib directory as an ↵Benjamin C Meyer
example. Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
2010-06-19Try to clarify some sections of the README file to make it easier to seeBenjamin C Meyer
what the project does right off the bat and how to get it working. Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
2010-06-19Only set the hook variable when an argument is passed to hook_dirs, ↵Benjamin C Meyer
otherwise hook will be '/' and if there is no git config option will result in / being returned as a valid git hook which it is not Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
2010-06-19When printing the status claify that git-hooks is not installed in the ↵Benjamin C Meyer
current repository, not in general. Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
2010-06-19Change license of all code from the 4 clause license to the 3 clause licenseBenjamin C Meyer
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
2010-03-20Remove variable the is no longer usedBenjamin C Meyer
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
2010-03-20Verify that all required arguments are passed in and return with anBenjamin C Meyer
error if they are not. Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
2010-03-19Add the most important two hooks to the example listBenjamin C Meyer
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
2010-03-19Write up correct documentation for when git hooks --help is called.Benjamin C Meyer
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
2010-03-19Only echo the name of the script and hook if GIT_HOOKS_VERBOSE is set.Benjamin C Meyer
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
2010-03-19Display both the hook name and script nameBenjamin C Meyer
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
2010-03-19Rather than using an environment variable just use the configurationBenjamin C Meyer
option hooks.global. Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
2010-03-19Add a link to the official documentation in the READMEBenjamin C Meyer
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
2010-03-19Add a pre-receive hook that checks the amount of free space and warns if it ↵Benjamin C Meyer
is too low. Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
2010-03-17Add a new commit-msg hook that checks for duplicate Signed-off-by linesBenjamin C Meyer
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
2010-03-17Go through the README file and clarify portions of it.Benjamin C Meyer
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
2010-03-17Add a section to the README describing how to create hooksBenjamin C Meyer
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
2010-03-17Add a new pre-commit hook that checks for the current year in the copyright.Benjamin C Meyer
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
2010-03-17Add a commit-msg hook that checks that all commits have the Signed-off-by lineBenjamin C Meyer
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>