Displaying 1 result from an estimated 1 matches for "s_or_r".
Did you mean:
_or_
2023 Jul 03
0
[PATCH] Add option --log-after to log after moving file into place
...code = FLOG;
+ } else if (code == FLOG_AFTER) {
+ code = FLOG;
} else if (send_msgs_to_gen) {
assert(!is_utf8);
/* Pass the message to our sibling in native charset. */
@@ -813,6 +816,12 @@ void log_item(enum logcode code, struct file_struct *file, int iflags, const cha
{
const char *s_or_r = am_sender ? "send" : "recv";
+ if (code == FLOG_AFTER) {
+ if (logafter_format && *logafter_format)
+ log_formatted(FLOG_AFTER, logafter_format, s_or_r, file, NULL, iflags, hlink);
+ return;
+ }
+
if (code != FLOG && stdout_format && !am_server)...