diff options
| author | ruki <[email protected]> | 2022-06-27 22:38:17 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-06-27 22:38:17 +0800 |
| commit | f5471d15f8b0c45096dd00180b68a796fa544519 (patch) | |
| tree | 383f1f39de80829b1397ea337b317230b7dd47ab | |
| parent | d5ca50ed83bb50896f2fbc6b680d30fe3ee97db4 (diff) | |
format code
| -rw-r--r-- | xmake/modules/devel/git/apply.lua | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/xmake/modules/devel/git/apply.lua b/xmake/modules/devel/git/apply.lua index ccfd5bf80..b5f59ab49 100644 --- a/xmake/modules/devel/git/apply.lua +++ b/xmake/modules/devel/git/apply.lua @@ -36,14 +36,8 @@ import("lib.detect.find_tool") -- @endcode -- function main(patchfile, opt) - - -- find git - local git = assert(find_tool("git"), "git not found!") - - -- init argv opt = opt or {} + local git = assert(find_tool("git"), "git not found!") local argv = {"apply", "--reject", "--ignore-whitespace", patchfile} - - -- apply it os.vrunv(git.program, argv, {curdir = opt.repodir}) end |
