-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Krzysztof Czarnecki edited this page Oct 9, 2021
·
9 revisions
If you have Python set up, you're good to go. Run pip install mkcommit and you're done.
- Run
mkcommitto generate a Git commit message and commit changes (callsgit commit -munderneath). - Run
mkcommit -sto generate a Git commit message and print it to standard output. - Run
mkcommit -cto generate a Git commmit message and copy it to your clipboard. - Use
mkcommit -x "some commit message"to validate an existing commit message from the command line or as a Git Hook command (requireson_commit(msg)function to be implemented in the configuration file).
If you wish to point mkcommit to a specific configuration file, use mkcommit -f /path/to/.mkcommit.py. You can combine the -f flag with all the other available flags.
Check out the README for quickstart configuration info.
- Configuration - describes how to create and manage Python config files.
-
Include - describes the
includefunction that allows you to reuse configuration files accross repositories. - Validators - lists all available validators, how to use them and how to create your own.
-
Multiple Selection - describes how to handle
Keywordlists and other arbitrary objects withCommaSeparatedList. -
Suites - describes how to prepare your own reusable suites that can be shared between projects. Also describes how to use the built-in
semanticsuite. -
Hooks - describes how to use the
on_commitfunction definition to enablemkcommit -xhook mode. - Using Editors - prototypical functionality of triggering editors while editing longer commit messages
-
Interacting with Git - guides on how to interact with
gitdirectly