Re: Feature request on git log --oneline <revision range> -- <path>...
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 13, 2019, 21:09 UTC
- Message-ID
- <xmqqmumzbdki.fsf@gitster-ct.c.googlers.com>
- In-Reply-To
- <87k1i4j8aj.fsf@evledraar.gmail.com>
Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
Show 8 quoted lines
> What do you think such an option should do when it finds negative path > specs, e.g. this on git.git: > > git log --oneline --stat -- ':!/Makefile' '*Makefile*' > > Should it only render positive matches, or distinguish between > matched/blacklisted/not-matched, your example (with no negative > patspecs) just shows matched/not-matched.
Another thing to consider is what this would do to the merge simplification.
If I understand it correctly, this is sort-of like a reverse of the "--full-diff" option, where the pathspec *is* used to limit and simplify the history, but for the purpose of displaying "log -p" output, the pathspec is widened to show the entire change. This instead makes the traversal ignore the pathspec and uses it only to limit the "log -p" output. I do not think I would be fundamentally opposed to a feature like this.