Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
gitweb: Filter out commit ID from @difftree in git_commit and git_commitdiff
[gitweb.git]
/
dump-cache-tree.c
diff --git
a/dump-cache-tree.c
b/dump-cache-tree.c
index 1ccaf5177318f8765205e192abdffc3336c9aacb..1f73f1ea7dfa6a14dedf384c99751e86c8121ff4 100644
(file)
--- a/
dump-cache-tree.c
+++ b/
dump-cache-tree.c
@@
-33,7
+33,7
@@
static int dump_cache_tree(struct cache_tree *it,
}
else {
dump_one(it, pfx, "");
- if (
memcmp(it->sha1, ref->sha1, 20
) ||
+ if (
hashcmp(it->sha1, ref->sha1
) ||
ref->entry_count != it->entry_count ||
ref->subtree_nr != it->subtree_nr) {
dump_one(ref, pfx, "#(ref) ");