author | Junio C Hamano <junkio@cox.net> | |
Sat, 26 Nov 2005 07:14:15 +0000 (23:14 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 29 Nov 2005 07:13:01 +0000 (23:13 -0800) | ||
commit | edf2e37002eeb30a2ccad5db3b3e1fe41cdc7eb0 | |
tree | 6e54580ff2c4e88ec68a7d22afe884544851382d | tree | snapshot |
parent | 4ca0660816671f65546626b6e2c2038b6a347a8b | commit | diff |
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 <junkio@cox.net>
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 <junkio@cox.net>
apply.c | diff | blob | history |