{"thread":{"id":"214","subject":"[PATCH 06/19] migrate show-files.c to the new cache api's","startedAt":"2005-04-21T18:35:58Z","lastAt":"2005-04-21T18:35:58Z","messageCount":1,"participants":["Brad Roberts"],"isPatch":true,"patchVersion":1,"patchTotal":19},"messages":[{"id":"1163","messageId":"200504211835.j3LIZwHN027498@gameboy2.puremagic.com","threadId":"214","inReplyTo":null,"subject":"[PATCH 06/19] migrate show-files.c to the new cache api's","fromName":"Brad Roberts","fromEmail":"braddr@gameboy2.puremagic.com","sentAt":"2005-04-21T18:35:58Z","receivedAt":"2005-04-21T18:35:58Z","isPatch":true,"sender":{"key":"braddr@gameboy2.puremagic.com","avatar":null},"body":"tree a3bd48d2beba79d70e97d8647ee35a645e494350\nparent f908b2542a9a3ea321633a31cf0e7ca2c8b669d4\nauthor Brad Roberts <braddr@puremagic.com> 1114074486 -0700\ncommitter Brad Roberts <braddr@gameboy2.puremagic.com> 1114074486 -0700\n\n[PATCH] migrate show-files.c to the new cache api's\n\nSigned-off-by: Brad Roberts <braddr@puremagic.com>\n---\n\n show-files.c |    8 ++++----\n 1 files changed, 4 insertions(+), 4 deletions(-)\n\nIndex: show-files.c\n===================================================================\n--- f908b2542a9a3ea321633a31cf0e7ca2c8b669d4:1/show-files.c  (mode:100644 sha1:0b49ca051de413e7182445dd8fb9144125716974)\n+++ 32efd81a3292a923ce5b5ae2e39ffefd0b08664d:1/show-files.c  (mode:100644 sha1:11fbbccef2df50d528105ceb48b15275f2a5693e)\n@@ -116,8 +116,8 @@\n \t\t\tprintf(\"%s%s%c\", tag_other, dir[i], line_terminator);\n \t}\n \tif (show_cached | show_stage) {\n-\t\tfor (i = 0; i < active_nr; i++) {\n-\t\t\tstruct cache_entry *ce = active_cache[i];\n+\t\tfor (i = 0; i < get_num_cache_entries(); i++) {\n+\t\t\tstruct cache_entry *ce = get_cache_entry(i);\n \t\t\tif (show_unmerged && !ce_stage(ce))\n \t\t\t\tcontinue;\n \t\t\tif (!show_stage)\n@@ -136,8 +136,8 @@\n \t\t}\n \t}\n \tif (show_deleted) {\n-\t\tfor (i = 0; i < active_nr; i++) {\n-\t\t\tstruct cache_entry *ce = active_cache[i];\n+\t\tfor (i = 0; i < get_num_cache_entries(); i++) {\n+\t\t\tstruct cache_entry *ce = get_cache_entry(i);\n \t\t\tstruct stat st;\n \t\t\tif (!stat(ce->name, &st))\n \t\t\t\tcontinue;\n\n"}]}