Skip to contentSkip to conversation

convert show-diff.c to use new cache hiding api's

PATCH New Brad Roberts 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 3/19 convert show-diff.c to use new cache hiding api's

tree bbc50100a5cfd22264c2b0731ef8678656a399d8
parent 27fc41dcd4aecafdaf583f3962697a2fa3fb6480
author Brad Roberts <[email protected]> 1114073516 -0700 committer Brad Roberts <[email protected]> 1114073516 -0700

[PATCH] convert show-diff.c to use new cache hiding api's

---

 show-diff.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
show-diff.c (mode:100644 sha1:e2642b65805b3e52a16c6309b44a92c2a2bd13c3) renamed from show-diff.c (mode:100644 sha1:da364e26e28823f951a6be1b686a458575f28ea1) +2 -2
Index: show-diff.c
===================================================================
@@ -154,7 +154,7 @@
 	prepare_diff_cmd();
 	for (i = 0; i < entries; i++) {
 		struct stat st;
-		struct cache_entry *ce = active_cache[i];
+		struct cache_entry *ce = get_cache_entry(i);
 		int changed;
 		unsigned long size;
 		char type[20];
@@ -172,7 +172,7 @@
 				printf("%s: Unmerged\n",
 				       ce->name);
 			while (i < entries &&
-			       !strcmp(ce->name, active_cache[i]->name))
+			       !strcmp(ce->name, get_cache_entry(i)->name))
 				i++;
 			i--; /* compensate for loop control increments */
 			continue;