]> git.ipfire.org Git - thirdparty/git.git/commit - fast-import.c
Preallocate memory earlier in fast-import
authorShawn O. Pearce <spearce@spearce.org>
Wed, 7 Mar 2007 22:09:21 +0000 (17:09 -0500)
committerShawn O. Pearce <spearce@spearce.org>
Wed, 7 Mar 2007 22:11:02 +0000 (17:11 -0500)
commit93e72d8d8fbfbbf28abee82c3e769337d7b940ec
treec3f37f1085850b9e2ab15e648dba26e4e1a4382b
parentc390ae97beb9e8cdab159b593ea9659e8096c4db
Preallocate memory earlier in fast-import

I'm about to teach fast-import how to reload the marks file created
by a prior session.  The general approach that I want to use is to
immediately parse the marks file when the specific argument is found
in argv, thereby allowing the caller to supply multiple marks files,
as the mark space can be sparsely populated.

To make that work out we need to allocate our object tables before
we parse the command line options.  Since none of these tables
depend on the command line options, we can easily relocate them.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
fast-import.c