cache-tree: extract subtree_pos()
authorDerrick Stolee <redacted>
Sat, 23 Jan 2021 19:58:13 +0000 (19:58 +0000)
committerJunio C Hamano <redacted>
Sun, 24 Jan 2021 01:14:07 +0000 (17:14 -0800)
commitc80dd3967f28527dab49c8e9525524c7f33baa22
treea52012f5fed36ff5c484daf759cce6e2d73de864
parent8d87e338e16e022545638a0e9a3e15c6bdb56111
cache-tree: extract subtree_pos()

This method will be helpful to use outside of cache-tree.c in a later
feature. The implementation is subtle due to subtree_name_cmp() sorting
by length and then lexicographically.

Signed-off-by: Derrick Stolee <redacted>
Signed-off-by: Junio C Hamano <redacted>
cache-tree.c
cache-tree.h
git clone https://git.99rst.org/PROJECT