[Sugar-devel] Analysing code changes, git diff

Daniel Drake dsd at laptop.org
Thu Sep 9 11:08:04 EDT 2010


On 9 September 2010 07:02, Simon Schampijer <simon at schampijer.de> wrote:
> FWIW, I understand your example and the frustration well. Have been put
> off by it myself. I often use the diff and the copy of the original code
> and/or final code near by to understand bigger refactorings. Which is
> not very handy of course.

Quick git tip for the "viewing the original file" part:

   git show HEAD:path/to/file

Shows you the version before the changes were made.

Daniel


More information about the Sugar-devel mailing list