From: Linus Torvalds <torvalds@linux-foundation.org>
To: Sverre Rabbelier <srabbelier@gmail.com>
Cc: Junio C Hamano <gitster@pobox.com>,
Jerome Baum <jerome@jeromebaum.com>,
git@vger.kernel.org
Subject: Re: Hash algorithm choice
Date: Sun, 9 Aug 2009 11:35:01 -0700 (PDT) [thread overview]
Message-ID: <alpine.LFD.2.01.0908091133420.3288@localhost.localdomain> (raw)
In-Reply-To: <fabb9a1e0908091116y6012caa7j6865d5fcd5d9888c@mail.gmail.com>
On Sun, 9 Aug 2009, Sverre Rabbelier wrote:
>
> Wouldn't the transport code also have to be modified? I assume git's
> integrity checking would yell at if you gave it commits with
> non-sha1-hashes and have no way to tell it that that hash was
> calculated with a non-sha1-hash at clone time?
Well, if you start introducing new hashes, the assumption is that all
git's that access it would have to be updated.
You certainly could never pull/push between git versions that don't know
about each others hashes. But you _can_ autodetect the hash mechanism
(simple: just try them all on the first object you encounter)
Linus
next prev parent reply other threads:[~2009-08-09 18:35 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <f448a46a0908090907v68542e4dw1f1c4f610cb46ca2@mail.gmail.com>
2009-08-09 16:17 ` Hash algorithm choice Jerome Baum
2009-08-09 17:46 ` Linus Torvalds
2009-08-09 18:03 ` Junio C Hamano
2009-08-09 18:16 ` Sverre Rabbelier
2009-08-09 18:35 ` Linus Torvalds [this message]
2009-08-09 18:33 ` Linus Torvalds
2009-08-09 17:49 ` Johannes Schindelin
2009-08-09 18:44 ` Matthieu Moy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LFD.2.01.0908091133420.3288@localhost.localdomain \
--to=torvalds@linux-foundation.org \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=jerome@jeromebaum.com \
--cc=srabbelier@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox