mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
struct name_entry: use struct object_id instead of unsigned char sha1[20]
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
82db3d44e7
commit
7d924c9139
@@ -229,7 +229,7 @@ static struct combine_diff_path *emit_path(struct combine_diff_path *p,
|
||||
DIFF_STATUS_ADDED;
|
||||
|
||||
if (tpi_valid) {
|
||||
sha1_i = tp[i].entry.sha1;
|
||||
sha1_i = tp[i].entry.oid->hash;
|
||||
mode_i = tp[i].entry.mode;
|
||||
}
|
||||
else {
|
||||
@@ -270,7 +270,7 @@ static struct combine_diff_path *emit_path(struct combine_diff_path *p,
|
||||
/* same rule as in emitthis */
|
||||
int tpi_valid = tp && !(tp[i].entry.mode & S_IFXMIN_NEQ);
|
||||
|
||||
parents_sha1[i] = tpi_valid ? tp[i].entry.sha1
|
||||
parents_sha1[i] = tpi_valid ? tp[i].entry.oid->hash
|
||||
: NULL;
|
||||
}
|
||||
|
||||
@@ -482,7 +482,7 @@ static struct combine_diff_path *ll_diff_tree_paths(
|
||||
continue;
|
||||
|
||||
/* diff(t,pi) != ø */
|
||||
if (hashcmp(t.entry.sha1, tp[i].entry.sha1) ||
|
||||
if (oidcmp(t.entry.oid, tp[i].entry.oid) ||
|
||||
(t.entry.mode != tp[i].entry.mode))
|
||||
continue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user