diff options
| -rw-r--r-- | cmd_linux.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/cmd_linux.go b/cmd_linux.go index 9a4da36..390e431 100644 --- a/cmd_linux.go +++ b/cmd_linux.go @@ -182,6 +182,8 @@ func syncFromManifest(remote *Manifest, stack *GitignoreStack) { // First pass: count what needs syncing var toSync []string + var debugShown int + var missingLocal int for relPath, remoteMeta := range remote.Files { if isGitDir(relPath) { continue @@ -197,10 +199,22 @@ func syncFromManifest(remote *Manifest, stack *GitignoreStack) { localMeta.Symlink == remoteMeta.Symlink { continue } + if debugShown < 5 { + logDebug("mismatch %s: size=%d/%d mode=%o/%o modtime=%v/%v symlink=%q/%q", + relPath, + localMeta.Size, remoteMeta.Size, + localMeta.Mode, remoteMeta.Mode, + localMeta.ModTime, remoteMeta.ModTime, + localMeta.Symlink, remoteMeta.Symlink) + debugShown++ + } + } else { + missingLocal++ } toSync = append(toSync, relPath) } + logInfo("manifest: %d files to sync (%d missing locally, %d mismatched)", len(toSync), missingLocal, len(toSync)-missingLocal) logInfo("manifest: %d files to sync", len(toSync)) // Second pass: sync |
