>>>>> "PB" == Petr Baudis <pasky@ucw.cz> writes: PB> ... git-diff-tree (in contrast to PB> git-diff-cache) won't take the pathspec as its trailing arguments, PB> Junio, is there any specific reason for that, or is the end of PB> git-diff-tree argument list the right spot for the pathspec stuff? Baffled. Are you at Linus tip? Linus correctly decided that diff-tree does not have to call diffcore_pathspec(), which may be what confused you to make the comment "... in contrast to git-diff-cache) won't take ...". But it does not call it only because it does not need to. It filters the filepairs itself on the input side using the trailing arguments; since diffcore_pathspec filters as the first one in the chain as the input filter, calling it from diff-tree would not cull anything further. Here is what I am getting from the Linus tip binary, between my HEAD and Linus tip: $ git-diff-tree -r linus HEAD >.all ;# everything $ git-diff-tree -r linus HEAD t >.t-only ;# limiting to the test suite $ wc -l .all .t-only ;# count results 12 .all 3 .t-only 15 total $ cat .t-only ;# show what's in "t" output :100644 100644 a51985518251f6c3f677438c3cb51b9716c20296 5ac29d1f98438d3530bbc8b0bdaced58200aca37 M t/t4005-diff-rename-2.sh :100644 100644 518892b90c7cbb3fb193d6bfb622046aff0f4431 76ae7201f0d19b7933ca44958b7c468193ec9778 M t/t4007-rename-3.sh :000000 100755 0000000000000000000000000000000000000000 01d276692669f2241471b8ad611b17d51e2a98ab N t/t4009-diff-rename-4.sh $ head -n 1 .all ;# prove that "t" filtered. :100644 100644 f85a605f0a336f506cf5cf46476a43e4c56b3e66 1d92a01a02543e55d0feb3541ee594fbc638136c M Documentation/diff-format.txt - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.htmlReceived on Mon May 30 10:19:27 2005
This archive was generated by hypermail 2.1.8 : 2005-05-30 10:19:28 EST