+#define ITEM_HARD_LINKED (1<<9)
+#define ITEM_LOCAL_CHANGE (1<<10)
+#define ITEM_REPORT_XATTRS (1<<11)
+/* These are outside the range of the transmitted flags. */
+#define ITEM_NO_DEST_AND_NO_UPDATE (1<<16) /* used by itemize() */
+#define ITEM_MISSING_DATA (1<<16) /* used by log_formatted() */
+#define ITEM_DELETED (1<<17) /* used by log_formatted() */
+
+#define SIGNIFICANT_ITEM_FLAGS (ITEM_TRANSFER | ITEM_REPORT_CHECKSUM \
+ | ITEM_REPORT_SIZE | ITEM_REPORT_TIME | ITEM_REPORT_PERMS \
+ | ITEM_REPORT_OWNER | ITEM_REPORT_GROUP | ITEM_IS_NEW)