From: Linus Torvalds Date: Mon, 6 Jun 2005 06:15:40 +0000 (-0700) Subject: Fix entry.c dependency and compile problem X-Git-Tag: v0.99~345 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=6ee67f2610d0060bee45eee0b83fe42143441589;p=git.git Fix entry.c dependency and compile problem Bad Linus. --- diff --git a/Makefile b/Makefile index d0f1cfa3..a85abd66 100644 --- a/Makefile +++ b/Makefile @@ -128,6 +128,7 @@ sha1_file.o: $(LIB_H) usage.o: $(LIB_H) strbuf.o: $(LIB_H) gitenv.o: $(LIB_H) +entry.o: $(LIB_H) diff.o: $(LIB_H) diffcore.h diffcore-rename.o : $(LIB_H) diffcore.h diffcore-pathspec.o : $(LIB_H) diffcore.h diff --git a/entry.c b/entry.c index d7824c4f..874516e1 100644 --- a/entry.c +++ b/entry.c @@ -117,7 +117,7 @@ static int write_entry(struct cache_entry *ce, const char *path, struct checkout return error("git-checkout-cache: unknown file mode for %s", path); } - if (state->update) { + if (state->refresh_cache) { struct stat st; lstat(ce->name, &st); fill_stat_cache_info(ce, &st);