diff options
Diffstat (limited to 'difftool/node_compare.c')
-rw-r--r-- | difftool/node_compare.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/difftool/node_compare.c b/difftool/node_compare.c index fae35ab..e1b72c6 100644 --- a/difftool/node_compare.c +++ b/difftool/node_compare.c @@ -36,6 +36,13 @@ int node_compare(tree_node_t *a, tree_node_t *b) } } + if (compare_flags & COMPARE_TIMESTAMP) { + if (a->mod_time != b->mod_time) { + fprintf(stdout, "%s has a different timestamp\n", path); + status = 1; + } + } + switch (a->mode & S_IFMT) { case S_IFSOCK: case S_IFIFO: |