Probably worth mentioning the this requires a dumpfile v2 (i.e., it
does not understand the svndiff0 delta format yet).
A strbuf would do just as well. But using obj_pool looks like a fine
way to avoid depending on another piece of git code.
Neat. This is a textbook example of where to use a perfect hash, but
comparing interned strings is simpler and fast enough (and the
bottlenecks are elsewhere).
[...]
Unknown properties are ignored. Adding stream comments to allow
recovering them is left as an exercise for the interested reader.
A simple reader does not cope well with this kind of function. It is
hard to know if it exhaustively deals with all cases.
But: with real-world repos (e.g. ASF) it works well enough.
Too long. I realize that writing a state machine can be hard in C;
maybe it would be easiest to package up the state in a struct and
have a separate function for the main loop body.
The patches I didn’t comment on all look good. I don’t think anything I did
comment on should prevent this reaching a wider audience.
Thanks for the pleasant read,
Jonathan
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html