diff options
author | Russell Belfer <rb@github.com> | 2012-05-08 15:03:59 -0700 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2012-05-08 15:03:59 -0700 |
commit | 7e000ab2ece977a028e3f1327de37342bef9f687 (patch) | |
tree | 5955c21f0174237dfa0f2b99b9de8016862aeb54 /tests-clar/diff/blob.c | |
parent | 364f51bdca8cd5bb11bb322f8cac1b0d7dfcf686 (diff) | |
download | libgit2-7e000ab2ece977a028e3f1327de37342bef9f687.tar.gz |
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.
Diffstat (limited to 'tests-clar/diff/blob.c')
0 files changed, 0 insertions, 0 deletions