-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose verbose and debug flags to vcsh hooks? #175
Comments
@nfarrar I think this could be done and would be cool 😉 |
Right now I've added a bunch of verbose information to my hooks (for testing while writing them) ... it'd be nice to leave those in now that they're working and have it hidden except when needed (i.e. something breaks). |
@nfarrar yeah that's an idea 👍. I tend to use that on my usual git repository (with a little message to know it's working though 😝). |
Just checking back in on this. :) Rewrote my hooks with some configurable verbosity. Would be awesome to expose these options to them: |
Right now hooks are child processes, in principle they could be written in any programming language. If this will stays that way the best that can be done is to export the env variables |
This makes it possible to react to verbose and debug state from hooks. Fixes: #175 Signed-off-by: Richard Hartmann <[email protected]>
The one risk I can see is that @ao2 @nfarrar @vdemeester What about #291 ? Does that help with your use case? |
Trivial test hook script to verify:
|
Yes. I think exposing these via the environment variables rather than passing them any CLI flags is the right thing to do. This will also translate nicely to #276. |
As an update, #292 is an even more aggressive interpretation of this feature request. This should cover ALL that things. |
Thanks folks, this looks nice! |
Would it be possible to expose the debug and verbose flags to vcsh hooks?
The text was updated successfully, but these errors were encountered: