diff-helper: pass unrecognized lines through unmodified
authorLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 18 May 2005 18:33:46 +0000 (11:33 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 18 May 2005 18:33:46 +0000 (11:33 -0700)
(and flush any pending renames)

diff-helper.c

index 3ef5706..2877ddc 100644 (file)
@@ -268,11 +268,12 @@ int main(int ac, const char **av) {
                if (sb.eof)
                        break;
                status = parse_diff_raw_output(sb.buf, av+1, ac-1, reverse);
-               if (status)
-                       fprintf(stderr, "cannot parse %s\n", sb.buf);
+               if (status) {
+                       flush_renames(av+1, ac-1, reverse);
+                       printf("%s%c", sb.buf, line_termination);
+               }
        }
 
-       if (detect_rename)
-               flush_renames(av+1, ac-1, reverse);
+       flush_renames(av+1, ac-1, reverse);
        return 0;
 }