Re: [RFC/PATCH 3/3] builtin/show.c: do not prune by pathspec
- From
Johannes Sixt <j.sixt@viscovery.net>
- Date
- Mar 31, 2011, 10:18 UTC
- Message-ID
- <4D9454D9.6060406@viscovery.net>
- In-Reply-To
- <3bee7fb376e2fb498c9634ab2ff5506f8c74a7bc.1301562936.git.git@drmicha.warpmail.net>
Am 3/31/2011 11:17, schrieb Michael J Gruber:
Show 9 quoted lines
> By design, "git show commit -- path" is not "git show commit:path", and > there is no reason to change that. But "git show commit -- path" simply > returns nothing at all "most of the time" because it prunes by pathspec > even though it does not walk commits. This is pretty useless. > > So, turn off pruning (but keep diff limiting of course) so that "git > show commit -- path" shows the commit message and the diff that the > commit introduces to path (filtered by path); only the diff will be > empty "most of the time".
How does this interfere with git show --walk commit -- path? Will it now show all commits instead of just those that changed path?
-- Hannes