blob: d01a63df1b895b1f7146d19d4e6063dfb94931e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
 * 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, char *grep, char *pattern,
	const char *path, int pager, int commit_graph, int commit_sort, int table_columns);
extern void cgit_print_commit_decorations(struct commit *commit);

#endif // CGIT_UI_LOG_H