mirror of
https://github.com/restic/restic.git
synced 2026-04-23 21:29:25 +00:00
Fix diff
Nodes in trees were always printed with a `+` in diff, regardless of whether or not a dir was added or removed. Let's use the mode we were passed in printDir(). Closes #3685
This commit is contained in:
@@ -170,7 +170,7 @@ func (c *Comparer) printDir(ctx context.Context, mode string, stats *DiffStat, b
|
||||
if node.Type == "dir" {
|
||||
name += "/"
|
||||
}
|
||||
c.printChange(NewChange(name, "+"))
|
||||
c.printChange(NewChange(name, mode))
|
||||
stats.Add(node)
|
||||
addBlobs(blobs, node)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user