/* ui-patch.c: generate patch view
*
- * Copyright (C) 2007 Lars Hjemli
+ * Copyright (C) 2006-2014 cgit Development Team <cgit@lists.zx2c4.com>
*
* Licensed under GNU General Public License v2
* (see COPYING for full license text)
rev.verbose_header = 1;
rev.diff = 1;
rev.show_root_diff = 1;
+ rev.max_parents = 1;
rev.diffopt.output_format |= DIFF_FORMAT_PATCH;
setup_revisions(ARRAY_SIZE(rev_argv), (const char **)rev_argv, &rev,
NULL);
while ((commit = get_revision(&rev)) != NULL) {
log_tree_commit(&rev, commit);
- printf("--\ncgit %s\n", cgit_version);
+ printf("-- \ncgit %s\n\n", cgit_version);
}
}