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

Commit 3c3d6f7

Browse files
authored
[breaking] Remove a deprecated function (#51)
1 parent 7b0999c commit 3c3d6f7

File tree

4 files changed

+7
-19
lines changed

4 files changed

+7
-19
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "GitCommand"
22
uuid = "49b5b516-ca3f-4003-a081-42bdcf55082d"
33
authors = ["Dilum Aluthge", "Brown Center for Biomedical Informatics"]
4-
version = "2.2.1"
4+
version = "3.0.0-DEV"
55

66
[deps]
77
Git_jll = "f8c6e375-362e-5223-8a59-34ff63f689eb"

src/git.jl

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,3 @@ function git(; adjust_PATH::Bool = true, adjust_LIBPATH::Bool = true)
3333
return addenv(original_cmd, env_mapping...)::Cmd
3434
end
3535
end
36-
37-
# This function should be deprecated, it's kept only for backward-compatibility
38-
# We will remove it soon in a breaking release
39-
function git(f::Function;
40-
adjust_PATH::Bool = true,
41-
adjust_LIBPATH::Bool = true)
42-
return f(git(; adjust_PATH, adjust_LIBPATH))
43-
end

src/repl.jl

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@ import ReplMaker
22

33
function _gitrepl_parser(repl_input::AbstractString)
44
return quote
5-
GitCommand.git() do git
6-
repl_input = $(Expr(:quote, repl_input))
7-
run(`$(git) $(split(repl_input))`)
8-
return nothing
9-
end
5+
repl_input = $(Expr(:quote, repl_input))
6+
run(`$(GitCommand.git()) $(split(repl_input))`)
7+
return nothing
108
end
119
end
1210

test/runtests.jl

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,9 @@ include("test-utils.jl")
2323
with_temp_dir() do tmp_dir
2424
@test !isdir("GitCommand.jl")
2525
@test !isfile(joinpath("GitCommand.jl", "Project.toml"))
26-
git() do git
27-
@test !isdir("GitCommand.jl")
28-
@test !isfile(joinpath("GitCommand.jl", "Project.toml"))
29-
run(`$git clone https://github.com/JuliaVersionControl/GitCommand.jl`)
30-
end
26+
@test !isdir("GitCommand.jl")
27+
@test !isfile(joinpath("GitCommand.jl", "Project.toml"))
28+
run(`$(git()) clone https://github.com/JuliaVersionControl/GitCommand.jl`)
3129
@test isdir("GitCommand.jl")
3230
@test isfile(joinpath("GitCommand.jl", "Project.toml"))
3331
end

0 commit comments

Comments
 (0)