add.c: extract new die_if_path_beyond_symlink() for reuse
authorAdam Spiers <git@adamspiers.org>
Sun, 6 Jan 2013 16:58:11 +0000 (16:58 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sun, 6 Jan 2013 22:26:37 +0000 (14:26 -0800)
commit512aaf9453cecfa57dddc61aec2132b936b2ff70
tree5b10c1da9594fb012bedf00ad2df9d26e4c831d0
parent9d67b61f739a1a898bc8c9960047ebff0e9c9d09
add.c: extract new die_if_path_beyond_symlink() for reuse

This will be reused by a new git check-ignore command.

Also document validate_pathspec().

Signed-off-by: Adam Spiers <git@adamspiers.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/add.c
pathspec.c
pathspec.h