mirror of
https://github.com/octoleo/restic.git
synced 2025-02-02 11:58:26 +00:00
diff: Correctly count top-level blobs
This commit is contained in:
parent
145830005b
commit
59ea5a4208
@ -364,6 +364,8 @@ func runDiff(opts DiffOptions, gopts GlobalOptions, args []string) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
stats := NewDiffStats()
|
stats := NewDiffStats()
|
||||||
|
stats.BlobsBefore.Insert(restic.BlobHandle{Type: restic.TreeBlob, ID: *sn1.Tree})
|
||||||
|
stats.BlobsAfter.Insert(restic.BlobHandle{Type: restic.TreeBlob, ID: *sn2.Tree})
|
||||||
|
|
||||||
err = c.diffTree(ctx, stats, "/", *sn1.Tree, *sn2.Tree)
|
err = c.diffTree(ctx, stats, "/", *sn1.Tree, *sn2.Tree)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user