Browse Source

Handle file renames in diff view

Change-Id: I809a0bddc2ca45f9b5789abeb770cf55d068f87d
changes/91/391991/1
James E. Blair 8 years ago
parent
commit
0a0ae71ea4
  1. 4
      gertty/gitrepo.py

4
gertty/gitrepo.py

@ -140,6 +140,10 @@ class Repo(object):
for diff_context in oldc.diff(newc, create_patch=True, U=context):
f = DiffFile()
files.append(f)
if diff_context.rename_from:
f.oldname = diff_context.rename_from
if diff_context.rename_to:
f.newname = diff_context.rename_to
old_lineno = 0
new_lineno = 0
offset = 0

Loading…
Cancel
Save