Skip to content

Add support for diffing index with no HEAD #677

Merged
merged 1 commit into from May 8, 2012

3 participants

@arrbee
libgit2 member
arrbee commented May 8, 2012

When a repo is first created, there is no HEAD yet and attempting to diff files in the index was showing nothing because a tree iterator could not be constructed. This adds an "empty" iterator and falls back on that when the head cannot be looked up.

@arrbee arrbee Add support for diffing index with no HEAD
When a repo is first created, there is no HEAD yet and attempting
to diff files in the index was showing nothing because a tree
iterator could not be constructed.  This adds an "empty" iterator
and falls back on that when the head cannot be looked up.
7e000ab
@travisbot

This pull request passes (merged 7e000ab into fd5faae).

@vmg
libgit2 member
vmg commented May 8, 2012

Filing under "beautiful code" and "doing things right".

@vmg vmg merged commit e65752b into libgit2:development May 8, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.