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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> writes:

> 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.



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux