From: "brian m. carlson" <sandals@crustytoothpaste.net>
To: Junio C Hamano <gitster@pobox.com>,
Stefan Beller <sbeller@google.com>,
git@vger.kernel.org
Subject: Re: [PATCH 2/2] t6500: mark tests as SHA1 reliant
Date: Sun, 30 Jul 2017 23:24:27 +0000 [thread overview]
Message-ID: <20170730232427.vrqrrhlsap55ax7t@genre.crustytoothpaste.net> (raw)
In-Reply-To: <20170730230019.ch74ska6wgbrh7ql@genre.crustytoothpaste.net>
[-- Attachment #1: Type: text/plain, Size: 1035 bytes --]
On Sun, Jul 30, 2017 at 11:00:19PM +0000, brian m. carlson wrote:
> Yes, basically, but a bit more generally. There will always be cases in
> which we need to specify an object ID or an arbitrary string and the
> behavior will need to vary based on the hash. That can be something
> like, in this case, the two blob contents that would have the similar
> prefix.
>
> So in this case, we pass the helper the string "263 410" and get back a
> value for either the hacked SHA-1 hash or the SHA-256 or whatever we're
> using.
I realize this was worded poorly. So for my example, in this case, we'd
do:
test-helper-hash-string "263 410"
For SHA-1, we'd get "263 410". For SHA-256, we'd get "313 481" (which,
as SHA-256 blobs, both start with "17" in their hex representation).
Presumably we'd read some environment variable to determine the proper
value.
--
brian m. carlson / brian with sandals: Houston, Texas, US
https://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: https://keybase.io/bk2204
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 868 bytes --]
next prev parent reply other threads:[~2017-07-30 23:27 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-28 17:18 [RFD PATCH 0/2] How to migrate our test infrastructure away from sha1 Stefan Beller
2017-07-28 17:18 ` [PATCH 1/2] alter hash function: expose test dependencies on sha1 Stefan Beller
2017-07-28 21:52 ` Junio C Hamano
2017-07-28 17:18 ` [PATCH 2/2] t6500: mark tests as SHA1 reliant Stefan Beller
2017-07-28 17:59 ` Junio C Hamano
2017-07-28 21:43 ` Stefan Beller
2017-07-28 22:14 ` Junio C Hamano
2017-07-29 17:58 ` brian m. carlson
2017-07-30 21:21 ` Junio C Hamano
2017-07-30 23:00 ` brian m. carlson
2017-07-30 23:24 ` brian m. carlson [this message]
2017-07-31 20:17 ` Ævar Arnfjörð Bjarmason
2017-07-31 20:30 ` Stefan Beller
2017-07-31 20:26 ` Stefan Beller
2017-07-31 23:54 ` brian m. carlson
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
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170730232427.vrqrrhlsap55ax7t@genre.crustytoothpaste.net \
--to=sandals@crustytoothpaste.net \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=sbeller@google.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.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).