Get the SHA from the unresolved target otherwise we'll crash later.
Add accessor for orphaned HEAD.
Clarify documentation on `isHeadDetached`.
Use `git_repository_head` instead of going through GTReference.

This is equivalent, but has a special error code for orphaned HEADs.
Merge branch 'master' into stuff
Add private `-lookupByGitOid:` to GTRepository.
Fix error code/domain when initing GTRepository with bad URL

Previous error used a code from kCFErrorDomainCFNetwork, but constructed
the error in NSCocoaErrorDomain.
Add method to initialize bare repositories

Also report an error if the passed URL is bad.
Add test for init bare repository
Better solution to getting the appropriate branch SHA.
Back to id.
Merge pull request #222 from libgit2/fix-reference-named-crash

Get the SHA from the unresolvedTarget otherwise we'll crash later.
Capitalization.
Change the property name.
Clean up diff options struct management

Instead of requiring callers to remember to call +freeOptionsStruct:,
have callers pass in a block, so cleanup happens automatically once the
block returns.

Then, since the struct doesn't have to outlast the method, just use
stack allocation of the git_diff_options (and the enclosed git_strarray
if necessary), so no explicit cleanup code is required.
GTTree tree entry methods return nil for non-existing entries

They were documented to do so, but previously they returned a
GTTreeEntry which blew up when looked at (calling -description and other
methods dereferenced NULL).
Merge pull request #230 from libgit2/stuff

Some changes I gathered while working
Minor style fix
Merge pull request #227
Convert repository initialization tests to Expecta