From: Junio C Hamano Date: Sat, 26 Nov 2005 07:14:15 +0000 (-0800) Subject: git-apply: work from subdirectory. X-Git-Tag: v0.99.9l^2~23^2~15 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/edf2e37002eeb30a2ccad5db3b3e1fe41cdc7eb0?ds=inline;hp=edf2e37002eeb30a2ccad5db3b3e1fe41cdc7eb0 git-apply: work from subdirectory. When applying a patch to index file, we need to know where GIT_DIR is; use setup_git_directory() to find it out. This also allows us to work from a subdirectory if we wanted to. When git-apply is run from a subdirectory, it applies the given patch only to the files under the current directory and below. Signed-off-by: Junio C Hamano ---