]> git.ipfire.org Git - thirdparty/git.git/commitdiff
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 3ef57060d62054365895ff592ef4c3bd9d54fe17..2877ddc4df85179c03cdcc8c7a66831951ec5d97 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;
 }