summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c5bac17)
raw | patch | inline | side by side (parent: c5bac17)
author | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Thu, 21 Apr 2005 16:58:24 +0000 (09:58 -0700) | ||
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Thu, 21 Apr 2005 16:58:24 +0000 (09:58 -0700) |
The rev-tree thing just happened to work. It shouldn't have.
read-cache.c | patch | blob | history | |
rev-tree.c | patch | blob | history |
diff --git a/read-cache.c b/read-cache.c
index d1cc1e8c787da8ab7e44d5869a408b66fb4f0ef1..44a713aed6d5d3f051dd7a709ceb9044869cf783 100644 (file)
--- a/read-cache.c
+++ b/read-cache.c
* as long as it is in the inode cache you get right nsec
* but after it gets flushed, you get zero nsec.
*/
- if (ce->ce_mtime.nsec != htonl(st->st_mtim.tv_nsec)
+ if (ce->ce_mtime.nsec != htonl(st->st_mtim.tv_nsec))
changed |= MTIME_CHANGED;
- if (ce->ce_ctime.nsec != htonl(st->st_ctim.tv_nsec)
+ if (ce->ce_ctime.nsec != htonl(st->st_ctim.tv_nsec))
changed |= CTIME_CHANGED;
#endif
diff --git a/rev-tree.c b/rev-tree.c
index ebeceb070b72744b47873c0a562d3ec692269a96..03c900f459c0e6ae7fc9455589be00375f44eac8 100644 (file)
--- a/rev-tree.c
+++ b/rev-tree.c
char *arg = argv[i];
if (!strcmp(arg, "--cache")) {
- read_cache_file(argv[2]);
- i++;
+ read_cache_file(argv[++i]);
continue;
}