diff options
author | Vicent Martà <tanoku@gmail.com> | 2012-05-08 16:06:27 -0700 |
---|---|---|
committer | Vicent Martà <tanoku@gmail.com> | 2012-05-08 16:06:27 -0700 |
commit | e65752bb3251f9a308fd4f9cb3b294c4f7d90783 (patch) | |
tree | fee4deed1d318f16a266fc5ce6d57e539284c070 /src/diff.c | |
parent | fd5faae3466d3d74fd0601a1dac0ef0eaad48844 (diff) | |
parent | 7e000ab2ece977a028e3f1327de37342bef9f687 (diff) | |
download | libgit2-e65752bb3251f9a308fd4f9cb3b294c4f7d90783.tar.gz |
Merge pull request #677 from arrbee/status-without-head
Add support for diffing index with no HEAD
Diffstat (limited to 'src/diff.c')
-rw-r--r-- | src/diff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/diff.c b/src/diff.c index 524cc9f59..fed22f403 100644 --- a/src/diff.c +++ b/src/diff.c @@ -631,7 +631,7 @@ int git_diff_index_to_tree( { git_iterator *a = NULL, *b = NULL; - assert(repo && old_tree && diff); + assert(repo && diff); if (git_iterator_for_tree(repo, old_tree, &a) < 0 || git_iterator_for_index(repo, &b) < 0) |