aboutsummaryrefslogtreecommitdiffstats
path: root/cgit.css
diff options
context:
space:
mode:
authorGravatar Johan Herland <johan@herland.net>2010-11-16 02:39:50 (JST)
committerGravatar Lars Hjemli <hjemli@gmail.com>2010-11-16 16:18:36 (JST)
commit9a8d39c668b98464bac97d4e5442966de63f97b2 (patch)
treeee1a7766d6d9365ae45f694939c20cab811abd84 /cgit.css
parent5a36c2a291a00b59b8ec2f112453e117797c2fe5 (diff)
downloadcgit-9a8d39c668b98464bac97d4e5442966de63f97b2.zip
cgit-9a8d39c668b98464bac97d4e5442966de63f97b2.tar.gz
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>
Diffstat (limited to 'cgit.css')
-rw-r--r--cgit.css7
1 files changed, 6 insertions, 1 deletions
diff --git a/cgit.css b/cgit.css
index 7a5f423..7600e84 100644
--- a/cgit.css
+++ b/cgit.css
@@ -153,6 +153,11 @@ table.list td {
153 padding: 0.1em 0.5em 0.1em 0.5em; 153 padding: 0.1em 0.5em 0.1em 0.5em;
154} 154}
155 155
156table.list td.commitgraph {
157 font-family: monospace;
158 white-space: pre;
159}
160
156table.list td.logsubject { 161table.list td.logsubject {
157 font-family: monospace; 162 font-family: monospace;
158 font-weight: bold; 163 font-weight: bold;
@@ -731,4 +736,4 @@ table.ssdiff td.space {
731 736
732table.ssdiff td.space div { 737table.ssdiff td.space div {
733 min-height: 3em; 738 min-height: 3em;
734} \ No newline at end of file 739}