Comments (3)
Here is the related bug raise for Gerrit: https://bugs.chromium.org/p/gerrit/issues/detail?id=5999
from git-good-commit.
Hi @ssbarnea,
As described on the #20:
Multiple hooks (chaining) has unfortunately been a long running challenge with Git.
I appreciate the users of git-good-commit may run into this issue, however I think that resolving it is out of scope for any single commit hook, this project included. There's no agreed standard, so if every hook tried to offer it's own solution for chaining hooks they'd likely end up conflicting.
Rather than implement a solution within the hook itself I'd prefer to link to documentation so that users that require the hook chaining can solve this issue for themselves, e.g. http://stackoverflow.com/a/8734391
So I think this issue is worth addressing, but I think the solution needs to come in the way of documentation rather than the implementation of a concrete solution in the project itself.
Tom
from git-good-commit.
I am aware about that SO DYI workaround but it doesn't scale at all. My current working set of git repos is about ~100-150 repos.
As you observed I opened a CR on Gerrit itself for implementing this multi-hooks support and they were happy about the implementation. The change was not merged yet because we had some problems with test execution but we will get it sorted in the end.
Once we have this merged, Gerrit hook will be the first hook that implement it but also the most common hook in the wild.
After this you will be able to replicate the same functionality in your hook.
from git-good-commit.
Related Issues (16)
- Does not ignore trailing spaces
- Edit option not working HOT 2
- Use standard ~/.config/git location instead of ~/.git-templates one HOT 3
- Add support for Sem-Ver pseudo-headers inside commit messages HOT 2
- Hooks should return failure when spotting warnings on non-interactive console HOT 1
- implement semantic commits HOT 2
- Add CHANGELOG.md
- Add update instructions
- Add additional protocols in URL_REGEX
- Suggests Capitalising when numbers in first word subject HOT 1
- Ignore autosquash prefixes in subject line validations
- Strange behavior on edit with Neovim
- Ignore imperative matches in the rest of the commit message HOT 2
- How to use without -m option and another question HOT 1
- Does not correctly mirror git's editor config
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from git-good-commit.