aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin
diff options
context:
space:
mode:
authorTeddy Wing2020-08-23 19:45:28 +0200
committerTeddy Wing2020-08-23 19:45:28 +0200
commit7028b38ba6ada33975ea44521ec121367c9d15f9 (patch)
treeb319983cdffd3479d8c652e68192828579fe9ce6 /src/bin
parent76079daf1e2175d02c9c584e47a21650fce30bb6 (diff)
downloadgit-suggestion-7028b38ba6ada33975ea44521ec121367c9d15f9.tar.bz2
Suggestion: Rename `diff_command()` to `blob()`
This function is no longer calling the `git diff` command, so this name doesn't make sense.
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/git-sugdiff.rs2
1 files changed, 1 insertions, 1 deletions
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")