aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--github-suggestion/src/suggestion.rs2
-rw-r--r--src/bin/git-sugdiff.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/github-suggestion/src/suggestion.rs b/github-suggestion/src/suggestion.rs
index 21591b1..4bd62d6 100644
--- a/github-suggestion/src/suggestion.rs
+++ b/github-suggestion/src/suggestion.rs
@@ -134,7 +134,7 @@ impl Suggestion {
)
}
- pub fn diff_command(&self) -> Result<git2::Oid, Error> {
+ pub fn blob(&self) -> Result<git2::Oid, Error> {
let repo = Repository::open(".")?;
let commit = repo.find_commit(self.commit.parse()?)?;
diff --git a/src/bin/git-sugdiff.rs b/src/bin/git-sugdiff.rs
index 6bc67d9..9bc7418 100644
--- a/src/bin/git-sugdiff.rs
+++ b/src/bin/git-sugdiff.rs
@@ -43,7 +43,7 @@ fn main() {
&config,
|suggestion| {
// TODO: Needs to work for multiple suggestions at once
- let blob = suggestion.diff_command().unwrap();
+ let blob = suggestion.blob().unwrap();
Command::new("git")
.arg("--no-pager")