ui-log: Implement support for commit graphs
Teach CGit to print an ASCII art commit graph to the left of the commit message, similar to 'git log --graph'. The graph adds extra lines (table rows) to the log when needed to add/remove/shuffle edges in the graph. When 'showmsg' is enabled, the graph is automatically padded to account for the extra lines added by the commit message/notes. This feature is controlled by a new config variable: "enable-commit-graph" (disabled by default), and individual repos can control it by setting "repo.enable-commit-graph". Signed-off-by: Johan Herland <johan@herland.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:

zatwierdzone przez
Lars Hjemli

rodzic
5a36c2a291
commit
9a8d39c668
15
cgitrc.5.txt
15
cgitrc.5.txt
@ -90,7 +90,12 @@ embedded::
|
||||
Flag which, when set to "1", will make cgit generate a html fragment
|
||||
suitable for embedding in other html pages. Default value: none. See
|
||||
also: "noheader".
|
||||
|
||||
|
||||
enable-commit-graph::
|
||||
Flag which, when set to "1", will make cgit print an ASCII-art commit
|
||||
history graph to the left of the commit messages in the repository
|
||||
log page. Default value: "0".
|
||||
|
||||
enable-filter-overrides::
|
||||
Flag which, when set to "1", allows all filter settings to be
|
||||
overridden in repository-specific cgitrc files. Default value: none.
|
||||
@ -354,6 +359,10 @@ repo.defbranch::
|
||||
repo.desc::
|
||||
The value to show as repository description. Default value: none.
|
||||
|
||||
repo.enable-commit-graph::
|
||||
A flag which can be used to disable the global setting
|
||||
`enable-commit-graph'. Default value: none.
|
||||
|
||||
repo.enable-log-filecount::
|
||||
A flag which can be used to disable the global setting
|
||||
`enable-log-filecount'. Default value: none.
|
||||
@ -441,6 +450,10 @@ css=/css/cgit.css
|
||||
enable-index-links=1
|
||||
|
||||
|
||||
# Enable ASCII art commit history graph on the log pages
|
||||
enable-commit-graph=1
|
||||
|
||||
|
||||
# Show number of affected files per commit on the log pages
|
||||
enable-log-filecount=1
|
||||
|
||||
|
Reference in New Issue
Block a user