Skip to content

Commit

Permalink
fix diff
Browse files Browse the repository at this point in the history
  • Loading branch information
poolpOrg committed Oct 16, 2023
1 parent 2cf5fdb commit 947bd0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/plakar/cmd_diff.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,9 @@ func fiToDiff(fi vfs.FileInfo) string {

func diff_files(snapshot1 *snapshot.Snapshot, snapshot2 *snapshot.Snapshot, filename1 string, filename2 string) {
pathnameID1 := snapshot1.Filesystem.GetPathnameID(filename1)
pathnameID2 := snapshot1.Filesystem.GetPathnameID(filename2)
pathnameID2 := snapshot2.Filesystem.GetPathnameID(filename2)
object1 := snapshot1.Index.LookupObjectForPathname(pathnameID1)
object2 := snapshot1.Index.LookupObjectForPathname(pathnameID2)
object2 := snapshot2.Index.LookupObjectForPathname(pathnameID2)

// file does not exist in either snapshot
if object1 == nil && object2 == nil {
Expand Down

0 comments on commit 947bd0b

Please sign in to comment.