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 fb87b480e27a329e42aaa7a40116bde77271b55f..05918985901ac51a272fc8e968e6bf473a4fdcae 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,