def write_index(f, entries):
    f.write("DIRC")
    f.write(struct.pack(">LL", 2, len(entries)))
    for x in entries:
        write_cache_entry(f, x)
Write an index file.
dataset/ETHPy150Open natestedman/Observatory/observatory/lib/dulwich/index.py/write_index