git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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.

Previous: Ævar Arnfjörð BjarmasonNext: Duy Nguyen
Message 3 of 4 in “Feature request on git log --oneline <revision range> -- <path>...”
  1. Petri GyntherFeb 13, 2019
  2. Ævar Arnfjörð BjarmasonFeb 13, 2019
  3. Junio C HamanoFeb 13, 2019
  4. Duy NguyenFeb 13, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.