This package has been deprecated

Author message:

lucky-commit has been rewritten in C to improve performance, and the JavaScript package is no longer maintained. See https://github.com/not-an-aardvark/lucky-commit for installation instructions.

lucky-commit

0.2.3 • Public • Published

lucky-commit

Make your git commits lucky!

What?

With this simple command, you can change the start of your git commit hashes to whatever you want.

$ git log
1f6383a (HEAD -> master) Some commit
$ npm install -g lucky-commit
$ lucky-commit
$ git log
0000000 (HEAD -> master) Some commit

As a demonstration, see the latest commit in this repository.

How?

lucky-commit amends your commit messages by adding a few characters of various types of whitespace to the end, and keeps hashing new messages until it gets the right value. By default, it will keep searching until it finds a hash starting with "0000000", but this can be changed by simply passing the desired hash as a parameter.

$ lucky-commit 1010101
$ git log
1010101 (HEAD -> master) Some commit

On average, this requires the computation of 167 sha1 hashes, which takes about 20 minutes on my laptop.

Why?

¯\_(ツ)_/¯

Readme

Keywords

Package Sidebar

Install

npm i lucky-commit

Weekly Downloads

1

Version

0.2.3

License

MIT

Last publish

Collaborators

  • not-an-aardvark