logseq-plugin-git
logseq-plugin-git copied to clipboard
Added Custom Commit Message
I have added the feature for users to insert a custom message within their Git commit.
I started by adding two settings: a select field with four options - ‘Custom Message’, ‘Default Message’, ‘Custom Message With Date’, and ‘Default Message With Date’, and a text field in where users can personalize their commit messages.
Explaination now for the settings:
- The default setting is ‘Default Message With Date’, which leaves the behavior of the plugin unchanged.
- ‘Default Message’ option, I have simply removed the date indication.
- ‘Custom Message’ option, simply the function takes the text in the text field added. I have implemented appropriate checks to ensure that if the field is left empty, the default message with the date is sent, thus not altering the original behavior.
- ‘Custom Message With Date’ option functions the same as the ‘Custom Message’ option but adds the date indication.
This enhancement provides users with more flexibility and personalization in their Git commit messages.