[sysadmin-bin: 84/168] Pass -M to git-show when generating email diffs



commit bac91dc727c1600ccb0594cc532e412e49b99e69
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Fri Apr 17 09:25:32 2009 -0400

    Pass -M to git-show when generating email diffs
    
    Passing -M to git-show (and thus to git-diff) makes it detects files
    being moved which results in smaller and more readable diffs. (Would
    -C be worth it? Not sure.)

 gnome-post-receive-email |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gnome-post-receive-email b/gnome-post-receive-email
index 65dbd0f..7efb313 100755
--- a/gnome-post-receive-email
+++ b/gnome-post-receive-email
@@ -335,7 +335,7 @@ class BranchChange(RefChange):
                                      oldrev=parent, newrev=commit.id)
 
             email_out.flush()
-            git.show(commit.id, p=True, stat=True, _outfile=email_out)
+            git.show(commit.id, p=True, M=True, stat=True, _outfile=email_out)
             end_email()
 
 class BranchCreation(BranchChange):



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