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

Commit 005e89d

Browse files
Move REPL functionality to GitRepl.jl (#52)
Co-authored-by: Mosè Giordano <[email protected]> Co-authored-by: Mosè Giordano <[email protected]>
1 parent 3c3d6f7 commit 005e89d

File tree

5 files changed

+0
-56
lines changed

5 files changed

+0
-56
lines changed

Project.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,10 @@ version = "3.0.0-DEV"
55

66
[deps]
77
Git_jll = "f8c6e375-362e-5223-8a59-34ff63f689eb"
8-
ReplMaker = "b873ce64-0db9-51f5-a568-4457d8e49576"
98

109
[compat]
1110
Git_jll = "2.31"
1211
JLLWrappers = "1.1"
13-
ReplMaker = "0.2.3"
1412
julia = "1.6"
1513

1614
[extras]

README.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,6 @@ julia> using GitCommand
2222
julia> run(`$(git()) clone https://github.com/JuliaRegistries/General`)
2323
```
2424

25-
## Git REPL mode
26-
27-
```julia
28-
julia> using GitCommand
29-
30-
julia> gitrepl() # you only need to run this once per Julia session
31-
32-
# Press , to enter the Git REPL mode
33-
34-
git> clone https://github.com/JuliaRegistries/General
35-
```
36-
3725
## Acknowledgements
3826

3927
- This work was supported in part by National Institutes of Health grants U54GM115677, R01LM011963, and R25MH116440. The content is solely the responsibility of the authors and does not necessarily represent the official views of the National Institutes of Health.

src/GitCommand.jl

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,10 @@
11
module GitCommand
22

33
import Git_jll
4-
import ReplMaker
54

65
# export @git_cmd
76
export git
8-
export gitrepl
9-
10-
const GIT_REPL_MODE_NAME = "GitCommand.jl Git REPL mode"
11-
const GIT_REPL_MODE_PROMPT_TEXT = "git> "
12-
const GIT_REPL_MODE_START_KEY = ','
137

148
include("git.jl")
15-
include("repl.jl")
169

1710
end # end module GitCommand

src/repl.jl

Lines changed: 0 additions & 23 deletions
This file was deleted.

test/runtests.jl

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,6 @@ include("test-utils.jl")
4141
@test isdir("GitCommand.jl")
4242
@test isfile(joinpath("GitCommand.jl", "Project.toml"))
4343
end
44-
45-
with_temp_dir() do tmp_dir
46-
@test !isdir("GitCommand.jl")
47-
@test !isfile(joinpath("GitCommand.jl", "Project.toml"))
48-
expr = GitCommand._gitrepl_parser("clone https://github.com/JuliaVersionControl/GitCommand.jl")
49-
@test expr isa Expr
50-
@test !isdir("GitCommand.jl")
51-
@test !isfile(joinpath("GitCommand.jl", "Project.toml"))
52-
@eval $(expr)
53-
@test isdir("GitCommand.jl")
54-
@test isfile(joinpath("GitCommand.jl", "Project.toml"))
55-
end
5644
end
5745

5846
@testset "Safety" begin

0 commit comments

Comments
 (0)