Commits
- Commit:
4fccd2fe0ffbbc668b66abe63614470635f92f1b
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: configure: split out dependencies
Rather than assume all dependencies are required for all programs, split
them out.
This will make packaging easier, as well as splitting the code to use
subprojects.
Note that due to the use of config.h semantics, in most cases the
got_compat.h header file is now at the top of the .c file it is included
in, so that it can handle the system header inclusion properly.
- Commit:
e4a6dbc6cd4d9ac4f616b16388061ef0f8fec303
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
fix off_t type mismatches
off_t is a signed type and depending on the platform, it can be
"long" or "long long", so cast to long long for printf().
ok stsp
- Commit:
8b925c6ccd3968917253ea191906a1710c40ed2d
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: add back sys/queue.h
Now that the handling of including sys/queue.h is better, there's no
need to remove those lines from the source. Copy the location of those
original sys/queue.h lines from upstream at the same line number, so as
to avoid any conflicts in the future.
- Commit:
cc524d369b451f3ef10d7ca8fd091b3408d4fcdb
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
use random seeds for murmurhash2
change the three hardcoded seeds to fresh ones generated on demand via
arc4random. Suggested/fixed by and ok stsp@
- Commit:
fa8129f71e6d8a352929f74ba0fc4f8aa59ba216
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
const-ify tables
ok thomas_adam millert
- Commit:
90dfa2bf41872a0f074ac2cea3b45d6ba3c77de6
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
consistently match size of hash variables to that returned by murmurhash
ok millert stsp
- Commit:
b7bf7afc7c0ce730a430ef6e47ca359c97fef2ff
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
use murmurhash instead of sha1 for deltification blocks; suggested by ori
- Commit:
2b0ae357cee12f45b5827fe49b1855dfd4f7ac8e
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
map raw object files into memory while packing if possible
- Commit:
7d76c4e74f889f004513c9aea5398deb37497e9a
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
fix wrong function in error string of emitdelta()
- Commit:
2539ccf28b5b0e6be13e9a7f2063a104efa7217b
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
link to the FastCDC paper from deltify.c; suggested by Ori some time ago
- Commit:
82e16997c5d275dc67208ec011c70198fc0218ca
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
make the number of elements in deltify's geartab explicit
- Commit:
92a9e85d28a30997176ce0d3c2915e3ea70782c7
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: add FreeBSD support
This adds the capability to compile got-portable on FreeBSD.
- Commit:
dd038bc6ec835ad3fd3c0b5303b8af9ad506c8cc
- From:
- Thomas Adam <thomas@xteddy.org>
- Via:
- Thomas Adam <thomas.adam@smoothwall.net>
- Date:
portable: initial Linux compilation
This commit modifies the GoT main branch to be able to compile it under
linux.
- Commit:
5de743f8fddcaaf2912ffc92dce239aa6227d6d0
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix seek to incorrect offset in the delta base when creating deltas
The stretchblk() function needs to compare data located after the block
which has just been matched. However, upon entry it was resetting the
file pointer of the delta base to the beginning(!) of the block.
The other file is correctly positioned after the block.
In many cases the data won't match and stretchblk() will not stretch
the matched block. But when the data did happen to match this resulted
in a bogus delta, and wrong file contents when the delta was applied.
Fix this by setting the delta base file pointer to end of the block.
Problem reported by naddy after our server refused a pack file which
was sent by 'got send'. I could reproduce the issue by running the
'gotadmin pack' command on a copy of naddy's repository.
ok naddy
- Commit:
0af64e86449b8d836b04b25ece0bbc5543a75238
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
plug a memory leak in an error path of got_deltify()
- Commit:
dd29967c8be9311a99ae3310d49789c65989498e
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make got_deltify() rellocate the deltas array less often
- Commit:
9a8dc2b3ec216fd01b3c33137eb92d98ddadb63e
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix deltas with trailing data that is smaller than the minimum chunk size
- Commit:
740bba1c3179a597c83f7dd3a23bffb50a494bdf
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
allow the delta base file to lose its header between deltify_init and deltify
This simplifies pack file creation. A delta base could be read from a
loose object, a packfile, or it might be available in a temporary file.
All these cases can now be handled the same way. We may need to open,
close, and re-open a given delta base multiple times while packing.
- Commit:
7550e799ee994b0b74689a6895f84d8aaec86f49
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
check for errors from emitdelta() in got_deltify()
- Commit:
aa51f4a4acac901a4f1bf4062664644ce95d3e8c
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
handle fseek in got_deltify() instead of in stretchblk(); simplifies the code
- Commit:
f34b169e54fc4d4960f06b804cabe1aeec70e07d
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
Allow for skipping the base object header in got_deltify().
- Commit:
0d15f6dcf929ae42606d3ca046621aee79e45890
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
in addblk(), only read data into buffer1 if we will compare it to buffer2
suggested by and ok naddy@
- Commit:
68bdcdc2f5d3c37d918f85368c2537a8aa7d90eb
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
addblk() may seek in its input file; reposition the file pointer afterwards
- Commit:
a893025fd207950945eed1482170223a2d3b9ce3
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
addblk: iterate over the correct number of entries after growing the array
ok naddy
- Commit:
e89540a95a268f47ef2d1b24c41fbb72a1f0bdc9
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
addblk: be more careful about expanding the blocks array when we outgrow it
fixes + ok naddy