My program copies/synchronizes several directories from source to target, each using rsync. For each directory, if the version in target is not identical to source, and thus rsync modifies the target, I would like to notify the user with a message like "directory X has been synchronized to target". On the other hand, if target version is already identical to target, I can skip showing this message since there is no change in target.
Exit status and -n option do not differentiate between the two condition. Aside from parsing the output of -v, is there any other way for me to get rsync to provide this information?