Skip to content

Commit

Permalink
Remove all code and replace it with the code from GitCommand.jl (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
DilumAluthge authored Mar 23, 2021
1 parent b9a88bc commit 06b2f4b
Show file tree
Hide file tree
Showing 17 changed files with 240 additions and 595 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/CompatHelper.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: CompatHelper
on:
schedule:
- cron: 0 0 * * *
workflow_dispatch:
jobs:
CompatHelper:
runs-on: ubuntu-latest
steps:
- name: Pkg.add("CompatHelper")
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
- name: CompatHelper.main()
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}
run: julia -e 'using CompatHelper; CompatHelper.main()'

15 changes: 15 additions & 0 deletions .github/workflows/TagBot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: TagBot
on:
issue_comment:
types:
- created
workflow_dispatch:
jobs:
TagBot:
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
runs-on: ubuntu-latest
steps:
- uses: JuliaRegistries/TagBot@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
ssh: ${{ secrets.DOCUMENTER_KEY }}
54 changes: 54 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: CI
on:
pull_request:
branches:
- master
push:
branches:
- master
tags: '*'
jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
version:
- '^1.6.0-0' # delete this line once Julia 1.6 is released
# - '1.6' # uncomment this line once Julia 1.6 is released
# - '1' # uncomment this line once Julia 1.6 is released
- 'nightly'
os:
- ubuntu-latest
- macos-latest
- windows-latest
arch:
- x64
- x86
# 32-bit Julia binaries are not available on macOS
exclude:
- os: macOS-latest
arch: x86
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: actions/cache@v2
env:
cache-name: cache-artifacts
with:
path: ~/.julia/artifacts
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
restore-keys: |
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1
with:
file: lcov.info
8 changes: 4 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
*.jl.cov
*.jl.*.cov
*.jl.cov
*.jl.mem
deps/downloads/
deps/usr/
deps/deps.jl
.DS_Store
Manifest.toml
/dev/
20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

19 changes: 19 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Copyright (c) 2019 Dilum Aluthge and contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
23 changes: 0 additions & 23 deletions LICENSE.md

This file was deleted.

13 changes: 8 additions & 5 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
name = "Git"
uuid = "d7ba0133-e1db-5d97-8f8c-041e4b3a1eb2"
authors = ["Dilum Aluthge", "contributors"]
version = "1.0.0-DEV"

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

[compat]
julia = "≥ 0.7.0"
Git_jll = "2.31"
JLLWrappers = "1.1"
julia = "1.6"

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

[targets]
test = ["Test"]
test = ["JLLWrappers", "Test"]
34 changes: 22 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,27 @@
# Git.jl
# Git

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

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

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

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

[![Git Badge](http://forthebadge.com/images/badges/uses-git.svg)](http://forthebadge.com)
## Examples

```julia
julia> using Git

julia> run(`$(git()) clone https://github.com/JuliaRegistries/General`)
```

## Acknowledgements

- 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.
4 changes: 0 additions & 4 deletions REQUIRE

This file was deleted.

41 changes: 0 additions & 41 deletions appveyor.yml

This file was deleted.

89 changes: 0 additions & 89 deletions deps/build.jl

This file was deleted.

Loading

0 comments on commit 06b2f4b

Please sign in to comment.