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

Re: RFC: Using '--no-output-indicator-old' to only show new state

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 10, 2022, 20:13 UTC
Message-ID
<xmqqo82dd0qv.fsf@gitster.g>
In-Reply-To
<CAHk-=wgh8emJn-+FtxN=m_SCPiP6cGKHU-5ozzV9tWBMxn+xcA@mail.gmail.com>
Linus Torvalds <torvalds@linux-foundation.org> writes:
Show 11 quoted lines
> So after another round of doing
>
>      git diff | grep -v '^-'
>
> to just show what the end result of a patch is, I decided that there
> has to be a better way.
>
> Of course, to normal people, that "better way" is probably some GUI
> tool that shows diffs as "before/after" in two different frames next
> to each other, but I'm a grumpy old man ("Get off my lawn") and I do
> everything but read my email in a standard text-only terminal.

Sounds like the "apply --no-add" in the opposite direction ;-) I would find it handy myself, too, though I tend to read my patches after applying to my tree so the postimage is usually an invocation of "less" away for me.

I do not think it is a bad idea to have an option to give only the postimage and another option to give only the preimage. It would also trivially allow people to show the side-by-side diff in GUI.

Previous: Linus TorvaldsNext: Linus Torvalds
Message 2 of 11 in “RFC: Using '--no-output-indicator-old' to only show new state”
  1. Linus TorvaldsMar 10, 2022
  2. Junio C HamanoMar 10, 2022
  3. Linus TorvaldsMar 10, 2022
  4. Junio C HamanoMar 10, 2022
  5. Linus TorvaldsMar 10, 2022
  6. Linus TorvaldsMar 11, 2022
  7. Ævar Arnfjörð BjarmasonMar 11, 2022
  8. parse-options: add per-option flag to stop abbreviationÆvar Arnfjörð Bjarmason, Mar 11, 2022
  9. Linus TorvaldsMar 11, 2022
  10. Linus TorvaldsMar 11, 2022
  11. Konstantin RyabitsevMar 11, 2022

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.