kdesrc-build: git pre-commit hooks
winter at kde.org
Tue Aug 1 13:31:39 BST 2017
On Monday, July 31, 2017 9:05:09 PM EDT Michael Pyne wrote:
> 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?
actually, I think using the init.templatedir variable in ~/.gitconfig is the way to go.
I had forgotten about that.
More information about the kde-core-devel