diff options
| author | brian m. carlson <sandals@crustytoothpaste.net> | 2018-10-15 00:01:52 +0000 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2018-10-15 12:53:15 +0900 |
| commit | 7b5e614e2acc2f4e6b2f1ea4eb93dd430d350abd (patch) | |
| tree | 1240376b1f90c1d3e51956eeb24ab0ef6e5fa3dd /t/t4013/diff.diff_initial..side | |
| parent | builtin/mktree: remove hard-coded constant (diff) | |
| download | git-7b5e614e2acc2f4e6b2f1ea4eb93dd430d350abd.tar.gz git-7b5e614e2acc2f4e6b2f1ea4eb93dd430d350abd.zip | |
builtin/fetch-pack: remove constants with parse_oid_hex
Instead of using GIT_SHA1_HEXSZ, use parse_oid_hex to compute a pointer
and use that in comparisons. This is both simpler to read and works
independent of the hash length. Update references to SHA-1 in the same
function to refer to object IDs instead.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.diff_initial..side')
0 files changed, 0 insertions, 0 deletions
