[Sugar-devel] Analysing code changes, git diff

James Cameron quozl at laptop.org
Thu Sep 9 21:31:36 EDT 2010


git diff --patience

Generated more useful output for me than the default, in the context of
the changes I was making.

The same option is valid for git format-patch

The resulting diffs were semantically equivalent, but the --patience diff
was longer, and in my case easier to understand.

Here's the default diff statistics:

 src/jarabe/journal/model.py |  128 ++++++++++++++++++++++++++++++------------
 1 files changed, 91 insertions(+), 37 deletions(-)

Here's the --patience diff statistics:

 src/jarabe/journal/model.py |  144 +++++++++++++++++++++++++++++-------------
 1 files changed, 99 insertions(+), 45 deletions(-)

Take a look side by side; default on left, patience on right:

http://dev.laptop.org/~quozl/patience.html

-- 
James Cameron
http://quozl.linux.org.au/


More information about the Sugar-devel mailing list