summary refs log tree commit diff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index e7a11a9..062a448 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,3 +1,16 @@
+// SPDX-License-Identifier: EUPL-1.2
+// SPDX-FileCopyrightText: 2021 Alyssa Ross <hi@alyssa.is>
+
+use std::process::exit;
+
+use git2::Repository;
+
 fn main() {
-    println!("Hello, world!");
+    let repo = match Repository::open_from_env() {
+        Ok(repo) => repo,
+        Err(e) => {
+            eprintln!("fatal: {}", e.message());
+            exit(128);
+        }
+    };
 }