memset(buf, 0, sizeof(buf));
+ // FIXME: read more than one byte at a time. This is absurdly slow.
while ((c = fgetc(stdin)) != EOF)
{
sum = stupidsum_add(sum, buf[i], c);
if (!pipe)
pipe = popen("git hash-object --stdin -w", "w");
+
+ // FIXME: write more than one byte at a time. This is absurdly
+ // slow.
fputc(c, pipe);
}