return if there's no mode change and no content change master
authorStefan Metzmacher <metze@samba.org>
Thu, 3 Jan 2008 18:52:58 +0000 (12:52 -0600)
committerStefan Metzmacher <metze@samba.org>
Thu, 3 Jan 2008 18:52:58 +0000 (12:52 -0600)
metze

SVN2GitEditor.pm

index fb87b48..0591898 100644 (file)
@@ -179,6 +179,8 @@ sub output_diff {
     my $index = "";
     $index = "index $osha1..$nsha1\n" unless $self->{info}{$path}{nodiff};
 
+    return if $mode eq "" and $index eq "";
+
     print $fh (
        "diff --git $ofile $nfile\n",
        $mode,