Add "--early-output" log flag for interactive GUI use
[gitweb.git] / revision.h
index f46b4d55a2c75e201b37dda8edd6d353722a96cb..d8a5a5021f1e066b34b1d0602d7e44649e0aa4cf 100644 (file)
@@ -10,6 +10,7 @@
 #define CHILD_SHOWN    (1u<<6)
 #define ADDED          (1u<<7) /* Parents already parsed and added? */
 #define SYMMETRIC_LEFT (1u<<8)
+#define TOPOSORT       (1u<<9) /* In the active toposort list.. */
 
 struct rev_info;
 struct log_info;
@@ -29,6 +30,8 @@ struct rev_info {
        void *prune_data;
        prune_fn_t *prune_fn;
 
+       unsigned int early_output;
+
        /* Traversal flags */
        unsigned int    dense:1,
                        no_merges:1,
@@ -81,6 +84,7 @@ struct rev_info {
        const char      *log_reencode;
        const char      *subject_prefix;
        int             no_inline;
+       int             show_log_size;
 
        /* Filter by commit log message */
        struct grep_opt *grep_filter;
@@ -95,9 +99,6 @@ struct rev_info {
        struct diff_options diffopt;
        struct diff_options pruning;
 
-       topo_sort_set_fn_t topo_setter;
-       topo_sort_get_fn_t topo_getter;
-
        struct reflog_walk_info *reflog_info;
 };
 
@@ -106,6 +107,8 @@ struct rev_info {
 #define REV_TREE_DIFFERENT     2
 
 /* revision.c */
+typedef void (*show_early_output_fn_t)(struct rev_info *, struct commit_list *);
+volatile show_early_output_fn_t show_early_output;
 
 extern void init_revisions(struct rev_info *revs, const char *prefix);
 extern int setup_revisions(int argc, const char **argv, struct rev_info *revs, const char *def);