From: Junio C Hamano Date: Mon, 29 Aug 2011 19:31:06 +0000 (-0700) Subject: unpack-trees: allow pruning with pathspec X-Git-Tag: v1.7.7.1~22^2~1 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/40e372563cfbcce4380820ae03e872f09fa25327?ds=inline;hp=40e372563cfbcce4380820ae03e872f09fa25327 unpack-trees: allow pruning with pathspec Use the pathspec pruning of traverse_trees() from unpack_trees(). Again, the unpack_trees() machinery is primarily meant for merging two (or more) trees, and because a merge is a full tree operation, it didn't support any pruning with pathspec, and this codepath probably should not be enabled while running a merge, but the caller in diff-lib.c::diff_cache() should be able to take advantage of it. Signed-off-by: Junio C Hamano ---