From: Linus Torvalds Date: Thu, 21 Apr 2005 16:58:24 +0000 (-0700) Subject: Fix NSEC compile problem, and properly parse the rev-tree cmd line. X-Git-Tag: v0.99~784 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=94dfb7f2e38fde5014fe50f9e74bde7d2d264184;p=git.git Fix NSEC compile problem, and properly parse the rev-tree cmd line. The rev-tree thing just happened to work. It shouldn't have. --- diff --git a/read-cache.c b/read-cache.c index d1cc1e8c..44a713ae 100644 --- a/read-cache.c +++ b/read-cache.c @@ -24,9 +24,9 @@ int cache_match_stat(struct cache_entry *ce, struct stat *st) * 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 ebeceb07..03c900f4 100644 --- a/rev-tree.c +++ b/rev-tree.c @@ -89,8 +89,7 @@ int main(int argc, char **argv) char *arg = argv[i]; if (!strcmp(arg, "--cache")) { - read_cache_file(argv[2]); - i++; + read_cache_file(argv[++i]); continue; }