3 releases

0.2.4 May 4, 2023
0.2.2 Mar 3, 2023
0.2.1 Mar 3, 2023

#4 in #proof-of-work

MIT/Apache

48KB
1K SLoC

Shell 1K SLoC // 0.1% comments Rust 260 SLoC // 0.1% comments

Legit legit

Legit adds Proof of Work (PoW) to a git commit hash prefix.

Example


git log | grep "0000006"

commit 000000615b90566ae8559dd45852190edea79a8c

commit 000000615b90566ae8559dd45852190edea79a8c


Install


git:

git clone https://github.com/RandyMcMillan/legit.git && \
cd legit && make legit
example:
example:

Usage


git clone https://github.com/RandyMcMillan/legit.git
cd legit && make legit

add files to commit

git add <FILE_NAME> <FILE_NAME>
git stash (--include-untracked)

legit command


legit . -p "000000" -m "my legit commit"
git stash pop

--

Dependencies

~17MB
~347K SLoC