New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

git-auto-commit-msg

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-auto-commit-msg

Automatically generates a conventional commit message

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

git-auto-commit-msg Conventional Commits Build Status

git-auto-commit-msg attempts to generate a conventional commit message from any changed files found in the working tree.

One or more pathspec arguments can be passed to optionally consider only the changes relative to those paths, as in git status [<pathspec>...].

Installation

npm install -g git-auto-commit-msg

Usage

By default, a simple summary of changed files is generated from the index.

$ for x in $(seq 1 3); do touch file-$x; done
$ git add -A
$ git-auto-commit-msg
add file-1, file-2 and 1 more

As stated above, paths can be restricted by one or more pathspec arguments, even if other files are also present in the index.

$ for x in $(seq 1 5); do touch file-$x; done
$ git add -A
$ git-auto-commit-msg file-[12345]
add file-1, file-2 and 1 more

Notice that the message only mentions three files, even though five were added to the index.

The docs: prefix is added if the changes are entirely limited to documentation paths.

$ git-auto-commit-msg README.md CHANGELOG.md docs examples example
docs: update README.md

License

See the LICENSE file.

Keywords

git

FAQs

Package last updated on 09 Dec 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts