{"thread":{"id":"210","subject":"[PATCH 03/19] convert show-diff.c to use new cache hiding api's","startedAt":"2005-04-21T18:35:12Z","lastAt":"2005-04-21T18:35:12Z","messageCount":1,"participants":["Brad Roberts"],"isPatch":true,"patchVersion":1,"patchTotal":19},"messages":[{"id":"1158","messageId":"200504211835.j3LIZCSZ027430@gameboy2.puremagic.com","threadId":"210","inReplyTo":null,"subject":"[PATCH 03/19] convert show-diff.c to use new cache hiding api's","fromName":"Brad Roberts","fromEmail":"braddr@gameboy2.puremagic.com","sentAt":"2005-04-21T18:35:12Z","receivedAt":"2005-04-21T18:35:12Z","isPatch":true,"sender":{"key":"braddr@gameboy2.puremagic.com","avatar":null},"body":"tree bbc50100a5cfd22264c2b0731ef8678656a399d8\nparent 27fc41dcd4aecafdaf583f3962697a2fa3fb6480\nauthor Brad Roberts <braddr@puremagic.com> 1114073516 -0700\ncommitter Brad Roberts <braddr@gameboy2.puremagic.com> 1114073516 -0700\n\n[PATCH] convert show-diff.c to use new cache hiding api's\n\nSigned-off-by: Brad Roberts <braddr@puremagic.com>\n---\n\n show-diff.c |    4 ++--\n 1 files changed, 2 insertions(+), 2 deletions(-)\n\nIndex: show-diff.c\n===================================================================\n--- 27fc41dcd4aecafdaf583f3962697a2fa3fb6480:1/show-diff.c  (mode:100644 sha1:da364e26e28823f951a6be1b686a458575f28ea1)\n+++ d70686e08f453199e5451b27fc7d0b36b73a5c7f:1/show-diff.c  (mode:100644 sha1:e2642b65805b3e52a16c6309b44a92c2a2bd13c3)\n@@ -154,7 +154,7 @@\n \tprepare_diff_cmd();\n \tfor (i = 0; i < entries; i++) {\n \t\tstruct stat st;\n-\t\tstruct cache_entry *ce = active_cache[i];\n+\t\tstruct cache_entry *ce = get_cache_entry(i);\n \t\tint changed;\n \t\tunsigned long size;\n \t\tchar type[20];\n@@ -172,7 +172,7 @@\n \t\t\t\tprintf(\"%s: Unmerged\\n\",\n \t\t\t\t       ce->name);\n \t\t\twhile (i < entries &&\n-\t\t\t       !strcmp(ce->name, active_cache[i]->name))\n+\t\t\t       !strcmp(ce->name, get_cache_entry(i)->name))\n \t\t\t\ti++;\n \t\t\ti--; /* compensate for loop control increments */\n \t\t\tcontinue;\n\n"}]}