• J
    [PATCH] Move pathspec to the beginning of the diffcore chain. · 6145ee8b
    Junio C Hamano 提交于
    This changes the way how pathspec is used in the three diff-*
    brothers.  Earlier, they tried to grab as much information from
    the original input and used pathspec to limit the output.  This
    version uses pathspec upfront to narrow the world diffcore
    operates in, so "git-diff-* <arguments> some-directory" does not
    look at things outside the specified subtree when finding
    rename/copy or running pickaxe.
    
    Since diff-tree already takes this view and does not feed
    anything outside the specified directotires to begin with, this
    patch does not have to touch that command.
    Signed-off-by: NJunio C Hamano <junkio@cox.net>
    Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
    6145ee8b
diff-files.c 3.1 KB