From e7d1bd377a7b43cb2392751dd4e6e954c2bc875b Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Thu, 17 Sep 2020 00:04:06 +0200 Subject: main.rs: Accept a ref as a command line argument If a ref is given on the command line, use that as the diff base. Otherwise default to master. --- Cargo.lock | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'Cargo.lock') diff --git a/Cargo.lock b/Cargo.lock index 4c250ac..abaac2e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -27,10 +27,27 @@ version = "0.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822" +[[package]] +name = "exitcode" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "de853764b47027c2e862a995c34978ffa63c1501f2e15f987ba11bd4f9bba193" + +[[package]] +name = "getopts" +version = "0.2.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "14dbbfd5c71d70241ecf9e6f13737f7b5ce823821063188d7e46c41d371eebd5" +dependencies = [ + "unicode-width", +] + [[package]] name = "git-todo" version = "0.0.1" dependencies = [ + "exitcode", + "getopts", "git2", "thiserror", ] @@ -235,6 +252,12 @@ dependencies = [ "tinyvec", ] +[[package]] +name = "unicode-width" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9337591893a19b88d8d87f2cec1e73fad5cdfd10e5a6f349f498ad6ea2ffb1e3" + [[package]] name = "unicode-xid" version = "0.2.1" -- cgit v1.2.3