aurum / autoload / aurum.vim

"▶1 
execute frawor#Setup('0.0', {'@aurum/repo': '1.0',
            \               '@aurum/cache': '0.0',})
"▶1 aurum#repository
function aurum#repository()
    let repo=s:_r.cache.get('repo', s:_r.repo.get, [':'], {})
    if repo is 0
        return {}
    endif
    return repo
endfunction
let s:_functions+=['aurum#repository']
"▶1 aurum#changeset
function aurum#changeset(...)
    let repo=((a:0)?(a:1):(aurum#repository()))
    if empty(repo)
        return {}
    endif
    return s:_r.cache.get('cs', repo.functions.getcs, [repo, '.'], {})
endfunction
let s:_functions+=['aurum#changeset']
"▶1 aurum#status
function aurum#status(...)
    let repo=((a:0)?(a:1):(aurum#repository()))
    if empty(repo)
        return {}
    endif
    return get(keys(filter(copy(s:_r.cache.get('status', repo.functions.status,
                \                              [repo, 0, 0,
                \                               [repo.functions.reltorepo(repo,
                \                                                         @%)]],
                \                              {})),
                \          '!empty(v:val)')), 0, 0)
endfunction
let s:_functions+=['aurum#status']
"▶1
call frawor#Lockvar(s:, '_pluginloaded,_r')
" vim: ft=vim ts=4 sts=4 et fmr=▶,▲
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.