Module: tools Branch: master Commit: 93eb18b8cba016ae1965567f5320ae761b738cb0 URL: http://source.winehq.org/git/?p=tools.git;a=commit;h=93eb18b8cba016ae1965567...
Author: Alexandre Julliard julliard@winehq.org Date: Tue Sep 12 20:05:23 2006 +0200
git-notify: Show rename information in mailed diffs and stats.
---
git-notify | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/git-notify b/git-notify index 2a42670..794f4b2 100755 --- a/git-notify +++ b/git-notify @@ -240,10 +240,14 @@ sub send_commit_notice($$) "---", "";
- my $stat = `git-diff-tree -p $obj | git-apply --stat --summary`; - my $diff = `git-diff-tree -p --no-commit-id $obj`; + open STAT, "-|" or exec "git", "diff-tree", "--stat", "-M", "--no-commit-id", $obj or die "cannot exec git-diff-tree"; + push @notice, join("", <STAT>); + close STAT; + + open DIFF, "-|" or exec "git", "diff-tree", "-p", "-M", "--no-commit-id", $obj or die "cannot exec git-diff-tree"; + my $diff = join( "", <DIFF> ); + close DIFF;
- push @notice, $stat; if (($max_diff_size == -1) || (length($diff) < $max_diff_size)) { push @notice, $diff;