diff options
author | Teddy Wing | 2020-08-23 19:45:28 +0200 |
---|---|---|
committer | Teddy Wing | 2020-08-23 19:45:28 +0200 |
commit | 7028b38ba6ada33975ea44521ec121367c9d15f9 (patch) | |
tree | b319983cdffd3479d8c652e68192828579fe9ce6 /github-suggestion | |
parent | 76079daf1e2175d02c9c584e47a21650fce30bb6 (diff) | |
download | git-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 'github-suggestion')
-rw-r--r-- | github-suggestion/src/suggestion.rs | 2 |
1 files changed, 1 insertions, 1 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()?)?; |