Project

jebediah

0.0
No commit activity in last 3 years
No release in over 3 years
A Gem to convert git hashes to memorable names, and vice versa
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

jebediah

Jebediah will astound you with his knowledge of names and their corresponding hashes.

What is it?

Git commit hashes are nice. They uniquely identify the state of a repository: 1234abc

but sometimes, it's hard to read a commit hash over the phone. 3, b, c, d and e all sound similar. It's also pretty hard to remember a hash. Jebediah creates a reversable map between commit hashes, and friendly, memorable names: 1234abc <-> "chipperly divided snake"

How do I use it?

$ gem install jebediah

$ jeb 1234abc
chipperly divided snake

$ jeb chipperly divided snake
1234abc

Cycling commit jebs

The jeb for a commit can be construed as unflattering. If you want to cycle the commit of a git repo until it is acceptable, use the jebcycle tool:

$ jebcycle 
unfamiliarly balanced cougar? y/n n
vainly guaranteed mongoose? y/n n
cheekily urged coyote? y/n n
two-handedly remained finch? y/n n
therapeutically tabulated hamster? y/n y

jebcycle applies empty amended commits to change the commit hash without lengthing the commit history.

What about in code?

Jebediah plays nicely as a ruby library.

require 'jebediah'

jeb = Jebediah.new
jeb.process("1234abc") # => {:type=>"phrase", :result=>["chipperly", "divided", "snake"]}
jeb.process(["chipperly", "divided", "snake"]) # => {:type=>"hash", :result=>"1234abc"}
jeb.process("chipperly divided snake") # => {:type=>"hash", :result=>"1234abc"}