]> git.e2factory.org Git - e2factory.git/commitdiff
e2lib.callcmd() is for internal use only, mark local
authorTobias Ulmer <tu@emlix.com>
Wed, 26 Jun 2013 16:15:50 +0000 (18:15 +0200)
committerTobias Ulmer <tu@emlix.com>
Wed, 16 Nov 2016 14:01:23 +0000 (15:01 +0100)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
generic/e2lib.lua

index eac1cc9a63effe3619222b810586c46b39a4d8b0..fe4624134318dd6c0b3a3ba45b96a64fd97e8a35 100644 (file)
@@ -989,7 +989,7 @@ end
 
 --- callcmd: call a command, connecting
 --  stdin, stdout, stderr to luafile objects.
-function e2lib.callcmd(infile, outfile, errfile, cmd)
+local function callcmd(infile, outfile, errfile, cmd)
     -- redirect stdin
     io.stdin:close()
     luafile.dup2(infile:fileno(), 0)
@@ -1025,7 +1025,7 @@ function e2lib.callcmd_redirect(cmd, out)
     e2lib.logf(3, "+ %s", cmd)
     pid = e2util.fork()
     if pid == 0 then
-        rc = e2lib.callcmd(devnull, out, out, cmd)
+        rc = callcmd(devnull, out, out, cmd)
         os.exit(rc)
     else
         rc = e2util.wait(pid)
@@ -1086,7 +1086,7 @@ function e2lib.callcmd_pipe(cmds, infile, outfile)
             end
 
             errin:close()
-            rc = e2lib.callcmd(input, output, errout, cmds[cmdidx])
+            rc = callcmd(input, output, errout, cmds[cmdidx])
             os.exit(rc)
         end
 
@@ -1194,7 +1194,7 @@ function e2lib.callcmd_capture(cmd, capture)
     pid = e2util.fork()
     if pid == 0 then
         oread:close()
-        rc = e2lib.callcmd(devnull, owrite, owrite, cmd)
+        rc = callcmd(devnull, owrite, owrite, cmd)
         os.exit(rc)
     else
         owrite:close()
@@ -1673,6 +1673,11 @@ function e2lib.git(gitdir, subtool, args)
     return true, e
 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