pkg.soopen package index

brew / rank 9636

Install lucky-commit with Homebrew, MacPorts, Nix, pacman

Customize your git commit hashes! Version 2.2.5 via Homebrew; verified from local package data. Also installable with nix: nix profile install nixpkgs#lucky-commit.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install lucky-commit

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install lucky-commit

MacPorts ports tree · devel/lucky-commit/Portfile · source: api.github.com

Linux

Nixverified · 92%
nix profile install nixpkgs#lucky-commit

nixpkgs package indexes · pkgs/by-name/lu/lucky-commit/package.nix · source: api.github.com

Arch Linux pacmanverified · 92%
sudo pacman -S lucky-commit

Arch Linux sync databases · lucky-commit · source: geo.mirror.pkgbuild.com

overview

Package summary

Customize your git commit hashes!

Commands and aliases

  • lucky_commit

history

Project history and usage

lucky-commit is a small Rust command-line tool for rewriting the current Git commit so that its object hash begins with a chosen prefix, defaulting to a run of zeroes.

Project history

The project was made public on GitHub in February 2016. Its README explains the core trick: amend the commit message by appending harmless whitespace, retrying messages until Git computes a hash with the requested prefix. The current implementation is Rust-based and can use OpenCL for GPU-accelerated searching, while older branches preserve earlier Node.js, C, and pure-Rust implementations.

Adoption history

The tool spread as a programmer curiosity rather than infrastructure. Official installation notes mention Cargo, Arch Linux, Funtoo, and Homebrew packaging, and the repository has roughly two thousand GitHub stars, which is notable for a deliberately niche Git-hash novelty.

How it is used

Users run `lucky_commit` after creating a commit; the command amends the commit until the short hash matches a prefix such as `0000000` or a user-supplied pattern with wildcard placeholders. The README also documents benchmarking and behavior for GPG-signed commits and Git SHA-256 repositories.

Why package nerds care

For package and Git nerds, lucky-commit is a compact demonstration that commit IDs are content-addressed objects but still manipulable by changing semantically inert data. Its Homebrew formula gives macOS users an easy way to install a tool that is mostly useful for demos, badges, jokes, and understanding Git object hashing.

Timeline

  • 2016: Public GitHub repository created.
  • 2016 onward: Cargo installation documented as the primary upstream installation path.
  • Later releases: Rust/OpenCL implementation became the maintained branch, with older Node.js, C, and pure-Rust branches kept as historical alternatives.
  • Current packaging: Official README documents availability through Arch Linux, Funtoo, and Homebrew.

Related projects

  • The README points to `every-git-commit-shorthash` as a related project.
  • The project depends conceptually on Git object hashing and, for acceleration, OpenCL-capable hardware.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew bottle metadata was recorded.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
lucky_commitexecutableindexed executableDiscovered from the local executable index.

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-08-03
manager version2.2.5
manager updated
local dataunknown
upstreamnot available
latest detectednot detected
  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:lucky-commit
Version2.2.5
Package managerHomebrew
Homepagehttps://github.com/not-an-aardvark/lucky-commit
Repositoryhttps://github.com/not-an-aardvark/lucky-commit
Bottlenot recorded
Servicenone declared

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Nix95%

lucky-commit

nix profile install nixpkgs#lucky-commit
  • normalized package name match
  • Matched by: Lucky Commit
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/lu/lucky-commit/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
pacman95%

lucky-commit 2.2.5-1

Customize your git commit hashes

https://github.com/not-an-aardvark/lucky-commit

sudo pacman -S lucky-commit
  • License: MIT
  • Architecture: x86_64
  • 2 dependencies
  • normalized package name match
  • Matched by: Lucky Commit
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: lucky-commit from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
MacPorts95%

lucky-commit

sudo port install lucky-commit
  • normalized package name match
  • Matched by: Lucky Commit
MacPorts ports tree · api.github.com · MacPorts ports tree: devel/lucky-commit/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • pkg.so package database
  • pkgdb category and tag curation