is-unautosquashed-commit-message
Check if a given value is a message of Git commit that'll be melded into another by git -i --autosquash
:
When the commit log message begins with "squash! …" (or "fixup! …"), and there is a commit whose title begins with the same …, automatically modify the todo list of rebase -i so that the commit marked for squashing comes right after the commit to be modified, and change the action of the moved commit from
pick
tosquash
(orfixup
).
; //=> false; //=> true
Installation
npm install is-unautosquashed-commit-message
API
;
isUnautosquashedCommitMessage(message)
message: any type (but always return false
when non-string value is passed)
Return: boolean
// Returns `true`;;;; // Returns `false`;;;;;;
License
MIT No Attribution © 2019 Shinnosuke Watanabe