summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 765c08d)
raw | patch | inline | side by side (parent: 765c08d)
author | Holger Weiss <holger@zedat.fu-berlin.de> | |
Sat, 7 Nov 2009 01:23:32 +0000 (02:23 +0100) | ||
committer | Holger Weiss <holger@zedat.fu-berlin.de> | |
Sat, 7 Nov 2009 01:23:32 +0000 (02:23 +0100) |
This reverts commit db63fbfa036f5cd757aedf4547fef9e195a8c285, as it is
no longer needed and we'd like to keep the diff against the git-notify
version maintained by the Wine people as small as possible. The purpose
of db63fbfa was to suppress notifications on empty merge commits, which
can now be requested directly by specifying git-notify's "-X" option.
(Our change was implemented before the "-X" option was available, even
though the Git history suggests otherwise.)
Conflicts:
tools/git-notify
no longer needed and we'd like to keep the diff against the git-notify
version maintained by the Wine people as small as possible. The purpose
of db63fbfa was to suppress notifications on empty merge commits, which
can now be requested directly by specifying git-notify's "-X" option.
(Our change was implemented before the "-X" option was available, even
though the Git history suggests otherwise.)
Conflicts:
tools/git-notify
tools/git-notify | patch | blob | history |
diff --git a/tools/git-notify b/tools/git-notify
index f524fd7348d4822620c110f609a5ccdc1dfe5876..d53461c8af7f8c08ee83f3d9859253520d4784f9 100755 (executable)
--- a/tools/git-notify
+++ b/tools/git-notify
my @notice = ();
my ($url,$subject);
- 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 or die $! ? "Cannot execute diff-tree: $!" : "diff-tree exited with status: $?";
-
- return if length($diff) == 0;
-
if ($gitweb_url)
{
open REVPARSE, "-|" or exec "git", "rev-parse", "--short", $obj or die "cannot exec git-rev-parse";
push @notice, join("", <STAT>);
close STAT or die $! ? "Cannot execute diff-tree: $!" : "diff-tree exited with status: $?";
+ 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 or die $! ? "Cannot execute diff-tree: $!" : "diff-tree exited with status: $?";
+
if (($max_diff_size == -1) || (length($diff) < $max_diff_size))
{
push @notice, $diff;