aboutsummaryrefslogtreecommitdiffstats
path: root/git_deps
diff options
context:
space:
mode:
authorAdam Spiers <git@adamspiers.org>2018-09-10 19:42:28 -0600
committerAdam Spiers <git@adamspiers.org>2018-09-10 19:42:28 -0600
commit0a0614f35b4fce95f31a06edada2ecee671f68b4 (patch)
tree689f0ea9b3d3c15fc3e2477ced5a2e3813f4384f /git_deps
parentb671a54e0fc64b33103de968b4bae6623174f873 (diff)
downloadgit-deps-0a0614f35b4fce95f31a06edada2ecee671f68b4.tar.gz
rename blame_hunk to blame_diff_hunk
This makes it a bit clearer where the hunk came from.
Diffstat (limited to 'git_deps')
-rw-r--r--git_deps/detector.py4
1 files changed, 2 insertions, 2 deletions
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,