On Mon, Jan 16, 2012 at 02:15:59PM -0800, Junio C Hamano wrote: > Yeah, the logic of this correction is very clear. Because diff_cache is > about walking a flat index, the "recursive pathspec" that allows us to > look into deeper levels in directory hierarchy should be set, and also we > should not be limiting the depth of the match in any way by setting the > max_depth to "unlimited". For the record, enabling wildcard in git-log is just as simple. But I guess you don't want more changes this late in rc cycles. -- 8< -- diff --git a/revision.c b/revision.c index 064e351..c426271 100644 --- a/revision.c +++ b/revision.c @@ -1816,6 +1816,8 @@ int setup_revisions(int argc, const char **argv, struct rev_info *revs, struct s if (revs->prune_data.nr) { diff_tree_setup_paths(revs->prune_data.raw, &revs->pruning); + revs->pruning.pathspec.recursive = 1; + revs->pruning.pathspec.max_depth = -1; /* Can't prune commits with rename following: the paths change.. */ if (!DIFF_OPT_TST(&revs->diffopt, FOLLOW_RENAMES)) revs->prune = 1; -- 8< -- -- Duy -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html