Automic VaultAutomic Vault

brew

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

Customize your git commit hashes! Version 2.2.5 via Homebrew; verified from local package data.

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 post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 8 platform targets.
  • Build metadata lists 1 build dependencies.

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_commitcliglobal executable

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-07-08
manager version2.2.5
manager updated
local dataok
upstreamcurrent
latest detectedv2.2.5

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

  • infoNo package-manager update timestamp was available.low confidence

install metadata

Package metadata

Package keybrew:lucky-commit
Version2.2.5
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/lucky-commit
Homepagehttps://github.com/not-an-aardvark/lucky-commit
Repositoryhttps://github.com/not-an-aardvark/lucky-commit
Upstream docshttps://github.com/not-an-aardvark/lucky-commit#readme
LicenseMIT
Source archivehttps://github.com/not-an-aardvark/lucky-commit/archive/refs/tags/v2.2.5.tar.gz
Build dependenciesrust
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namelucky-commit
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

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
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment