vcs-svn: teach line_buffer to handle multiple input files
commit834ffbec2dbd4015ff2eaca31414581c7c5c393a
authorJonathan Nieder <jrnieder@gmail.com>
Mon, 11 Oct 2010 02:41:06 +0000 (10 21:41 -0500)
committerJonathan Nieder <jrnieder@gmail.com>
Sat, 26 Feb 2011 10:57:59 +0000 (26 04:57 -0600)
treea06a9a22cbbe8eec3fb6c939f860762f341c51d6
parent7d79a99480671b62caa0169f2fb44e968fccfdec
vcs-svn: teach line_buffer to handle multiple input files

Collect the line_buffer state in a newly public line_buffer struct.
Callers can use multiple line_buffers to manage input from multiple
files at a time.

svn-fe's delta applier will use this to stream a delta from svnrdump
and the preimage it applies to from fast-import at the same time.

The tests don't take advantage of the new features, but I think that's
okay.  It is easier to find lingering examples of nonreentrant code by
searching for "static" in line_buffer.c.

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
fast_export.c
fast_export.h
line_buffer.c
line_buffer.h
line_buffer.txt
svndump.c