This is an RFC patch series that is not intended to be merged for now, as it looks like we don't need oidmaps that can handle several entries with the same key yet. As I needed this for my work on reftable, I thought that I might as well post it, to get early feedback and to avoid duplicating work in case someone else needs it before I start sending my reftable work (hopefully in a few months). Christian Couder (5): oidmap: add oidmap_add() oidmap: add oidmap_get_next() test-oidmap: add back proper 'add' subcommand test-oidmap: add 'get_all' subcommand t0016: add 'add' and 'get_all' subcommand test oidmap.c | 20 ++++++++++++++++++++ oidmap.h | 12 ++++++++++++ t/helper/test-oidmap.c | 34 ++++++++++++++++++++++++++++++++++ t/t0016-oidmap.sh | 26 ++++++++++++++++++++++++++ 4 files changed, 92 insertions(+) -- 2.22.0.514.g3228928bce.dirty