git-prime

Ensure your 160-bit git commit hashes are Number Theoretic compliant

[PRIME CERTIFIED]

What is this?

A tool that fuzzes your commit messages until the resulting SHA-1 hash is a prime number when interpreted as a 160-bit integer.

Because your commits deserve mathematical rigor.

Installation

curl -fsSL https://textonly.github.io/git-prime/install.sh | bash

Windows (PowerShell): irm https://textonly.github.io/git-prime/install.ps1 | iex

Usage

$ git prime-commit "Fix critical bug"

Searching for prime commit hash...
Base message: Fix critical bug
Attempt 10: d051b974ece9d844... not prime
Attempt 20: 954de912a9e5bbce... not prime
Attempt 30: ace4df509c5a9677... not prime
...
Attempt 168: cb80ebbd975f0028... not prime

[PRIME] Found after 168 attempts!
  Commit: cb80ebbd975f00288dca70d8fa735c688755f947
  Hash as int: 1161800157764419353674868058637793188631547345223
  → Verify on WolframAlpha
  Message: "Fix critical bug" + git-prime Nonce: 167

How it works

Features

Why?

Because hunting for prime commit hashes is more fun than arguing about commit message conventions.

But also: shouldn't the global distributed compute grid be used to forward number theoretic random non-goals like primality?

Every developer running git prime-commit contributes cycles to the noble pursuit of finding 160-bit primes hidden in SHA-1 space. It's distributed computing for mathematically pointless but aesthetically satisfying goals.