Ignore files matching patterns in .stignore (fixes #7)

This commit is contained in:
Jakob Borg
2014-01-06 21:17:18 +01:00
parent 46d828e349
commit 986b15573a
5 changed files with 132 additions and 21 deletions

View File

@@ -333,7 +333,7 @@ func connect(myID string, addr string, nodeAddrs map[string][]string, m *model.M
}
func updateLocalModel(m *model.Model) {
files := m.Walk(!opts.NoSymlinks)
files := m.FilteredWalk(!opts.NoSymlinks)
m.ReplaceLocal(files)
saveIndex(m)
}