Skip to content

Commit

Permalink
Don't check ctime when ignoring inode.
Browse files Browse the repository at this point in the history
  • Loading branch information
Courtney Bane committed Apr 25, 2019
1 parent b8c2544 commit 35b7607
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/archiver/archiver.go
Expand Up @@ -455,7 +455,7 @@ func fileChanged(fi os.FileInfo, node *restic.Node, ignoreInode bool) bool {

// check status change timestamp
extFI := fs.ExtendedStat(fi)
if !extFI.ChangeTime.Equal(node.ChangeTime) {
if !ignoreInode && !extFI.ChangeTime.Equal(node.ChangeTime) {
return true
}

Expand Down

1 comment on commit 35b7607

@micw
Copy link

@micw micw commented on 35b7607 May 20, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello, what is the reason for this implicit behaviour? IMO this should be either done by an extra command line option or at least be documented.

Please sign in to comment.