Various file comparison improvements
authorWayne Davison <wayne@opencoder.net>
Tue, 22 Sep 2020 18:46:36 +0000 (11:46 -0700)
committerWayne Davison <wayne@opencoder.net>
Tue, 22 Sep 2020 19:48:02 +0000 (12:48 -0700)
commitd2a97a7ab492e0d0548708251309e077e6aa8c8b
treecc0072b19dfa2c363da5f9cfa70b43d019f74aae
parent15bc7ded398147ee50232b73c804f10aafa2fdda
Various file comparison improvements

- Rename unchanged_file() to quick_check_ok().
- Enhance quick_check_ok() to work with non-regular files.
- Add a get_file_type() function to the generator.
- Use the new functions in the generator code to make the logic simpler.
- Fix a bug where the `--alt-dest` functions were not checking if a
  special file fully matched the non-permission mode bits before
  deciding if we have found an alt-dest match.
- Enhance the `--info=skip --ignore-existing` output to include extra
  info on if the existing file differs in type or passes the standard
  quick-check logic.
- Add `--info=skip2` that authorizes rsync to perform a slow checksum
  "quick check" when ignoring existing files. This provides the uptodate
  and differs info even if we need to checksum a file to get it.
NEWS.md
generator.c
hlink.c
options.c
rsync.1.md
rsync.h