mirror of
https://github.com/ostreedev/ostree.git
synced 2025-01-11 09:18:20 +03:00
diff: do not traverse parent commits
The object count displayed included also the number of parent commits. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
parent
dc9239dd7b
commit
a13b56f91c
@ -194,9 +194,9 @@ ostree_builtin_diff (int argc, char **argv, GCancellable *cancellable, GError **
|
|||||||
if (!ostree_repo_resolve_rev (repo, target, FALSE, &rev_b, error))
|
if (!ostree_repo_resolve_rev (repo, target, FALSE, &rev_b, error))
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
if (!ostree_repo_traverse_commit (repo, rev_a, -1, &reachable_a, cancellable, error))
|
if (!ostree_repo_traverse_commit (repo, rev_a, 0, &reachable_a, cancellable, error))
|
||||||
goto out;
|
goto out;
|
||||||
if (!ostree_repo_traverse_commit (repo, rev_b, -1, &reachable_b, cancellable, error))
|
if (!ostree_repo_traverse_commit (repo, rev_b, 0, &reachable_b, cancellable, error))
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
a_size = g_hash_table_size (reachable_a);
|
a_size = g_hash_table_size (reachable_a);
|
||||||
|
Loading…
Reference in New Issue
Block a user