consolidate pathspec_prefix and common_prefix
authorJunio C Hamano <gitster@pobox.com>
Tue, 6 Sep 2011 19:32:30 +0000 (12:32 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 6 Sep 2011 19:54:19 +0000 (12:54 -0700)
commit4a085b16f430bcfe1b6e2e84e7a569f4e191e906
tree3f6942e4b822e86aaf5cbb36597189f097761e51
parent5879f5684cfe8a38326b4ffd078f96e35c68e640
consolidate pathspec_prefix and common_prefix

The implementation from pathspec_prefix (slightly modified) replaces the
current common_prefix, because it also respects glob characters.

Based on a patch by Clemens Buchacher.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
dir.c
dir.h
setup.c