]> git.ipfire.org Git - thirdparty/git.git/commit - dir.c
dir: expose cmp_name() and check_contains()
authorSamuel Lijin <sxlijin@gmail.com>
Thu, 18 May 2017 08:21:53 +0000 (04:21 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 22 May 2017 03:14:13 +0000 (12:14 +0900)
commitbbf504a9957e8a2a262619641ffa30348d71a76f
treed9e0897c6250a60b6f2e72c71a8243c9a9653226
parentfb898888491b83c9a3396fb559032ca78807a0c0
dir: expose cmp_name() and check_contains()

We want to use cmp_name() and check_contains() (which both compare
`struct dir_entry`s, the former in terms of the sort order, the latter
in terms of whether one lexically contains another) outside of dir.c,
so we have to (1) change their linkage and (2) rename them as
appropriate for the global namespace. The second is achieved by
renaming cmp_name() to cmp_dir_entry() and check_contains() to
check_dir_entry_contains().

Signed-off-by: Samuel Lijin <sxlijin@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
dir.c
dir.h