struct rev_info rev;
bool recursive;
bool show_trees;
+ bool null_termination;
const char **all_paths;
size_t all_paths_nr;
putchar('^');
printf("%s\t", oid_to_hex(&commit->object.oid));
- if (lm->rev.diffopt.line_termination)
- write_name_quoted(path, stdout, '\n');
- else
+ if (lm->null_termination)
printf("%s%c", path, '\0');
+ else
+ write_name_quoted(path, stdout, '\n');
}
static void mark_path(const char *path, const struct object_id *oid,
N_("recurse into subtrees")),
OPT_BOOL('t', "show-trees", &lm.show_trees,
N_("show tree entries when recursing into subtrees")),
+ OPT_BOOL('z', NULL, &lm.null_termination,
+ N_("lines are separated with NUL character")),
OPT_END()
};