[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: kdesrc-build: git pre-commit hooks
From:       Allen Winter <winter () kde ! org>
Date:       2017-08-01 12:31:39
Message-ID: 3610904.xnxfUdImgy () zazzy
[Download RAW message or body]

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.




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic