Skip to content

Commit 06b2f4b

Browse files
authored
Remove all code and replace it with the code from GitCommand.jl (#28)
1 parent b9a88bc commit 06b2f4b

File tree

17 files changed

+240
-595
lines changed

17 files changed

+240
-595
lines changed

.github/workflows/CompatHelper.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: CompatHelper
2+
on:
3+
schedule:
4+
- cron: 0 0 * * *
5+
workflow_dispatch:
6+
jobs:
7+
CompatHelper:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Pkg.add("CompatHelper")
11+
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
12+
- name: CompatHelper.main()
13+
env:
14+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15+
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}
16+
run: julia -e 'using CompatHelper; CompatHelper.main()'
17+

.github/workflows/TagBot.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: TagBot
2+
on:
3+
issue_comment:
4+
types:
5+
- created
6+
workflow_dispatch:
7+
jobs:
8+
TagBot:
9+
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: JuliaRegistries/TagBot@v1
13+
with:
14+
token: ${{ secrets.GITHUB_TOKEN }}
15+
ssh: ${{ secrets.DOCUMENTER_KEY }}

.github/workflows/ci.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: CI
2+
on:
3+
pull_request:
4+
branches:
5+
- master
6+
push:
7+
branches:
8+
- master
9+
tags: '*'
10+
jobs:
11+
test:
12+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
13+
runs-on: ${{ matrix.os }}
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
version:
18+
- '^1.6.0-0' # delete this line once Julia 1.6 is released
19+
# - '1.6' # uncomment this line once Julia 1.6 is released
20+
# - '1' # uncomment this line once Julia 1.6 is released
21+
- 'nightly'
22+
os:
23+
- ubuntu-latest
24+
- macos-latest
25+
- windows-latest
26+
arch:
27+
- x64
28+
- x86
29+
# 32-bit Julia binaries are not available on macOS
30+
exclude:
31+
- os: macOS-latest
32+
arch: x86
33+
steps:
34+
- uses: actions/checkout@v2
35+
- uses: julia-actions/setup-julia@v1
36+
with:
37+
version: ${{ matrix.version }}
38+
arch: ${{ matrix.arch }}
39+
- uses: actions/cache@v2
40+
env:
41+
cache-name: cache-artifacts
42+
with:
43+
path: ~/.julia/artifacts
44+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
45+
restore-keys: |
46+
${{ runner.os }}-test-${{ env.cache-name }}-
47+
${{ runner.os }}-test-
48+
${{ runner.os }}-
49+
- uses: julia-actions/julia-buildpkg@v1
50+
- uses: julia-actions/julia-runtest@v1
51+
- uses: julia-actions/julia-processcoverage@v1
52+
- uses: codecov/codecov-action@v1
53+
with:
54+
file: lcov.info

.gitignore

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
*.jl.cov
21
*.jl.*.cov
2+
*.jl.cov
33
*.jl.mem
4-
deps/downloads/
5-
deps/usr/
6-
deps/deps.jl
4+
.DS_Store
5+
Manifest.toml
6+
/dev/

.travis.yml

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

LICENSE

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Copyright (c) 2019 Dilum Aluthge and contributors
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy
4+
of this software and associated documentation files (the "Software"), to deal
5+
in the Software without restriction, including without limitation the rights
6+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
copies of the Software, and to permit persons to whom the Software is
8+
furnished to do so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in all
11+
copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19+
SOFTWARE.

LICENSE.md

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

Project.toml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
name = "Git"
22
uuid = "d7ba0133-e1db-5d97-8f8c-041e4b3a1eb2"
3+
authors = ["Dilum Aluthge", "contributors"]
4+
version = "1.0.0-DEV"
35

46
[deps]
5-
BinDeps = "9e28174c-4ba2-5203-b857-d8d62c4213ee"
6-
Homebrew = "d9be37ee-ecc9-5288-90f1-b9ca67657a75"
7-
VersionParsing = "81def892-9a0e-5fdd-b105-ffc91e053289"
7+
Git_jll = "f8c6e375-362e-5223-8a59-34ff63f689eb"
88

99
[compat]
10-
julia = "≥ 0.7.0"
10+
Git_jll = "2.31"
11+
JLLWrappers = "1.1"
12+
julia = "1.6"
1113

1214
[extras]
15+
JLLWrappers = "692b3bcd-3c85-4b1f-b108-f13ce0eb3210"
1316
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
1417

1518
[targets]
16-
test = ["Test"]
19+
test = ["JLLWrappers", "Test"]

README.md

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,27 @@
1-
# Git.jl
1+
# Git
22

3-
[![Travis](https://travis-ci.org/JuliaPackaging/Git.jl.svg?branch=master)](https://travis-ci.org/JuliaPackaging/Git.jl)
4-
[![AppVeyor](https://ci.appveyor.com/api/projects/status/qw0kq3e4d6hua3q2/branch/master?svg=true)](https://ci.appveyor.com/project/ararslan/git-jl/branch/master)
5-
[![Coveralls](https://coveralls.io/repos/github/JuliaPackaging/Git.jl/badge.svg?branch=master)](https://coveralls.io/github/JuliaPackaging/Git.jl?branch=master)
3+
[![CI](https://github.com/JuliaVersionControl/Git.jl/actions/workflows/ci.yml/badge.svg)](https://github.com/JuliaVersionControl/Git.jl/actions/workflows/ci.yml)
4+
[![codecov](https://codecov.io/gh/JuliaVersionControl/Git.jl/branch/master/graph/badge.svg?token=cdXpiH0OJ3)](https://codecov.io/gh/JuliaVersionControl/Git.jl)
65

7-
Julia wrapper for command line Git
6+
Git allows you to use command-line Git in your Julia packages. You do
7+
not need to have Git installed on your computer, and neither do the users of
8+
your packages!
89

9-
This package provides Julia wrappers for some common Git operations,
10-
as used by the Julia package manager in versions 0.4 and earlier.
10+
Git provides a Git binary via
11+
[Git_jll](https://github.com/JuliaBinaryWrappers/Git_jll.jl).
12+
The latest version of Git requires at least Julia 1.6.
1113

12-
If you do not already have `git` installed and on your system `PATH`, then
13-
adding this package (or running `Pkg.build("Git")` will download a local binary
14-
copy of command-line git if you are using Windows, Mac OS X via
15-
[Homebrew.jl](https://github.com/JuliaLang/Homebrew.jl), or Linux on x86/amd64 architectures.
14+
Git is intended to work on any platform that supports Julia,
15+
including (but not limited to) Windows, macOS, Linux, and FreeBSD.
1616

17-
[![Git Badge](http://forthebadge.com/images/badges/uses-git.svg)](http://forthebadge.com)
17+
## Examples
18+
19+
```julia
20+
julia> using Git
21+
22+
julia> run(`$(git()) clone https://github.com/JuliaRegistries/General`)
23+
```
24+
25+
## Acknowledgements
26+
27+
- 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.

REQUIRE

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

0 commit comments

Comments
 (0)