extern int verbose;
extern int dry_run;
-extern int what_has_changed;
+extern int itemize_changes;
extern int relative_paths;
extern int keep_dirlinks;
extern int preserve_links;
missing_below = file->dir.depth;
dry_run++;
}
- if (what_has_changed && f_out != -1)
+ if (itemize_changes && f_out != -1)
showchg(fname, file, statret, &st, 0);
if (statret != 0 && do_mkdir(fname,file->mode) != 0 && errno != EEXIST) {
if (!relative_paths || errno != ENOENT
}
}
if (set_perms(fname, file, statret ? NULL : &st, 0)
- && verbose && f_out != -1 && !what_has_changed)
+ && verbose && f_out != -1 && !itemize_changes)
rprintf(FINFO, "%s/\n", safe_fname(fname));
if (delete_during && f_out != -1 && csum_length != SUM_LENGTH
&& (file->flags & FLAG_DEL_HERE))
* right place -- no further action
* required. */
if (strcmp(lnk, file->u.link) == 0) {
- if (what_has_changed)
+ if (itemize_changes)
showchg(fname, file, 0, &st, 0);
set_perms(fname, file, &st,
PERMS_REPORT);
full_fname(fname), safe_fname(file->u.link));
} else {
set_perms(fname,file,NULL,0);
- if (what_has_changed) {
+ if (itemize_changes) {
showchg(fname, file, statret, &st,
SC_SYMLINK_CHANGED
| (verbose ? SC_NO_NL : 0));
}
if (verbose) {
rprintf(FINFO, "%s -> %s\n",
- what_has_changed ? "" : safe_fname(fname),
+ itemize_changes ? "" : safe_fname(fname),
safe_fname(file->u.link));
}
}
}
if (am_root && preserve_devices && IS_DEVICE(file->mode)) {
- if (what_has_changed)
+ if (itemize_changes)
showchg(fname, file, statret, &st, 0);
if (statret != 0 ||
st.st_mode != file->mode ||
full_fname(fname));
} else {
set_perms(fname,file,NULL,0);
- if (verbose && !what_has_changed) {
+ if (verbose && !itemize_changes) {
rprintf(FINFO, "%s\n",
safe_fname(fname));
}
else if (fnamecmp_type == FNAMECMP_FUZZY)
;
else if (unchanged_file(fnamecmp, file, &st)) {
- if (what_has_changed) {
+ if (itemize_changes) {
showchg(fname, file, statret, &st,
fnamecmp_type == FNAMECMP_FNAME ? 0
: SC_NO_BASIS);
write_buf(f_out_name, fuzzy_file->basename, len);
}
}
- if (what_has_changed) {
+ if (itemize_changes) {
showchg(fname, file, statret, &st,
(always_checksum ? SC_CHECKSUM_CHANGED : 0)
| SC_SENDING_FILE);
extern int am_generator;
extern int am_daemon;
extern int verbose;
-extern int what_has_changed;
+extern int itemize_changes;
extern int blocking_io;
extern int delete_before;
extern int daemon_over_rsh;
exit_cleanup(RERR_SYNTAX);
}
- if (dry_run && !verbose && !what_has_changed)
+ if (dry_run && !verbose && !itemize_changes)
verbose = 1;
if (am_server) {
int verbose = 0;
int quiet = 0;
-int what_has_changed = 0;
+int itemize_changes = 0;
int always_checksum = 0;
int list_only = 0;
rprintf(F," --stats give some file-transfer stats\n");
rprintf(F," --progress show progress during transfer\n");
rprintf(F," -P same as --partial --progress\n");
- rprintf(F," -w, --what-has-changed output a change summary for all updates\n");
+ rprintf(F," -i, --itemize-changes output a change-summary for all updates\n");
rprintf(F," --log-format=FORMAT log file-transfers using specified format\n");
rprintf(F," --password-file=FILE read password from FILE\n");
rprintf(F," --list-only list the files instead of copying them\n");
{"keep-dirlinks", 'K', POPT_ARG_NONE, &keep_dirlinks, 0, 0, 0 },
{"whole-file", 'W', POPT_ARG_VAL, &whole_file, 1, 0, 0 },
{"no-whole-file", 0, POPT_ARG_VAL, &whole_file, 0, 0, 0 },
- {"copy-unsafe-links", 0, POPT_ARG_NONE, ©_unsafe_links, 0, 0, 0 },
+ {"copy-unsafe-links",0, POPT_ARG_NONE, ©_unsafe_links, 0, 0, 0 },
{"perms", 'p', POPT_ARG_NONE, &preserve_perms, 0, 0, 0 },
{"owner", 'o', POPT_ARG_NONE, &preserve_uid, 0, 0, 0 },
{"group", 'g', POPT_ARG_NONE, &preserve_gid, 0, 0, 0 },
{0, 'P', POPT_ARG_NONE, 0, 'P', 0, 0 },
{"port", 0, POPT_ARG_INT, &rsync_port, 0, 0, 0 },
{"log-format", 0, POPT_ARG_STRING, &log_format, 0, 0, 0 },
- {"what-has-changed",'w', POPT_ARG_NONE, &what_has_changed, 0, 0, 0 },
+ {"itemize-changes", 'i', POPT_ARG_NONE, &itemize_changes, 0, 0, 0 },
{"bwlimit", 0, POPT_ARG_INT, &bwlimit, 0, 0, 0 },
{"backup-dir", 0, POPT_ARG_STRING, &backup_dir, 0, 0, 0 },
{"hard-links", 'H', POPT_ARG_NONE, &preserve_hard_links, 0, 0, 0 },
return 0;
}
- if (do_progress && !verbose && !what_has_changed) {
+ if (do_progress && !verbose && !itemize_changes) {
if (refused_verbose) {
create_refuse_error(refused_verbose);
return 0;
* default for remote transfers, and in any case old versions
* of rsync will not understand it. */
- if (what_has_changed && am_sender)
- argstr[x++] = 'w';
+ if (itemize_changes && am_sender)
+ argstr[x++] = 'i';
if (preserve_hard_links)
argstr[x++] = 'H';
if (preserve_uid)
#include "rsync.h"
extern int verbose;
-extern int what_has_changed;
+extern int itemize_changes;
extern int delete_after;
extern int csum_length;
extern struct stats stats;
rprintf(FINFO, "recv_files(%s)\n", safe_fname(fname));
if (dry_run) { /* log the transfer */
- if (!am_server && verbose && !what_has_changed)
+ if (!am_server && verbose && !itemize_changes)
rprintf(FINFO, "%s\n", safe_fname(fname));
continue;
}
}
/* log the transfer */
- if (!am_server && verbose && !what_has_changed)
+ if (!am_server && verbose && !itemize_changes)
rprintf(FINFO, "%s\n", safe_fname(fname));
/* recv file data */
--stats give some file-transfer stats
--progress show progress during transfer
-P same as --partial --progress
- -w, --what-has-changed output a change summary for all updates
+ -i, --itemize-changes output a change-summary for all updates
--log-format=FORMAT log file-transfers using specified format
--password-file=FILE read password from FILE
--list-only list the files instead of copying them
dit(bf(--no-blocking-io)) Turn off bf(--blocking-io), for use when it is the
default.
-dit(bf(--what-has-changed)) Outputs a change-summary for each updated
+dit(bf(-i, --itemize-changes)) Outputs a change-summary for each updated
item. The format is as follows:
quote(tt( *XcstpogDL ITEM_NAME))
by either a "-" if no change is occurring, or a "+" if this is a new item.
The meanings of the attribute letters are as follows:
-itemize(
- it() The bf(c) means the checksum of the file is different and will be
+quote(itemize(
+ it() A bf(c) means the checksum of the file is different and will be
updated by the file transfer (requries bf(--checksum)).
it() A bf(s) means the size of the file is different and will be updated
by the file transfer.
marked with a bf(T) because the time is updated to the transfer time).
it() A bf(p) means the permissions are being updated (requires
bf(--perms)).
- it() The bf(o) means the owner is being updated (requires bf(--owner) and
+ it() An bf(o) means the owner is being updated (requires bf(--owner) and
root privileges).
- it() The bf(g) means the group is being updated (requires bf(--group)).
- it() The bf(D) means the device is being updated (requires bf(--devices)
+ it() A bf(g) means the group is being updated (requires bf(--group)).
+ it() A bf(D) means the device is being updated (requires bf(--devices)
and root privileges).
- it() The bf(L) means the symlink value is being updated (requires
+ it() An bf(L) means the symlink value is being updated (requires
--links).
-)
+))
dit(bf(--log-format=FORMAT)) This allows you to specify exactly what the
rsync client logs to stdout on a per-file basis. The log format is
#include "rsync.h"
extern int verbose;
-extern int what_has_changed;
+extern int itemize_changes;
extern int csum_length;
extern struct stats stats;
extern int io_error;
rprintf(FINFO, "send_files(%d, %s)\n", i, fname);
if (dry_run) { /* log the transfer */
- if (!am_server && verbose && !what_has_changed)
+ if (!am_server && verbose && !itemize_changes)
rprintf(FINFO, "%s\n", safe_fname(fname2));
write_int(f_out, i);
continue;
}
/* log the transfer */
- if (!am_server && verbose && !what_has_changed)
+ if (!am_server && verbose && !itemize_changes)
rprintf(FINFO, "%s\n", safe_fname(fname2));
set_compression(fname);