aboutsummaryrefslogtreecommitdiffstats
path: root/github-suggestion-config/Cargo.toml
diff options
context:
space:
mode:
authorTeddy Wing2020-08-01 01:38:07 +0200
committerTeddy Wing2020-08-01 01:38:07 +0200
commiteb74fee6be6876b86c97cdea0205ec970152358e (patch)
tree0c0f84de46684e0baf5a39b69cccf9f71ff6f4d0 /github-suggestion-config/Cargo.toml
parent25ce03b6102cf017cf9cbba7e28dbd0d76ab5a5d (diff)
downloadgit-suggestion-eb74fee6be6876b86c97cdea0205ec970152358e.tar.bz2
Add a function to get an owner-repo pair from the Git repo remote
This will allow us to accept suggestion IDs alone, without a full URL, like the following: $ git sugapply 459691747 # or $ git sugapply --remote upstream 459691747 # or $ git config github-suggestion.remote upstream $ git sugapply 459691747 We do this by extracting the pair from the remote URL.
Diffstat (limited to 'github-suggestion-config/Cargo.toml')
-rw-r--r--github-suggestion-config/Cargo.toml9
1 files changed, 9 insertions, 0 deletions
diff --git a/github-suggestion-config/Cargo.toml b/github-suggestion-config/Cargo.toml
new file mode 100644
index 0000000..788d00d
--- /dev/null
+++ b/github-suggestion-config/Cargo.toml
@@ -0,0 +1,9 @@
+[package]
+name = "github-suggestion-config"
+version = "0.0.1"
+edition = "2018"
+
+[dependencies]
+git2 = "0.13.8"
+thiserror = "1.0.20"
+url = "2.1.1"