A simple CPU rendered GUI IDE experience.
Diffstat (limited to 'src/git.rs')
-rw-r--r--src/git.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/git.rs b/src/git.rs
index 2f4da65..78c7e1b 100644
--- a/src/git.rs
+++ b/src/git.rs
@@ -4,8 +4,8 @@ use git2::Repository;
use imara_diff::InternedInput;
use ropey::Rope;
-pub fn load(p: &Path, ws: &Path) -> Result<Vec<u8>, git2::Error> {
- let r = Repository::open(ws)?;
+pub fn load(p: &Path, gd: &Path) -> Result<Vec<u8>, git2::Error> {
+ let r = Repository::open(gd)?;
let o =
r.head()?.peel_to_commit()?.tree()?.get_path(p)?.to_object(&r)?;
let blob = o