Commits

ZyX_I committed 8206010

tests: Added git :AuGrep tests

Comments (0)

Files changed (2)

 :AuCommit ./gittestrepo/**
 ggddGld:write
 :WT 1delete _
+:W{{{1 Grep: working directory
+:Run! AuGrep W repo ./gittestrepo/ | cwindow
+:cclose
+:W{{{1 Grep: working directory, ignore case
+:Run! AuGrep W ignorecase repo ./gittestrepo/ | cwindow
+:cclose
+:W{{{1 Grep: HEAD^^^^
+:let repo=aurum#repository()
+:let cs=repo.functions.getcs(repo, 'HEAD^^^^')
+:AuGrep W revision HEAD^^^^ repo ./gittestrepo/ | cwindow
+:call WriteFile(map(getline(1, '$'), 'substitute(v:val, "'.cs.hex.'", "HEAD^^^^", "g")'))
+:cclose
Binary file modified.