From 968dcb54daa88e86ea2d90c117db3f27cd2925b5 Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Mon, 2 Feb 2015 16:18:49 -0500 Subject: [PATCH] Exclude README files in directories --- code.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code.go b/code.go index cf17a38..3c4982a 100644 --- a/code.go +++ b/code.go @@ -65,7 +65,7 @@ func mapFiles(files *[]string, users map[string]User) { fname := filepath.Base(path) // Exclude certain file names - if strings.HasPrefix(fname, ".") || strings.HasSuffix(fname, ".log") || strings.HasSuffix(fname, "~") { + if strings.HasPrefix(fname, ".") || strings.HasSuffix(fname, ".log") || strings.HasPrefix(fname, "README") || strings.HasSuffix(fname, "~") { continue }