git hyper-blame: Added approx. line number translation.
Previously, when a commit was skipped, it would be blamed on the line
number the line had *after* the skipped commit. This could mean a
totally unrelated commit gets blamed. Now, a heuristic analyses the diff
of the skipped commit to discover approximately what line number the
line had *before* the skipped commit, so it can hopefully be blamed on
the right commit.
BUG=574290
Review URL: https://codereview.chromium.org/1629253002
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@298609 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/git_common.py b/git_common.py
index d571f82..949ba46 100644
--- a/git_common.py
+++ b/git_common.py
@@ -374,6 +374,10 @@
pass
+def diff(oldrev, newrev, *args):
+ return run('diff', oldrev, newrev, *args)
+
+
def freeze():
took_action = False