From ea08d9e7a8abf8fbea542a1097af694c150b88d3 Mon Sep 17 00:00:00 2001 From: silverwind Date: Wed, 18 Dec 2019 21:54:20 +0100 Subject: [PATCH 1/3] Add .ignore file for search tools Tools like `rg` [1] and `ag` [2] support a `.ignore` file which defines files that are ignored during a recursive search. This adds the file which makes recursive file searches in the code base ignore files that are generally not desirable to search in like bindata, vendored files and compiled frontend assets. [1] https://github.com/BurntSushi/ripgrep/ [2] https://github.com/ggreer/the_silver_searcher --- .ignore | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .ignore diff --git a/.ignore b/.ignore new file mode 100644 index 0000000000000..e5f5597a347c5 --- /dev/null +++ b/.ignore @@ -0,0 +1,7 @@ +vendor +public/js +public/css +public/vendor +modules/options/bindata.go +modules/public/bindata.go +modules/templates/bindata.go From e1942eeaa498ce676531d9ac07f8e0c074ac352b Mon Sep 17 00:00:00 2001 From: silverwind Date: Wed, 18 Dec 2019 22:29:25 +0100 Subject: [PATCH 2/3] add leading slash --- .ignore | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.ignore b/.ignore index e5f5597a347c5..1c8fc095f51bf 100644 --- a/.ignore +++ b/.ignore @@ -1,7 +1,7 @@ -vendor -public/js -public/css -public/vendor -modules/options/bindata.go -modules/public/bindata.go -modules/templates/bindata.go +/vendor +/public/js +/public/css +/public/vendor +/modules/options/bindata.go +/modules/public/bindata.go +/modules/templates/bindata.go From 5042be2377528d694e1593a624bc4c59d27e95a4 Mon Sep 17 00:00:00 2001 From: silverwind Date: Wed, 18 Dec 2019 23:26:10 +0100 Subject: [PATCH 3/3] remove files already in .gitignore --- .ignore | 2 -- 1 file changed, 2 deletions(-) diff --git a/.ignore b/.ignore index 1c8fc095f51bf..56ad996bb44ee 100644 --- a/.ignore +++ b/.ignore @@ -1,6 +1,4 @@ /vendor -/public/js -/public/css /public/vendor /modules/options/bindata.go /modules/public/bindata.go