1
0
mirror of https://github.com/kepler155c/opus synced 2025-10-21 02:37:48 +00:00

reorganization

This commit is contained in:
kepler155c@gmail.com
2017-09-15 20:27:56 -04:00
parent 64c68f2662
commit 36fd5ca073
29 changed files with 2159 additions and 3500 deletions

View File

@@ -2,12 +2,12 @@ local git = require('git')
local gitfs = { }
function gitfs.mount(dir, user, repo, branch)
if not user or not repo then
error('gitfs syntax: user, repo, [branch]')
function gitfs.mount(dir, repo)
if not repo then
error('gitfs syntax: repo')
end
local list = git.list(user, repo, branch)
local list = git.list(repo)
for path, entry in pairs(list) do
if not fs.exists(fs.combine(dir, path)) then
local node = fs.mount(fs.combine(dir, path), 'urlfs', entry.url)