Fix NSEC compile problem, and properly parse the rev-tree cmd line.
The rev-tree thing just happened to work. It shouldn't have.
This commit is contained in:
parent
c5bac17ad2
commit
94dfb7f2e3
@ -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
|
* as long as it is in the inode cache you get right nsec
|
||||||
* but after it gets flushed, you get zero 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;
|
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;
|
changed |= CTIME_CHANGED;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -89,8 +89,7 @@ int main(int argc, char **argv)
|
|||||||
char *arg = argv[i];
|
char *arg = argv[i];
|
||||||
|
|
||||||
if (!strcmp(arg, "--cache")) {
|
if (!strcmp(arg, "--cache")) {
|
||||||
read_cache_file(argv[2]);
|
read_cache_file(argv[++i]);
|
||||||
i++;
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user