From 0a0614f35b4fce95f31a06edada2ecee671f68b4 Mon Sep 17 00:00:00 2001 From: Adam Spiers Date: Mon, 10 Sep 2018 19:42:28 -0600 Subject: rename blame_hunk to blame_diff_hunk This makes it a bit clearer where the hunk came from. --- git_deps/detector.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'git_deps') diff --git a/git_deps/detector.py b/git_deps/detector.py index faece5a..e138608 100644 --- a/git_deps/detector.py +++ b/git_deps/detector.py @@ -144,9 +144,9 @@ class DependencyDetector(object): path = patch.delta.old_file.path self.logger.debug(" Examining hunks in %s" % path) for hunk in patch.hunks: - self.blame_hunk(dependent, parent, path, hunk) + self.blame_diff_hunk(dependent, parent, path, hunk) - def blame_hunk(self, dependent, parent, path, hunk): + def blame_diff_hunk(self, dependent, parent, path, hunk): """Run git blame on the parts of the hunk which exist in the older commit in the diff. The commits generated by git blame are the commits which the newer commit in the diff depends on, -- cgit