iterator.c
13.1 KB
-
Add support for diffing index with no HEAD · 7e000ab2
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.
Russell Belfer committed