def _calc_is_changed(commit, path, ret, type):
    if len(commit.parents) > 1:
        return
    if commit.is_changed([path], no_diff=True)[0]:
        ret[path] = 1
dataset/ETHPy150Open douban/ellen/ellen/git/tree.py/_calc_is_changed/original