1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-05-23 11:26:09 +02:00
git/t/oid-info
Martin Ågren e5afd4449d object-file.c: rename from sha1-file.c
Drop the last remnant of "sha1" in this file and rename it to reflect
that we're not just able to handle SHA-1 these days.

Signed-off-by: Martin Ågren <martin.agren@gmail.com>
Reviewed-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2021-01-04 13:01:55 -08:00
..
README object-file.c: rename from sha1-file.c 2021-01-04 13:01:55 -08:00
hash-info t/oid-info: add empty tree and empty blob values 2019-10-06 11:45:30 +09:00
oid

This directory contains various per-hash values that are used in the testsuite.

Each file contains lines containing a key-value pair; blank lines and lines
starting with `#` are ignored.  The key and value are separated by whitespace
(specifically, those whitespace in the default `$IFS`).  The key consists only
of shell identifier characters, and the value consists of a hash algorithm,
colon, and value.  The hash algorithm also consists only of shell identifier
characters; it should match the value in object-file.c.

For example, the following lines map the key "rawsz" to "20" if SHA-1 is in use
and to "32" if SHA-256 is in use:

----
rawsz sha1:20
rawsz sha256:32
----

The keys and values used here are loaded by `test_oid_init` (see the README file
in the "t" directory) and are used by calling `test_oid`.