A simple CPU rendered GUI IDE experience.
Diffstat (limited to 'src/git.rs')
| -rw-r--r-- | src/git.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |