Add initial working implementation.

Monotone-Author: Francis Russell <francis@unchartedbackwaters.co.uk>
Monotone-Date: 2012-08-20T12:44:32
Monotone-Branch: uk.co.unchartedbackwaters.lfmerge
Add AUTHORS and COPYING files.

Monotone-Author: Francis Russell <francis@unchartedbackwaters.co.uk>
Monotone-Date: 2012-08-20T12:52:05
Monotone-Branch: uk.co.unchartedbackwaters.lfmerge
Extend usage output.

Monotone-Author: Francis Russell <francis@unchartedbackwaters.co.uk>
Monotone-Date: 2012-08-20T13:37:49
Monotone-Branch: uk.co.unchartedbackwaters.lfmerge
Factor into multiple files.

Monotone-Author: Francis Russell <francis@unchartedbackwaters.co.uk>
Monotone-Date: 2012-08-20T14:25:40
Monotone-Branch: uk.co.unchartedbackwaters.lfmerge
Minor clean-ups.

Monotone-Author: Francis Russell <francis@unchartedbackwaters.co.uk>
Monotone-Date: 2012-08-20T14:31:24
Monotone-Branch: uk.co.unchartedbackwaters.lfmerge
Add README.

Monotone-Author: Francis Russell <francis@unchartedbackwaters.co.uk>
Monotone-Date: 2012-08-20T14:41:12
Monotone-Branch: uk.co.unchartedbackwaters.lfmerge
Apply licenses to all files.

Monotone-Author: Francis Russell <francis@unchartedbackwaters.co.uk>
Monotone-Date: 2012-08-20T14:47:32
Monotone-Branch: uk.co.unchartedbackwaters.lfmerge
Fix warning on printing value of type size_t.

Monotone-Author: Francis Russell <francis@unchartedbackwaters.co.uk>
Monotone-Date: 2012-08-20T14:54:55
Monotone-Branch: uk.co.unchartedbackwaters.lfmerge
Fix minor typo.

Monotone-Author: Francis Russell <francis@unchartedbackwaters.co.uk>
Monotone-Date: 2012-08-20T15:14:14
Monotone-Branch: uk.co.unchartedbackwaters.lfmerge
Only write merged file if overlap was found!

Monotone-Author: Francis Russell <francis@unchartedbackwaters.co.uk>
Monotone-Date: 2012-08-20T15:17:06
Monotone-Branch: uk.co.unchartedbackwaters.lfmerge
Add large file support.

Monotone-Author: Francis Russell <francis@unchartedbackwaters.co.uk>
Monotone-Date: 2012-08-20T17:02:22
Monotone-Branch: uk.co.unchartedbackwaters.lfmerge
Switch to new implementation:
 - The overlap is restricted to a fixed size.
 - The second file's header is permitted to not match.
 - A rolling checksum is now used.

Monotone-Author: Francis Russell <francis@unchartedbackwaters.co.uk>
Monotone-Date: 2012-08-20T21:48:13
Monotone-Branch: uk.co.unchartedbackwaters.lfmerge
Use custom pow implementation for checksum initialisation.

Monotone-Author: Francis Russell <francis@unchartedbackwaters.co.uk>
Monotone-Date: 2012-08-20T22:04:34
Monotone-Branch: uk.co.unchartedbackwaters.lfmerge
Report join location instead of overlap point.

Monotone-Author: Francis Russell <francis@unchartedbackwaters.co.uk>
Monotone-Date: 2012-08-20T22:16:55
Monotone-Branch: uk.co.unchartedbackwaters.lfmerge
Tweaks to checksum.

Monotone-Author: Francis Russell <francis@unchartedbackwaters.co.uk>
Monotone-Date: 2012-08-20T22:28:28
Monotone-Branch: uk.co.unchartedbackwaters.lfmerge
Inline get_byte function.

Monotone-Author: Francis Russell <francis@unchartedbackwaters.co.uk>
Monotone-Date: 2012-08-20T22:46:45
Monotone-Branch: uk.co.unchartedbackwaters.lfmerge
Try to handle LFS in a POSIX-compliant way.

Monotone-Author: Francis Russell <francis@unchartedbackwaters.co.uk>
Monotone-Date: 2012-08-20T23:11:13
Monotone-Branch: uk.co.unchartedbackwaters.lfmerge
Update README and usage.

Monotone-Author: Francis Russell <francis@unchartedbackwaters.co.uk>
Monotone-Date: 2012-08-21T09:12:50
Monotone-Branch: uk.co.unchartedbackwaters.lfmerge
Clear secondary buffer after seeking.

Monotone-Author: Francis Russell <francis@unchartedbackwaters.co.uk>
Monotone-Date: 2012-08-21T09:38:00
Monotone-Branch: uk.co.unchartedbackwaters.lfmerge
Check checksum length is smaller than file buffer size.

Monotone-Author: Francis Russell <francis@unchartedbackwaters.co.uk>
Monotone-Date: 2012-08-21T10:23:17
Monotone-Branch: uk.co.unchartedbackwaters.lfmerge