Skip to content
This repository was archived by the owner on Mar 26, 2021. It is now read-only.

Commit 8a36044

Browse files
authored
Reorganize some source code files (#55)
1 parent 21a3649 commit 8a36044

File tree

3 files changed

+12
-13
lines changed

3 files changed

+12
-13
lines changed

src/GitCommand.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ module GitCommand
22

33
import Git_jll
44

5-
# export @git_cmd
65
export git
76

87
include("git.jl")
8+
include("git_cmd.jl")
99

10-
end # end module GitCommand
10+
end # module

src/git.jl

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,3 @@
1-
function _git_cmd(str::AbstractString;
2-
adjust_PATH::Bool = true,
3-
adjust_LIBPATH::Bool = true)
4-
cmd = git(; adjust_PATH, adjust_LIBPATH)
5-
return `$(cmd) $(split(str))`
6-
end
7-
8-
macro git_cmd(ex)
9-
return _git_cmd(ex)
10-
end
11-
121
function git(; adjust_PATH::Bool = true, adjust_LIBPATH::Bool = true)
132
@static if Sys.iswindows()
143
return Git_jll.git(; adjust_PATH, adjust_LIBPATH)::Cmd

src/git_cmd.jl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
function _git_cmd(str::AbstractString;
2+
adjust_PATH::Bool = true,
3+
adjust_LIBPATH::Bool = true)
4+
cmd = git(; adjust_PATH, adjust_LIBPATH)
5+
return `$(cmd) $(split(str))`
6+
end
7+
8+
macro git_cmd(ex)
9+
return _git_cmd(ex)
10+
end

0 commit comments

Comments
 (0)