def entry_key(*entry):
    if len(entry) == 1:
        return (entry[0].path, entry[0].stage)
    else:
        return tuple(entry)
    # END handle entry
:return: Key suitable to be used for the index.entries dictionary
dataset/ETHPy150Open gitpython-developers/GitPython/git/index/fun.py/entry_key