This is a spill-over from my patch series that introduces support for building Git using Visual Studio in our CI builds, based on a suggestion by Johannes Sixt: complete the symmetry by adding a helper that does the opposite of index_pos_to_insert_pos(). I tried to be super inventive and came up with the name insert_pos_to_index_pos() for said helper. Johannes Schindelin (1): Add a helper to reverse index_pos_to_insert_pos() blame.c | 5 +++-- builtin/mv.c | 2 +- cache.h | 5 +++++ merge-recursive.c | 4 ++-- read-cache.c | 2 +- rerere.c | 2 +- sha1-name.c | 2 +- submodule.c | 2 +- unpack-trees.c | 2 +- 9 files changed, 16 insertions(+), 10 deletions(-) base-commit: 46689317ac009ef4ae91235354b6df7bf6d11d17 Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-378%2Fdscho%2Finsert-pos-to-index-pos-v1 Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-378/dscho/insert-pos-to-index-pos-v1 Pull-Request: https://github.com/gitgitgadget/git/pull/378 -- gitgitgadget