Permalink
Commits on Apr 30, 2014
  1. Merge pull request #36 from Zearin/reorder-func

    Did you happen to enable git-hooks in the git-hooks repo?  It should have prevented you from making commits that were not signed off on.
    committed Apr 30, 2014
Commits on Apr 28, 2014
  1. Update `--help` output

    * No longer using `--severalunseparatewords` (but still accepts them for backwards compatibility)
    * Use `<angled brackets>` for mandatory arguments (`[square brackets]` are for optional arguments)
    Zearin committed Apr 28, 2014
  2. Use consistent function names

    Zearin committed Apr 28, 2014
  3. Use consistent braces for functions

    Zearin committed Apr 28, 2014
  4. Put related functions next to each other

    Zearin committed Apr 28, 2014
Commits on Feb 18, 2014
  1. Don't output error when checking files that have been removed and don…

    …'t exists.
    
    Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
    committed Feb 18, 2014
  2. Handle repository paths that contains spaces

    Issue #33
    
    Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
    committed Feb 18, 2014
Commits on Dec 5, 2013
  1. Merge pull request #29 from Zearin/patch-1

    Updated README to use markdown & edited for grammar, phrasing, and clarity
    committed Dec 5, 2013
Commits on Dec 2, 2013
Commits on Nov 7, 2013
  1. Remove .gitignore which was just ignoring vim swap files

    which really belong in users global .gitignore file.
    
    Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
    committed Nov 7, 2013
  2. Add the ability to remind users when committing to any repo without g…

    …it-hooks.
    
    It is easy to forget to install git-hooks in a repository you are using.
    A commit with no error message could both mean you don't have git-hooks
    installed and it can mean that you do have it installed, but your
    commit was perfect and there was no errors.
    
    The new option --installglobal creates a default .git template
    that is used by all future cloned repositories (and git init'd)
    that remind users that the repository doesn't have git-hooks
    installed.
    
    A number of projects I have been involved with used git-hooks,
    but founds its weakest point was that eventually someone would
    re-clone a repo and make commits with errors before turning
    git-hooks back on.  Another common problem was when we had
    multiple git repositories and git-hooks was only installed in
    some of them, but not all
    
    While it would be nice to be able to use --instalglobal to
    automatically turn on git-hooks on every future repo eventually
    some git repository on github would include a hook that would
    email <secret stuff> back home and all you would have to do
    would be to clone it to activate it which would be a "bad thing",
    but it can pester you without harm.
    
    Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
    committed Nov 7, 2013
  3. Behave much better when not in a git repository

    or when the repository is a bare repository
    
    Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
    committed Nov 7, 2013
  4. Add support for Git on windows where find doesn't have the -L option

    Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
    committed Oct 24, 2013
Commits on Oct 24, 2013
  1. If git hooks isn't installed explicitly say how to install it

    Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
    committed Oct 24, 2013
  2. In the event we can't rename hooks we should immediately fail.

    Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
    committed Oct 24, 2013
Commits on Oct 21, 2013
  1. Fix too many hooks reported in list_hooks_in_dir

    list_hooks_in_dir should report exactly the hooks that would be run with
    run_hooks. But the find command in list_hooks_in_dir does not limit itself to
    the scheme "folder_name/hook_name" but recurses infinitely through sub
    directories reporting all executable files. If your hooks are stored itself in
    a git repository then consequently also the files in .git/hooks are reported.
    
    This change sets the search depth exactly to two, so that the correct scripts
    are reported, e.g. :
        ~/.git_hooks/commit-msg/script1
    
    but not e.g. :
    
        ~/.git_hook/.git/hooks/commit-msg
        ~/.git_hooks/script2
        ~/.git_hooks/commit-msg/dir2/script3
    
    Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
    sercxanto committed with Aug 24, 2013
  2. Use /usr/bin/env in generated hook scripts

    Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
    committed Oct 21, 2013
  3. Add support for pre-push commit hook that was added in Git 1.8.2

    Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
    committed Oct 21, 2013
Commits on Jul 23, 2013
  1. Merge pull request #18 from mishanga/patch-1

    using /usr/bin/env
    committed Jul 23, 2013
Commits on Jul 22, 2013
  1. using /usr/bin/env

    bash can be placed in /usr/local/bin on FreeBSD
    mishanga committed Jul 22, 2013
Commits on Feb 7, 2013
  1. Merge pull request #14 from pblack/copyrights_with_entity

    Augmenting the copyright_year check to be able to check that a copyright...
    committed Feb 7, 2013
Commits on Feb 1, 2013
  1. Augmenting the copyright_year check to be able to check that a copyri…

    …ght exists for a specific entitfy for the current year.
    pblack-tresys committed Feb 1, 2013
Commits on Apr 9, 2012
  1. Add hook that checks the commit message for hints it should be split.

    Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
    committed Apr 9, 2012
Commits on Feb 13, 2012
  1. Merge pull request #10 from arikon/master

    Fix icefox/git-hooks#9: -L arg to find must precede path to find from
    committed Feb 13, 2012
Commits on Jan 25, 2012
  1. Don't re-install.

    Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
    jdunck committed with Oct 18, 2011
  2. When we find hooks also look for symbolic links.

    Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
    committed Jan 25, 2012
  3. Add another standard-help-flag

    Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
    Finkregh committed with Dec 10, 2010
  4. Remove non-posix shell command flags which is causing problems across…

    … OS's.
    
    Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
    committed Jan 25, 2012
  5. Fix whitespace errors introduced by

    7502217
    
    Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
    committed Jan 25, 2012
  6. Don't turn on set -e until after we test for the presence of aspell.

    Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
    committed Jan 25, 2012
  7. Merge pull request #6 from AlekSi/master

    Fix --about for signed-off-by hook
    committed Jan 25, 2012
Commits on Dec 11, 2011
Commits on Sep 16, 2011
  1. Merge pull request #3 from daniel/master

    Lion compability fix
    committed Sep 16, 2011