Re: [IGNORETHIS/PATCH] Choosing the sha1 prefix of your commits
- From
- Kyle Moffett <kyle@moffetthome.net>
- Date
- Oct 20, 2011, 04:15 UTC
- Message-ID
- <CAGZ=bqK2oVPxW3mm-WHMd1+KSiPquympJyhRqLWr1F=G74p+BA@mail.gmail.com>
- In-Reply-To
- <20111020025149.GA31549@sigill.intra.peff.net>
On Wed, Oct 19, 2011 at 22:51, Jeff King <peff@peff.net> wrote:
> Keep in mind that each hex character you add increases the search space > by a factor of 16. deadbeef took about 70 seconds to find on my machine. > I'm tempted to look for "3133700..0031337", but it would probably > take about 4 hours.
Heh, there's one other practical downside I can think of...
If you create a bunch of commits with the same 8-hex-character prefix then suddenly the "git describe" logic for using the first 7 commit ID characters gets a whole lot less useful.
Cheers, Kyle Moffett
-- Curious about my work on the Debian powerpcspe port? I'm keeping a blog here: http://pureperl.blogspot.com/