Implement --no-update-modtime flag - fixes #511

This commit is contained in:
Nick Craig-Wood 2016-07-12 10:46:45 +01:00
parent 452a5badc1
commit b9479cf7ab
4 changed files with 31 additions and 1 deletions

View file

@ -147,7 +147,7 @@ func Equal(src, dst Object) bool {
return false
}
if !Config.CheckSum {
if !(Config.CheckSum || Config.NoUpdateModTime) {
// Size and hash the same but mtime different so update the
// mtime of the dst object here
err := dst.SetModTime(srcModTime)