Add a failing test for autocrlf filters
Fix possible free'ing of unitialized pointer in error case
Implement analog for 'git checkout --branch xxx ...'
Add missing git_buf_free
Check for binary blobs in checkout

This adds a git_buf_text_is_binary check to blobs before applying
filters when the blob data is being written to disk.
Test: Cleanup some cleaning code
Tests: Add test for check out of given branch during clone
Fix up binaryunicode test repo
Merge pull request #1215 from phkelley/binaryunicode

Add a failing test for CRLF filters
Kill vestigal dangling-remote code

Fixes #1232
buf: Is this the function you were looking for?
Default git_clone_options' checkout strategy to GIT_CHECKOUT_SAFE_CREATE
Merge pull request #1222 from scunz/clone_branch

Switch to specified branch during clone
Added flag GIT_REPOSITORY_INIT_EXTERNAL_TEMPLATE to test_repo_init__extended_with_template().

Otherwise the template functionallity is not tested (as a TODO we
also shall test that the specified template really got copied).
indexer: properly free the packfile resources

The indexer needs to call the packfile's free function so it takes care of
freeing the caches.

We still need to close the mwf descriptor manually so we can rename the
packfile into its final name on Windows.
tests: plug leaks
pack: fixes to the cache

The offset should be git_off_t, and we should check the return value
of the mutex lock function.
Clear local error variable after invoking giterr_clear().
add an index_remove_bypath that removes conflicts, renamed add_from_workdir to match
checkout: Teach checkout to cope with orphaned Head

Fix #1236