diff options
| author | Vicent Martà <vicent@github.com> | 2013-07-09 17:20:55 -0700 |
|---|---|---|
| committer | Vicent Martà <vicent@github.com> | 2013-07-09 17:20:55 -0700 |
| commit | b8cd7aa9f6990b80730c1d7ab85a0443c054ca0b (patch) | |
| tree | 4c090bcbd3682e304b950fabd853e4cabf74b72a /src/diff.c | |
| parent | 77fa06f3d9258595f95040f664030cba8d242752 (diff) | |
| parent | 2a16914c35fe52785959647666da145be354b12f (diff) | |
| download | libgit2-b8cd7aa9f6990b80730c1d7ab85a0443c054ca0b.tar.gz | |
Merge pull request #1704 from arrbee/kill-status-index-then-workdir
Remove GIT_STATUS_SHOW_INDEX_THEN_WORKDIR option
Diffstat (limited to 'src/diff.c')
| -rw-r--r-- | src/diff.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/diff.c b/src/diff.c index 9e9528ef9..0980f412a 100644 --- a/src/diff.c +++ b/src/diff.c @@ -1249,6 +1249,8 @@ int git_diff__paired_foreach( i_max = head2idx ? head2idx->deltas.length : 0; j_max = idx2wd ? idx2wd->deltas.length : 0; + if (!i_max && !j_max) + return 0; /* At some point, tree-to-index diffs will probably never ignore case, * even if that isn't true now. Index-to-workdir diffs may or may not |
