You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are many environment variables which are set and exported when the hooks run. But there is no official documentation as to what is available. This makes users to go through the code and use what they find. I am not sure if everything available in the code should really be used unless designed for that purpose and documented.
For example I would like to use VCSH_REPO_NAME in the post-clone hook to initialize any submodules in the repo. Similarly VCSH_COMMAND in the pre-command hook to identify the delete command and deinit any submodules before delete so that I do not have directories lying around even after a delete. But none of these are documented in the man page.
It will be better than nothing if we can just identify and list the valid ones in the man page.
The text was updated successfully, but these errors were encountered:
There are many environment variables which are set and exported when the hooks run. But there is no official documentation as to what is available. This makes users to go through the code and use what they find. I am not sure if everything available in the code should really be used unless designed for that purpose and documented.
For example I would like to use VCSH_REPO_NAME in the post-clone hook to initialize any submodules in the repo. Similarly VCSH_COMMAND in the pre-command hook to identify the
delete
command and deinit any submodules before delete so that I do not have directories lying around even after a delete. But none of these are documented in the man page.It will be better than nothing if we can just identify and list the valid ones in the man page.
The text was updated successfully, but these errors were encountered: