]> git.proxmox.com Git - libgit2.git/commit
Add support for diffing index with no HEAD
authorRussell Belfer <rb@github.com>
Tue, 8 May 2012 22:03:59 +0000 (15:03 -0700)
committerRussell Belfer <rb@github.com>
Tue, 8 May 2012 22:03:59 +0000 (15:03 -0700)
commit7e000ab2ece977a028e3f1327de37342bef9f687
tree5955c21f0174237dfa0f2b99b9de8016862aeb54
parent364f51bdca8cd5bb11bb322f8cac1b0d7dfcf686
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.
src/diff.c
src/iterator.c
src/iterator.h
src/status.c
tests-clar/status/worktree.c