Push / Pull hooks. #42
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi @badele!
I'm making this PR not be accepted at all, but to explore the direction that we're going to.
I mean, I tried to implement the hook system very quick and dirty just to give us a way to check if it's what we're looking for at all.
I don't really know if I get you idea correctly (I think I was...), but I found the hook system too broad and general to be really useful (at least for what I was thinking about it). I mean the way that I implemented it, it gives too little context about the repository for me work with.
For example, I just have the repo path (name) and with that I'll need roll all my scripting to iterate in the repo's branches, etc.
gitcheckis already doing that in it's default operation.I would prefer that
gitcheckcall my hook for each branch that needs a push or a pull instead, this way I'll need roll out the scripting to check if it should actually pull, merge, push, etc.I hope that I made myself clear, and sorry for the delay to implement this, I had some very busy time the last two weeks!
PS: This is not a PR to be accepted so it's missing a lot of stuff that I'll be included, don't pay attention to that, but to the general idea!
Thanks!