clean: use cache_name_is_other()
authorNguyễn Thái Ngọc Duy <redacted>
Fri, 24 Jan 2014 13:40:35 +0000 (20:40 +0700)
committerJunio C Hamano <redacted>
Mon, 24 Feb 2014 22:37:24 +0000 (14:37 -0800)
commit2e70c01799bf663cc1fa5f6e37e025000ffdc0b0
treea93f1b30bb5f1fdef0dcf627d351c141dcd6cd53
parent05b85022c9a76954a1a281a5dc5bcd32ad486b88
clean: use cache_name_is_other()

cmd_clean() has the exact same code of index_name_is_other(). Reduce
code duplication.

Signed-off-by: Nguyễn Thái Ngọc Duy <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/clean.c
git clone https://git.99rst.org/PROJECT