Add support for diffing index with no HEAD #677

Merged
merged 1 commit into from May 8, 2012

Conversation

Projects
None yet
3 participants
@arrbee
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.

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.
@travisbot

This comment has been minimized.

Show comment
Hide comment
@travisbot

travisbot May 8, 2012

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

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

@vmg

This comment has been minimized.

Show comment
Hide comment
@vmg

vmg May 8, 2012

Member

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

Member

vmg commented May 8, 2012

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

vmg added a commit that referenced this pull request May 8, 2012

Merge pull request #677 from arrbee/status-without-head
Add support for diffing index with no HEAD

@vmg vmg merged commit e65752b into libgit2:development May 8, 2012

phatblat pushed a commit to phatblat/libgit2 that referenced this pull request Sep 13, 2014

Merge pull request #677 from arrbee/status-without-head
Add support for diffing index with no HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment