Skip to content
  • Junio C Hamano's avatar
    git-apply: work from subdirectory. · edf2e370
    Junio C Hamano authored
    
    
    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: default avatarJunio C Hamano <junkio@cox.net>
    edf2e370