From: Adam Spiers Date: Sun, 6 Jan 2013 16:58:10 +0000 (+0000) Subject: add.c: extract check_path_for_gitlink() from treat_gitlinks() for reuse X-Git-Tag: v1.8.2-rc0~89^2~5 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/9d67b61f739a1a898bc8c9960047ebff0e9c9d09?hp=9d67b61f739a1a898bc8c9960047ebff0e9c9d09 add.c: extract check_path_for_gitlink() from treat_gitlinks() for reuse Extract the body of the for loop in treat_gitlinks() into a separate check_path_for_gitlink() function so that it can be reused elsewhere. This paves the way for a new check-ignore sub-command. Also document treat_gitlinks(). Signed-off-by: Adam Spiers Signed-off-by: Junio C Hamano ---