File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -114,6 +114,21 @@ List your exclusions before the patterns you do want.
114
114
```
115
115
116
116
117
+ ### Ignored files
118
+
119
+ By default Rooter does not take into account `.gitignore`.
120
+
121
+ To make Rooter aware of ignored files:
122
+
123
+ ```viml
124
+ let g:rooter_ignore = 1
125
+ ```
126
+
127
+ When this is set, and the file in question is ignored by git, Rooter acts as if ` .git ` is not in ` g:rooter_patterns ` .
128
+
129
+ Support for other VCSs' ignores could be added.
130
+
131
+
117
132
### Running automatically or manually
118
133
119
134
To toggle between automatic and manual behaviour, use ` :RooterToggle ` .
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ function SetUp()
38
38
let g: rooter_change_directory_for_non_project_files = ' '
39
39
let g: rooter_silent_chdir = 0
40
40
let g: rooter_resolve_links = 0
41
+ let g: rooter_ignore = 0
41
42
42
43
autocmd ! User RooterChDir
43
44
@@ -221,3 +222,8 @@ function Test_root_contains_wildcards()
221
222
execute ' edit' s: wildcard_dir .' /xyz/m.txt'
222
223
call assert_equal (s: wildcard_dir , getcwd ())
223
224
endfunction
225
+
226
+ function Test_ignore ()
227
+ let g: rooter_ignore = 1
228
+ " TODO
229
+ endfunction
You can’t perform that action at this time.
0 commit comments