kdesrc-build: git pre-commit hooks

Michael Pyne mpyne at kde.org
Tue Aug 1 02:05:09 BST 2017


On Sat, Jul 29, 2017 at 06:24:54PM -0400, Allen Winter wrote:
> Howdy,
> 
> Is there a way to add a git hooks automagically with the git clones done by kdesrc-build?
> 
> I have a pre-commit hook that I'd like to have for all my kde src repos.
> also I have a pre-push hook , but that's less important to me.
> 
> a post clone command, something as simple this would be enough:
> ln -s  /path/to/my/githooks/pre-commit.py .git/hooks/pre-commit

That sounds fine by me.  This would probably be a kdesrc-buildrc config
knob that the user should set... do you have an idea on what that would
look like?  Path a user-defined command to run?  Path to a directory
containing specially-named hooks?  Something else?

Regards,
 - Michael Pyne




More information about the kde-core-devel mailing list