Kaynağa Gözat

Woops: reignore .stignore

Jakob Borg 12 yıl önce
ebeveyn
işleme
cb33f27f23
1 değiştirilmiş dosya ile 5 ekleme ve 0 silme
  1. 5 0
      model/walk.go

+ 5 - 0
model/walk.go

@@ -92,6 +92,11 @@ func (m *Model) walkAndHashFiles(res *[]File, ign map[string][]string) filepath.
 			return nil
 		}
 
+		if _, sn := path.Split(rn); sn == ".stignore" {
+			// We never sync the .stignore files
+			return nil
+		}
+
 		if ignoreFile(ign, rn) {
 			if m.trace["file"] {
 				log.Println("FILE: IGNORE:", rn)