2006-04-09 10:11:11 +02:00
|
|
|
#ifndef LOG_TREE_H
|
|
|
|
#define LOG_TREE_H
|
|
|
|
|
2006-04-15 12:16:46 +02:00
|
|
|
#include "revision.h"
|
|
|
|
|
2006-04-09 10:11:11 +02:00
|
|
|
struct log_tree_opt {
|
|
|
|
struct diff_options diffopt;
|
|
|
|
int show_root_diff;
|
|
|
|
int no_commit_id;
|
|
|
|
int verbose_header;
|
|
|
|
int ignore_merges;
|
|
|
|
int combine_merges;
|
|
|
|
int dense_combined_merges;
|
|
|
|
int always_show_header;
|
|
|
|
const char *header_prefix;
|
|
|
|
const char *header;
|
|
|
|
enum cmit_fmt commit_format;
|
|
|
|
};
|
|
|
|
|
|
|
|
void init_log_tree_opt(struct log_tree_opt *);
|
|
|
|
int log_tree_diff_flush(struct log_tree_opt *);
|
|
|
|
int log_tree_commit(struct log_tree_opt *, struct commit *);
|
|
|
|
int log_tree_opt_parse(struct log_tree_opt *, const char **, int);
|
|
|
|
|
2006-04-15 12:16:46 +02:00
|
|
|
struct whatchanged_opt {
|
|
|
|
struct rev_info revopt;
|
|
|
|
struct log_tree_opt logopt;
|
|
|
|
int abbrev;
|
|
|
|
int abbrev_commit;
|
|
|
|
int do_diff;
|
|
|
|
int full_diff;
|
|
|
|
};
|
|
|
|
|
|
|
|
int parse_whatchanged_opt(int, const char **, struct whatchanged_opt *);
|
|
|
|
|
2006-04-09 10:11:11 +02:00
|
|
|
#endif
|