]> git.proxmox.com Git - libgit2.git/commit
odb: make the writestream's size a git_off_t
authorCarlos Martín Nieto <cmn@dwim.me>
Tue, 12 May 2015 11:06:33 +0000 (13:06 +0200)
committerCarlos Martín Nieto <cmn@dwim.me>
Wed, 13 May 2015 07:34:20 +0000 (09:34 +0200)
commit77b339f7b6c7e167ecaf9374eb6876b498d8cb83
tree2067451017501f2d2411442370a71997c715e52b
parentf85a9c2767b43f35904bf39858488a4b7bc304e8
odb: make the writestream's size a git_off_t

Restricting files to size_t is a silly limitation. The loose backend
writes to a file directly, so there is no issue in using 63 bits for the
size.

We still assume that the header is going to fit in 64 bytes, which does
mean quite a bit smaller files due to the run-length encoding, but it's
still a much larger size than you would want Git to handle.
include/git2/odb.h
include/git2/odb_backend.h
include/git2/sys/odb_backend.h
src/blob.c
src/odb.c
src/odb.h
src/odb_loose.c