ZyX_I avatar ZyX_I committed cad40c3

@%aurum/drivers/git: Readded ignored files listing, added test for it

Comments (0)

Files changed (3)

autoload/aurum/drivers/git.vim

         if requiresclean
             let allfiles=a:repo.functions.getcsprop(a:repo, 'HEAD', 'allfiles')
         endif
+        if a:0>4 && a:5
+            let r.ignored=s:_r.utils.nullnl(
+                        \ s:F.git(a:repo, 'ls-files', args,
+                        \                 {'ignored': 1, 'z': 1,
+                        \                  'exclude-standard': 1,
+                        \                  'others': 1}, 2,
+                        \                 'lsignf', a:repo))[:-2]
+        endif
     endif
     if exists('allfiles')
         if a:0>2 && !empty(a:3)

test/drivers-git.in

 :write! ./gittestrepo/subdir/file.vim
 :write! ./gittestrepo/ignoredfile.vim
 :W{{{2 Status before junk
-:Run! AuStatus ./gittestrepo/
+:Run! AuStatus ./gittestrepo/ show all
 :AuJunk ignore ./gittestrepo/file.vim
 :AuJunk ignoreglob ./gittestrepo/ignored*
 :W{{{2 Status after junk
-:Run! AuStatus ./gittestrepo/
+:Run! AuStatus ./gittestrepo/ show all
 :bwipeout
 :W{{{2 gitignore contents
 :call WriteFile(readfile('./gittestrepo/.gitignore', 'b'))

Binary file modified.

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.