summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakob Borg <jakob@nym.se>2014-06-23 21:54:28 +0200
committerJakob Borg <jakob@nym.se>2014-06-23 21:54:28 +0200
commit2383579a6457ce8763e904f0f3e36fb507d0aaf4 (patch)
tree8a2bc2008a6000417942d310ce6c1a658f8c9835
parent68750211ef60684014e187a68698c5339c83cd53 (diff)
Remove spurious debug output in .stignore handling
-rw-r--r--scanner/walk.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/scanner/walk.go b/scanner/walk.go
index ec21f44e49..fff4ff3592 100644
--- a/scanner/walk.go
+++ b/scanner/walk.go
@@ -106,7 +106,6 @@ func (w *Walker) loadIgnoreFiles(dir string, ign map[string][]string) filepath.W
if pn, sn := filepath.Split(rn); sn == w.IgnoreFile {
pn := filepath.Clean(pn)
- l.Debugf("pn: %q", pn)
bs, _ := ioutil.ReadFile(p)
lines := bytes.Split(bs, []byte("\n"))
var patterns []string
@@ -287,7 +286,6 @@ func (w *Walker) ignoreFile(patterns map[string][]string, file string) bool {
for prefix, pats := range patterns {
if prefix == "." || prefix == first || strings.HasPrefix(first, fmt.Sprintf("%s%c", prefix, os.PathSeparator)) {
for _, pattern := range pats {
- l.Debugf("%q %q", pattern, last)
if match, _ := filepath.Match(pattern, last); match {
return true
}