clean: use cache_name_is_other()
commit2e70c01799bf663cc1fa5f6e37e025000ffdc0b0
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Fri, 24 Jan 2014 13:40:35 +0000 (24 20:40 +0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 24 Feb 2014 22:37:24 +0000 (24 14:37 -0800)
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 <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/clean.c