summaryrefslogtreecommitdiff
path: root/builtin-diff-index.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <junkio@cox.net>2006-06-19 18:47:29 -0700
committerLibravatar Junio C Hamano <junkio@cox.net>2006-06-19 18:47:29 -0700
commitb19beecd9456a2e6282634e5df751206b972604a (patch)
tree52617650de39f12bbeb351acf7fb5c9b5becf5cb /builtin-diff-index.c
parentMerge branches 'js/lsfix', 'pb/config' and 'jn/web' into next (diff)
parentAdd "named object array" concept (diff)
downloadtgif-b19beecd9456a2e6282634e5df751206b972604a.tar.xz
Merge branch 'lt/objlist' into next
* lt/objlist: Add "named object array" concept xdiff: minor changes to match libxdiff-0.21 fix rfc2047 formatter. Fix t8001-annotate and t8002-blame for ActiveState Perl Add specialized object allocator
Diffstat (limited to 'builtin-diff-index.c')
-rw-r--r--builtin-diff-index.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-diff-index.c b/builtin-diff-index.c
index 1958580d82..c42ef9a7a7 100644
--- a/builtin-diff-index.c
+++ b/builtin-diff-index.c
@@ -32,7 +32,7 @@ int cmd_diff_index(int argc, const char **argv, char **envp)
* Make sure there is one revision (i.e. pending object),
* and there is no revision filtering parameters.
*/
- if (!rev.pending_objects || rev.pending_objects->next ||
+ if (rev.pending.nr != 1 ||
rev.max_count != -1 || rev.min_age != -1 || rev.max_age != -1)
usage(diff_cache_usage);
return run_diff_index(&rev, cached);