Re: [IGNORETHIS/PATCH] Choosing the sha1 prefix of your commits
- From
- Mikael Magnusson <mikachu@gmail.com>
- Date
- Oct 20, 2011, 09:38 UTC
- Message-ID
- <CAHYJk3QV8QckbOM76QfqQfTsyOtk+nvfhCped+W3t60JfCfouA@mail.gmail.com>
- In-Reply-To
- <20111019190114.GA4670@sigill.intra.peff.net>
On 19 October 2011 21:01, Jeff King <peff@peff.net> wrote:
Show 19 quoted lines
> On Wed, Oct 19, 2011 at 08:03:24PM +0200, Ævar Arnfjörð Bjarmason wrote: > >> This is quick hack I wrote just before leaving work to show that I >> could indeed push patches to our main repository starting with >> 31337. Names hidden to protect the innocent. > > Clever and amusing. > >> Which in just over a minute will generate, in my case: >> >> $ git show --pretty=raw 313375d995e6f8b7773c6ed1ee165e5a9e15690b | head -n 7 >> commit 313375d995e6f8b7773c6ed1ee165e5a9e15690b >> tree c9bebc99c05dfe61cccf02ebdf442945c8ff8b3c >> parent 0dce2d45a79d26a593f0e12301cdfeb7eb23c17a >> author Ævar Arnfjörð Bjarmason <avar@example.com> <censored> <censored> >> committer Ævar Arnfjörð Bjarmason <avar@example.com> <censored> <censored> >> lulz 697889 > > Nice header name.
If you don't mind waiting, you could just increase the timestamps until you get the desired collision. (If you still want them to be correct, trying 4000000 times would about 6 weeks though :).
-- Mikael Magnusson