def read_index_dict(f):
    ret = {}
    for x in read_index(f):
        ret[x[0]] = tuple(x[1:])
    return ret
Read an index file and return it as a dictionary.
dataset/ETHPy150Open natestedman/Observatory/observatory/lib/dulwich/index.py/read_index_dict