/* * The listing of commits, shown by the log page and by the block of recent * commits on a repository's summary page. The commit page borrows the * decorations alone, so that branch and tag labels look the same wherever a * commit is named. */ #ifndef CGIT_UI_LOG_H #define CGIT_UI_LOG_H /* * With pager set the log is a page of its own, in a table it opens itself. * Without it the rows go into a table the caller holds open, and table_columns * is that table's width, which every row is filled out to. 0 leaves the rows * at their own width. */ extern void cgit_print_log(const char *tip, int ofs, int cnt, const char *grep, const char *pattern, const char *path, int pager, int commit_graph, int commit_sort, int table_columns); /* * The columns a log row spans: age, message and author, and one more each for * the graph and for the file and line counts that are turned on. */ extern int cgit_log_columns(int graph); extern void cgit_print_commit_decorations(struct commit *commit); #endif // CGIT_UI_LOG_H