aboutsummaryrefslogtreecommitdiff
path: root/supergit/src/bin
diff options
context:
space:
mode:
Diffstat (limited to 'supergit/src/bin')
-rw-r--r--supergit/src/bin/test.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/supergit/src/bin/test.rs b/supergit/src/bin/test.rs
new file mode 100644
index 0000000..166047e
--- /dev/null
+++ b/supergit/src/bin/test.rs
@@ -0,0 +1,16 @@
+//! A test binary to use during development
+
+use supergit::raw::RawRepository;
+
+fn main() {
+ let path = match std::env::args().nth(1) {
+ Some(p) => p,
+ None => {
+ eprintln!("USAGE: supergit-test <path>");
+ std::process::exit(2);
+ }
+ };
+
+ let rr = RawRepository::open(path.as_str()).unwrap();
+
+}