]> gitweb.ps.run Git - ps-cgit/commit
ui-log: Implement support for commit graphs
authorJohan Herland <johan@herland.net>
Mon, 15 Nov 2010 17:39:50 +0000 (18:39 +0100)
committerLars Hjemli <hjemli@gmail.com>
Tue, 16 Nov 2010 07:18:36 +0000 (08:18 +0100)
commit9a8d39c668b98464bac97d4e5442966de63f97b2
treeee1a7766d6d9365ae45f694939c20cab811abd84
parent5a36c2a291a00b59b8ec2f112453e117797c2fe5
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>
cgit.c
cgit.css
cgit.h
cgitrc.5.txt
shared.c
ui-log.c