diff options
| author | Michael Schubert <schu@schu.io> | 2012-06-25 15:26:38 +0200 |
|---|---|---|
| committer | Michael Schubert <schu@schu.io> | 2012-06-25 15:38:36 +0200 |
| commit | f9fd7105818dfd56cfce578bd1b58dd5dd8c839a (patch) | |
| tree | 70676d184d71cd8476903508d9234165e4a9bd48 /src/indexer.c | |
| parent | 798e4d53dcd2f5340782083130c0fb5227d596ac (diff) | |
| download | libgit2-f9fd7105818dfd56cfce578bd1b58dd5dd8c839a.tar.gz | |
indexer: start parsing input data immediately
Currently, the first call of git_indexer_stream_add adds the data to the
underlying pack file and opens it for later use, but doesn't start
parsing the already available data.
This means, git_indexer_stream_finalize only works if
git_indexer_stream_add was called at least twice. Kill this limitation
by parsing available data immediately.
Diffstat (limited to 'src/indexer.c')
| -rw-r--r-- | src/indexer.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/indexer.c b/src/indexer.c index 565d9ea0e..1b0a20321 100644 --- a/src/indexer.c +++ b/src/indexer.c @@ -313,8 +313,6 @@ int git_indexer_stream_add(git_indexer_stream *idx, const void *data, size_t siz mwf = &idx->pack->mwf; if (git_mwindow_file_register(&idx->pack->mwf) < 0) return -1; - - return 0; } if (!idx->parsed_header) { |
