This site is an archive; learn more about 8 years of OpenHatch.

[OH-Dev] Viewing Patches and Diffs

Asheesh Laroia lists at asheesh.org
Tue Mar 27 15:17:39 UTC 2012


Excerpts from Jacquie Flemming's message of Tue Mar 27 09:57:27 -0400 2012:
> On github.com this is easy but when not on github.com what's the best way
> to views
> diffs of  (files with) patches?
> 
> If I want to view a patch file, but do not want to necessarily keep that
> change around,
> what's the best way to do that? I want to see the diff not just the file
> with the patch applied.
> There is a wiki page on applying patches (
> https://openhatch.org/wiki/Merging_patches),
> but if I apply in this manner, I'm not sure how to do the diff,
> do I just open gitk and see the diff there? Is this the best way? Are there
> other ways?
> I think I answered my question, but I'm still interested in how others are
> viewing
> diffs.

Things I do:

If you apply the patch, "git log -p" shows you the changes in a clear format.
If you have enabled color mode in your git, then this is great. That's
basically all I ever use -- apply the patch, then "git log -p".

I hear that "Meld" is a good tool for GNOME.

I use kdiff3 every once in a while to visualize a diff.

-- Asheesh.


More information about the Devel mailing list