562
def changes_from_git_changes(changes, mapping, specific_files=None, include_unchanged=False):
562
def changes_from_git_changes(changes, mapping, specific_files=None, include_unchanged=False,
563
564
"""Create a iter_changes-like generator from a git stream.
565
566
source and target are iterators over tuples with:
568
571
for (oldpath, newpath), (oldmode, newmode), (oldsha, newsha) in changes:
569
572
if not (specific_files is None or
570
573
(oldpath is not None and osutils.is_inside_or_parent_of_any(specific_files, oldpath)) or