Re: kdesrc-build: git pre-commit hooks

2017-08-01 Thread Allen Winter
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.






Re: kdesrc-build: git pre-commit hooks

2017-07-31 Thread Michael Pyne
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


kdesrc-build: git pre-commit hooks

2017-07-29 Thread Allen Winter
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