1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 13:40:06 +08:00
SpaceVim/bundle/git.vim/lua/git/init.lua

16 lines
261 B
Lua
Raw Normal View History

2023-07-23 23:36:52 +08:00
local M = {}
local log = require('git.log')
function M.run(command, ...)
local argv = {...}
local ok, cmd = pcall(require, 'git.command.' .. command)
if ok and type(cmd.run) == "function" then
cmd.run(argv)
else
error(cmd)
end
end
return M