t7700: make references to SHA-1 generic
authorDenton Liu <redacted>
Wed, 4 Dec 2019 22:03:24 +0000 (14:03 -0800)
committerJunio C Hamano <redacted>
Wed, 4 Dec 2019 22:25:05 +0000 (14:25 -0800)
commit3699d69df0345309ba16b9c7fb43fd86a7595f58
tree68614dbc8f792250d5e2be842fd11e9a10db4263
parentdcf9a748cabedd6353d411eb5119fbe7fdda6ff5
t7700: make references to SHA-1 generic

Make the test more hash-agnostic by renaming variables from "sha1" to
some variation of "oid" or "packid". Also, replace the regex,
`[0-9a-f]\{40\}` with `$OID_REGEX`.

A better name for "incrpackid" (incremental pack-id) might have been
just "packid". However, later in the test suite, we have other uses of
"packid". Although the scopes of these variables don't conflict, a
future developer may think that commit_and_pack() and
test_has_duplicate_object() are semantically related somehow since they
share the same variable name. Give them distinct names so that it's
clear these uses are unrelated.

Signed-off-by: Denton Liu <redacted>
Signed-off-by: Junio C Hamano <redacted>
t/t7700-repack.sh
git clone https://git.99rst.org/PROJECT