From: Junio C Hamano Date: Fri, 04 Nov 2011 22:04:29 GMT Subject: Re: [PATCH] log: allow to specify diff pathspec in addition to prune pathspec Message-ID: <7vwrbfa6j6.fsf@alter.siamese.dyndns.org> In-Reply-To: <1320322556-32675-1-git-send-email-pclouds@gmail.com> Nguyễn Thái Ngọc Duy writes: > Pathspec in "git log -p " is used for both commit pruning > and diff generation. If --full-diff is given, then diff pathspec is > reset to generate complete diff. > > This patch gives more control to diff generation. The first pathspec in > "git log -p -- -- " is used as commit pruning > as usual. The second one is used for diff generation. So --full-diff > now is essentially "git log -p -- --". I agree that giving more control to diff generation is a good idea, and this certainly is better than the previous round that nobody reviewed before you rerolled this round. But I have doubts about declaring "--full-diff is equivalent to giving the 'output' pathspec that is empty". Have you thought about the interaction between this and -M/-C options?