return true
end
---- call git
--- @param gitdir string: GIT_DIR (optional, defaults to ".git")
--- @param subtool string: git tool name
--- @param args string: arguments to pass to the tool (optional)
--- @return bool
--- @return an error object on failure
-function e2lib.git(gitdir, subtool, args)
- local rc, re, e, git, call
-
- e = err.new("calling git failed")
-
- if not gitdir then
- gitdir = ".git"
- end
-
- if not args then
- args = ""
- end
-
- git, re = tools.get_tool("git")
- if not git then
- return false, e:cat(re)
- end
-
- call = string.format("GIT_DIR=%s %s %s %s",
- e2lib.shquote(gitdir), e2lib.shquote(git), e2lib.shquote(subtool), args)
- rc, re = e2lib.callcmd_log(call)
- if not rc or rc ~= 0 then
- return false, e:cat(re)
- end
-
- return true
-end
-
-function e2lib.git_argv(argv)
- return e2lib.call_tool_argv("git")
-end
-
-
--- call the svn command
-- @param argv table: vector with arguments for svn
-- @return bool