Kirill A. Shutemov
932669b865
Drop STRLEN() macros
...
There is no need in STRLEN macros. Compilers can do this trivial
optimization on its own.
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
2011-08-25 16:41:15 +03:00
Vicent Marti
c85e08b1bd
odb: Do not pass around a header when hashing
2011-08-18 02:34:10 +02:00
Carlos Martín Nieto
ade3c9bb88
Assert a filename in indexer creation
...
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
2011-08-18 02:34:09 +02:00
Carlos Martín Nieto
c1af5a3935
Implement cooperative caching
...
When indexing a file with ref deltas, a temporary cache for the
offsets has to be built, as we don't have an index file yet. If the
user takes the responsiblity for filling the cache, the packing code
will look there first when it finds a ref delta.
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
2011-08-18 02:34:08 +02:00
Vicent Martí
2133c44f6a
Merge pull request #355 from jdavid/fix-build
...
Fix "redefinition of typedef git_indexer" build error
2011-08-09 17:08:18 -07:00
Vicent Marti
f6867e639a
Fix compilation in Windows
2011-08-08 16:56:28 -07:00
J. David Ibáñez
2d3e417e5f
Fix "redefinition of typedef git_indexer" build error
...
Signed-off-by: J. David Ibáñez <jdavid@itaapy.com>
2011-08-05 15:17:48 +02:00
Carlos Martín Nieto
48b3ad4f15
Move pack index writing to a public function
...
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
2011-08-03 14:02:49 +02:00
Carlos Martín Nieto
b7c44096ae
Implement the indexer
...
Only v2 index files are supported.
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
2011-08-03 14:02:41 +02:00
Carlos Martín Nieto
b5b474dd0d
Modify the given offset in git_packfile_unpack
...
The callers immediately throw away the offset, so we don't need any
logical changes in any of them. This will be useful for the indexer,
as it does need to know where the compressed data ends.
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
2011-08-02 21:42:03 +02:00
Carlos Martín Nieto
a070f152bd
Move pack functions to their own file
2011-08-02 21:42:03 +02:00
Carlos Martín Nieto
7d0cdf82be
Make packfile_unpack_header more generic
...
On the way, store the fd and the size in the mwindow file.
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
2011-08-02 21:42:03 +02:00
Carlos Martín Nieto
ab525a7463
Rename stuff to git_indexer_
...
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
2011-08-02 21:41:33 +02:00
Carlos Martín Nieto
f23c4a66bd
Start the runner
...
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
2011-08-02 21:41:05 +02:00
Carlos Martín Nieto
3412391d4c
Intial indexer code
2011-08-02 21:41:02 +02:00