diff options
author | Junio C Hamano <junkio@cox.net> | 2007-02-09 18:51:40 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-02-22 02:02:15 -0800 |
commit | b4e1e4a787d3771f617182b3344dcdd9224bd0cb (patch) | |
tree | dc41f0b5f98d8028440e83857a04d8f233faf617 /builtin-diff-index.c | |
parent | 7b802b86a6734a47c964d84922af2a016d836882 (diff) | |
download | git-b4e1e4a787d3771f617182b3344dcdd9224bd0cb.tar.gz |
run_diff_{files,index}(): update calling convention.
They used to open and read index themselves, but they now expect
their callers to do so.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'builtin-diff-index.c')
-rw-r--r-- | builtin-diff-index.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/builtin-diff-index.c b/builtin-diff-index.c index 95a3db156b..083599d5c4 100644 --- a/builtin-diff-index.c +++ b/builtin-diff-index.c @@ -38,5 +38,9 @@ int cmd_diff_index(int argc, const char **argv, const char *prefix) if (rev.pending.nr != 1 || rev.max_count != -1 || rev.min_age != -1 || rev.max_age != -1) usage(diff_cache_usage); + if (read_cache() < 0) { + perror("read_cache"); + return -1; + } return run_diff_index(&rev, cached); } |