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

put together git commit alias to act as interactive pre-commit #24

Open
masukomi opened this issue Jun 27, 2018 · 0 comments
Open

put together git commit alias to act as interactive pre-commit #24

masukomi opened this issue Jun 27, 2018 · 0 comments

Comments

@masukomi
Copy link
Owner

git doesn't support interactive pre-commit hooks. the current version of the code hijacks the process to make that work, but then vim (or whatever editor) is screwed up when you try and edit the commit message (if not using -m "foo")

suggested solution:

  1. remove the code that enables it to be used a pre-commit hook. it's not worth the consequences
    2.put together a tool / shell script / whatever that can be used as a replacement for git commit

tool should:

  • check if changelog is present in commit files
  • ask user if they want to add one
  • call git commit creating one or skipping creation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant