-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Turn the dependency on Git into a package extension.
- Loading branch information
1 parent
31fb698
commit 8893836
Showing
11 changed files
with
129 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,24 +4,30 @@ authors = ["Gunnar Farnebäck <[email protected]>"] | |
version = "0.6.0" | ||
|
||
[deps] | ||
Git = "d7ba0133-e1db-5d97-8f8c-041e4b3a1eb2" | ||
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" | ||
RegistryInstances = "2792f1a3-b283-48e8-9a74-f99dce5104f3" | ||
RegistryTools = "d1eb7eb1-105f-429d-abf5-b0f65cb9e2c4" | ||
TOML = "fa267f1f-6049-4f14-aa54-33bafae1ed76" | ||
UUIDs = "cf7118a7-6976-5b1a-9a39-7adc72f591a4" | ||
|
||
[weakdeps] | ||
Git = "d7ba0133-e1db-5d97-8f8c-041e4b3a1eb2" | ||
|
||
[extensions] | ||
GitExt = ["Git"] | ||
|
||
[compat] | ||
CodecZlib = "0.5, 0.6, 0.7" | ||
Git = "1.3" | ||
Git = "1.3.1" | ||
RegistryInstances = "0.1" | ||
RegistryTools = "2.2" | ||
julia = "1.6" | ||
|
||
[extras] | ||
CodecZlib = "944b1d66-785c-5afd-91f1-9de20f533193" | ||
Git = "d7ba0133-e1db-5d97-8f8c-041e4b3a1eb2" | ||
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f" | ||
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" | ||
|
||
[targets] | ||
test = ["CodecZlib", "Pkg", "Test"] | ||
test = ["CodecZlib", "Git", "Pkg", "Test"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ The full set of arguments to `register` is | |
``` | ||
register(package = nothing; | ||
registry, commit, push, repo, ignore_reregistration, | ||
gitconfig, create_gitlab_mr) | ||
gitconfig, custom_git, create_gitlab_mr) | ||
``` | ||
|
||
although in many cases a no-argument `register()` call is sufficient. | ||
|
@@ -121,7 +121,7 @@ informational message. | |
|
||
**Note: The default will likely be changed to `true` in a future update.** | ||
|
||
`git_config::Dict{<:AbstractString, <:AbstractString}`: | ||
`gitconfig::Dict{<:AbstractString, <:AbstractString}`: | ||
|
||
Optional configuration parameters for the `git` command. For | ||
interactive use you most likely do not need this. Defaults to | ||
|
@@ -130,10 +130,17 @@ an empty dictionary, i.e. no configuration. | |
For CI purposes it can be useful, e.g. as used in the LocalRegistry | ||
tests: | ||
``` | ||
git_config = Dict("user.name" => "LocalRegistryTests", | ||
"user.email" => "[email protected]") | ||
gitconfig = Dict("user.name" => "LocalRegistryTests", | ||
"user.email" => "[email protected]") | ||
``` | ||
|
||
`custom_git::Union{Nothing, AbstractString, Cmd}`: | ||
|
||
By default LocalRegistry uses an external `git` command, unless the | ||
`Git` package has been loaded, in which case a bundled `git` is used. | ||
This keyword argument can be used for [further | ||
customization](custom_git.md). | ||
|
||
`create_gitlab_mr`: | ||
|
||
If `true`, send git push options to create a GitLab merge | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.