path: root/log-tree.h
diff options
authorJunio C Hamano <>2006-04-09 08:11:11 (GMT)
committerJunio C Hamano <>2006-04-09 08:35:13 (GMT)
commit5f1c3f07b7f4a8436c7773b8e7a04998190c125e (patch)
tree8f4a65b672406b4fb3be5036716f304474e1e88d /log-tree.h
parent0ed49a3ed9ab9747f7916c928d50aa0bf4d2c81d (diff)
log-tree: separate major part of diff-tree.
This separates out the part that deals with one-commit diff-tree (and --stdin form) into a separate log-tree module. There are two goals with this. The more important one is to be able to make this part available to "git log --diff", so that we can have a native "git whatchanged" command. Another is to simplify the commit log generation part simpler. Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'log-tree.h')
1 files changed, 23 insertions, 0 deletions
diff --git a/log-tree.h b/log-tree.h
new file mode 100644
index 0000000..da166c6
--- /dev/null
+++ b/log-tree.h
@@ -0,0 +1,23 @@
+#ifndef LOG_TREE_H
+#define LOG_TREE_H
+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);