Skip to content
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

fix: add optional arguments to signatures #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Rasmus-Bertell
Copy link

If the commands are run with extra arguments without them being defined the command fails. This fix allows calling the pre-push and prepare-commit-msg hooks with all their arguments while still retaining the old behavior since the arguments are optional.

Reference: https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks

closes #31

If the commands are run with extra arguments without them being defined
the command fails. This fix allows calling the `pre-push` and
`prepare-commit-msg` hooks with all their arguments while still
retaining the old behavior since the arguments are optional.

Reference: https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks

closes igorsgm#31
Copy link

what-the-diff bot commented Sep 15, 2024

PR Summary

  • Enhanced PrePush Command
    The PrePush command has been updated to accept additional optional parameters. This allows more flexibility when pushing changes to a repository as you can now specify a remote and url.

  • Improved PrepareCommitMessage Command
    The PrepareCommitMessage command now takes additional optional parameters. This provides a more granular control over commit messages by letting you specify a type and sha.

@brunogoossens
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pre-push hook error - no arguments expected
2 participants