diff options
| author | Denton Liu <liu.denton@gmail.com> | 2019-12-04 14:03:24 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2019-12-04 14:25:05 -0800 |
| commit | 3699d69df0345309ba16b9c7fb43fd86a7595f58 (patch) | |
| tree | 68614dbc8f792250d5e2be842fd11e9a10db4263 /commit-graph.c | |
| parent | t7700: replace egrep with grep (diff) | |
| download | git-3699d69df0345309ba16b9c7fb43fd86a7595f58.tar.gz git-3699d69df0345309ba16b9c7fb43fd86a7595f58.zip | |
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 <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit-graph.c')
0 files changed, 0 insertions, 0 deletions
