{"thread":{"id":"213","subject":"[PATCH 08/19] rename remove_entry_at to remove_cache_entry_at and expose as a public api","startedAt":"2005-04-21T18:36:29Z","lastAt":"2005-04-21T18:36:29Z","messageCount":1,"participants":["Brad Roberts"],"isPatch":true,"patchVersion":1,"patchTotal":19},"messages":[{"id":"1162","messageId":"200504211836.j3LIaTHj027552@gameboy2.puremagic.com","threadId":"213","inReplyTo":null,"subject":"[PATCH 08/19] rename remove_entry_at to remove_cache_entry_at and expose as a public api","fromName":"Brad Roberts","fromEmail":"braddr@gameboy2.puremagic.com","sentAt":"2005-04-21T18:36:29Z","receivedAt":"2005-04-21T18:36:29Z","isPatch":true,"sender":{"key":"braddr@gameboy2.puremagic.com","avatar":null},"body":"tree 68af3fb1d46759f437d15f310a9aea2931708601\nparent e2acfff5e544a8c6769a9e665927092b3edd7579\nauthor Brad Roberts <braddr@puremagic.com> 1114075605 -0700\ncommitter Brad Roberts <braddr@gameboy2.puremagic.com> 1114075605 -0700\n\n[PATCH] rename remove_entry_at to remove_cache_entry_at and expose as a public api\n\nSigned-off-by: Brad Roberts <braddr@puremagic.com>\n---\n\n cache.h      |    1 +\n read-cache.c |    6 +++---\n 2 files changed, 4 insertions(+), 3 deletions(-)\n\nIndex: cache.h\n===================================================================\n--- e2acfff5e544a8c6769a9e665927092b3edd7579:1/cache.h  (mode:100644 sha1:9ad6e805eafcb213c6bb4b1f8ff4d4e053fa6067)\n+++ 099367f98cc063c33733d15c7a2d9737bea853d9:1/cache.h  (mode:100644 sha1:74d816c34245e0dde41643188f38cf99ca75e75f)\n@@ -96,6 +96,7 @@\n extern int get_num_cache_entries();\n extern struct cache_entry * get_cache_entry(int pos);\n extern void set_cache_entry(struct cache_entry *ce, int pos);\n+extern int remove_cache_entry_at(int pos);\n \n #define MTIME_CHANGED\t0x0001\n #define CTIME_CHANGED\t0x0002\nIndex: read-cache.c\n===================================================================\n--- e2acfff5e544a8c6769a9e665927092b3edd7579:1/read-cache.c  (mode:100644 sha1:8eaa05957a481b09116c37e43e16c5ef4e219a1e)\n+++ 099367f98cc063c33733d15c7a2d9737bea853d9:1/read-cache.c  (mode:100644 sha1:286f7136bc164f3a2317bb492138d9221efb4025)\n@@ -87,7 +87,7 @@\n }\n \n /* Remove entry, return true if there are more entries to go.. */\n-static int remove_entry_at(int pos)\n+int remove_cache_entry_at(int pos)\n {\n \tactive_nr--;\n \tif (pos >= active_nr)\n@@ -100,7 +100,7 @@\n {\n \tint pos = cache_name_pos(path, strlen(path));\n \tif (pos >= 0)\n-\t\tremove_entry_at(pos);\n+\t\tremove_cache_entry_at(pos);\n \treturn 0;\n }\n \n@@ -148,7 +148,7 @@\n \tif (pos < active_nr && ce_stage(ce) == 0) {\n \t\twhile (same_name(active_cache[pos], ce)) {\n \t\t\tok_to_add = 1;\n-\t\t\tif (!remove_entry_at(pos))\n+\t\t\tif (!remove_cache_entry_at(pos))\n \t\t\t\tbreak;\n \t\t}\n \t}\n\n"}]}