-rw-r--r-- | Makefile | 64 | ||||
-rw-r--r-- | cgit.css | 16 | ||||
-rw-r--r-- | cgitrc.5.txt | 10 |
3 files changed, 77 insertions, 13 deletions
@@ -1,193 +1,243 @@ | |||
1 | CGIT_VERSION = v0.8.3.4 | 1 | CGIT_VERSION = v0.8.3.4 |
2 | CGIT_SCRIPT_NAME = cgit.cgi | 2 | CGIT_SCRIPT_NAME = cgit.cgi |
3 | CGIT_SCRIPT_PATH = /var/www/htdocs/cgit | 3 | CGIT_SCRIPT_PATH = /var/www/htdocs/cgit |
4 | CGIT_DATA_PATH = $(CGIT_SCRIPT_PATH) | 4 | CGIT_DATA_PATH = $(CGIT_SCRIPT_PATH) |
5 | CGIT_CONFIG = /etc/cgitrc | 5 | CGIT_CONFIG = /etc/cgitrc |
6 | CACHE_ROOT = /var/cache/cgit | 6 | CACHE_ROOT = /var/cache/cgit |
7 | prefix = /usr | ||
8 | libdir = $(prefix)/lib | ||
9 | filterdir = $(libdir)/cgit/filters | ||
10 | docdir = $(prefix)/share/doc/cgit | ||
11 | htmldir = $(docdir) | ||
12 | pdfdir = $(docdir) | ||
13 | mandir = $(prefix)/share/man | ||
7 | SHA1_HEADER = <openssl/sha.h> | 14 | SHA1_HEADER = <openssl/sha.h> |
8 | GIT_VER = 1.7.3 | 15 | GIT_VER = 1.7.3 |
9 | GIT_URL = http://www.kernel.org/pub/software/scm/git/git-$(GIT_VER).tar.bz2 | 16 | GIT_URL = http://www.kernel.org/pub/software/scm/git/git-$(GIT_VER).tar.bz2 |
10 | INSTALL = install | 17 | INSTALL = install |
18 | MAN5_TXT = $(wildcard *.5.txt) | ||
19 | MAN_TXT = $(MAN5_TXT) | ||
20 | DOC_MAN5 = $(patsubst %.txt,%,$(MAN5_TXT)) | ||
21 | DOC_HTML = $(patsubst %.txt,%.html,$(MAN_TXT)) | ||
22 | DOC_PDF = $(patsubst %.txt,%.pdf,$(MAN_TXT)) | ||
11 | 23 | ||
12 | # Define NO_STRCASESTR if you don't have strcasestr. | 24 | # Define NO_STRCASESTR if you don't have strcasestr. |
13 | # | 25 | # |
14 | # Define NO_OPENSSL to disable linking with OpenSSL and use bundled SHA1 | 26 | # Define NO_OPENSSL to disable linking with OpenSSL and use bundled SHA1 |
15 | # implementation (slower). | 27 | # implementation (slower). |
16 | # | 28 | # |
17 | # Define NEEDS_LIBICONV if linking with libc is not enough (eg. Darwin). | 29 | # Define NEEDS_LIBICONV if linking with libc is not enough (eg. Darwin). |
18 | # | 30 | # |
19 | # Define NO_C99_FORMAT if your formatted IO functions (printf/scanf et.al.) | 31 | # Define NO_C99_FORMAT if your formatted IO functions (printf/scanf et.al.) |
20 | # do not support the 'size specifiers' introduced by C99, namely ll, hh, | 32 | # do not support the 'size specifiers' introduced by C99, namely ll, hh, |
21 | # j, z, t. (representing long long int, char, intmax_t, size_t, ptrdiff_t). | 33 | # j, z, t. (representing long long int, char, intmax_t, size_t, ptrdiff_t). |
22 | # some C compilers supported these specifiers prior to C99 as an extension. | 34 | # some C compilers supported these specifiers prior to C99 as an extension. |
23 | # | 35 | # |
24 | 36 | ||
25 | #-include config.mak | 37 | #-include config.mak |
26 | 38 | ||
27 | # | 39 | # |
28 | # Platform specific tweaks | 40 | # Platform specific tweaks |
29 | # | 41 | # |
30 | 42 | ||
31 | uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not') | 43 | uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not') |
32 | uname_O := $(shell sh -c 'uname -o 2>/dev/null || echo not') | 44 | uname_O := $(shell sh -c 'uname -o 2>/dev/null || echo not') |
33 | uname_R := $(shell sh -c 'uname -r 2>/dev/null || echo not') | 45 | uname_R := $(shell sh -c 'uname -r 2>/dev/null || echo not') |
34 | 46 | ||
35 | ifeq ($(uname_O),Cygwin) | 47 | ifeq ($(uname_O),Cygwin) |
36 | NO_STRCASESTR = YesPlease | 48 | NO_STRCASESTR = YesPlease |
37 | NEEDS_LIBICONV = YesPlease | 49 | NEEDS_LIBICONV = YesPlease |
38 | endif | 50 | endif |
39 | 51 | ||
40 | # | 52 | # |
41 | # Let the user override the above settings. | 53 | # Let the user override the above settings. |
42 | # | 54 | # |
43 | -include cgit.conf | 55 | -include cgit.conf |
44 | 56 | ||
45 | # | 57 | # |
46 | # Define a way to invoke make in subdirs quietly, shamelessly ripped | 58 | # Define a way to invoke make in subdirs quietly, shamelessly ripped |
47 | # from git.git | 59 | # from git.git |
48 | # | 60 | # |
49 | QUIET_SUBDIR0 = +$(MAKE) -C # space to separate -C and subdir | 61 | QUIET_SUBDIR0 = +$(MAKE) -C # space to separate -C and subdir |
50 | QUIET_SUBDIR1 = | 62 | QUIET_SUBDIR1 = |
51 | 63 | ||
52 | ifneq ($(findstring $(MAKEFLAGS),w),w) | 64 | ifneq ($(findstring $(MAKEFLAGS),w),w) |
53 | PRINT_DIR = --no-print-directory | 65 | PRINT_DIR = --no-print-directory |
54 | else # "make -w" | 66 | else # "make -w" |
55 | NO_SUBDIR = : | 67 | NO_SUBDIR = : |
56 | endif | 68 | endif |
57 | 69 | ||
58 | ifndef V | 70 | ifndef V |
59 | QUIET_CC = @echo ' ' CC $@; | 71 | QUIET_CC = @echo ' ' CC $@; |
60 | QUIET_MM = @echo ' ' MM $@; | 72 | QUIET_MM = @echo ' ' MM $@; |
61 | QUIET_SUBDIR0 = +@subdir= | 73 | QUIET_SUBDIR0 = +@subdir= |
62 | QUIET_SUBDIR1 = ;$(NO_SUBDIR) echo ' ' SUBDIR $$subdir; \ | 74 | QUIET_SUBDIR1 = ;$(NO_SUBDIR) echo ' ' SUBDIR $$subdir; \ |
63 | $(MAKE) $(PRINT_DIR) -C $$subdir | 75 | $(MAKE) $(PRINT_DIR) -C $$subdir |
64 | endif | 76 | endif |
65 | 77 | ||
66 | # | 78 | # |
67 | # Define a pattern rule for automatic dependency building | 79 | # Define a pattern rule for automatic dependency building |
68 | # | 80 | # |
69 | %.d: %.c | 81 | %.d: %.c |
70 | $(QUIET_MM)$(CC) $(CFLAGS) -MM -MP $< | sed -e 's/\($*\)\.o:/\1.o $@:/g' >$@ | 82 | $(QUIET_MM)$(CC) $(CFLAGS) -MM -MP $< | sed -e 's/\($*\)\.o:/\1.o $@:/g' >$@ |
71 | 83 | ||
72 | # | 84 | # |
73 | # Define a pattern rule for silent object building | 85 | # Define a pattern rule for silent object building |
74 | # | 86 | # |
75 | %.o: %.c | 87 | %.o: %.c |
76 | $(QUIET_CC)$(CC) -o $*.o -c $(CFLAGS) $< | 88 | $(QUIET_CC)$(CC) -o $*.o -c $(CFLAGS) $< |
77 | 89 | ||
78 | 90 | ||
79 | EXTLIBS = git/libgit.a git/xdiff/lib.a -lz -lpthread | 91 | EXTLIBS = git/libgit.a git/xdiff/lib.a -lz -lpthread |
80 | OBJECTS = | 92 | OBJECTS = |
81 | OBJECTS += cache.o | 93 | OBJECTS += cache.o |
82 | OBJECTS += cgit.o | 94 | OBJECTS += cgit.o |
83 | OBJECTS += cmd.o | 95 | OBJECTS += cmd.o |
84 | OBJECTS += configfile.o | 96 | OBJECTS += configfile.o |
85 | OBJECTS += html.o | 97 | OBJECTS += html.o |
86 | OBJECTS += parsing.o | 98 | OBJECTS += parsing.o |
87 | OBJECTS += scan-tree.o | 99 | OBJECTS += scan-tree.o |
88 | OBJECTS += shared.o | 100 | OBJECTS += shared.o |
89 | OBJECTS += ui-atom.o | 101 | OBJECTS += ui-atom.o |
90 | OBJECTS += ui-blob.o | 102 | OBJECTS += ui-blob.o |
91 | OBJECTS += ui-clone.o | 103 | OBJECTS += ui-clone.o |
92 | OBJECTS += ui-commit.o | 104 | OBJECTS += ui-commit.o |
93 | OBJECTS += ui-diff.o | 105 | OBJECTS += ui-diff.o |
94 | OBJECTS += ui-log.o | 106 | OBJECTS += ui-log.o |
95 | OBJECTS += ui-patch.o | 107 | OBJECTS += ui-patch.o |
96 | OBJECTS += ui-plain.o | 108 | OBJECTS += ui-plain.o |
97 | OBJECTS += ui-refs.o | 109 | OBJECTS += ui-refs.o |
98 | OBJECTS += ui-repolist.o | 110 | OBJECTS += ui-repolist.o |
99 | OBJECTS += ui-shared.o | 111 | OBJECTS += ui-shared.o |
100 | OBJECTS += ui-snapshot.o | 112 | OBJECTS += ui-snapshot.o |
101 | OBJECTS += ui-ssdiff.o | 113 | OBJECTS += ui-ssdiff.o |
102 | OBJECTS += ui-stats.o | 114 | OBJECTS += ui-stats.o |
103 | OBJECTS += ui-summary.o | 115 | OBJECTS += ui-summary.o |
104 | OBJECTS += ui-tag.o | 116 | OBJECTS += ui-tag.o |
105 | OBJECTS += ui-tree.o | 117 | OBJECTS += ui-tree.o |
106 | 118 | ||
107 | ifdef NEEDS_LIBICONV | 119 | ifdef NEEDS_LIBICONV |
108 | EXTLIBS += -liconv | 120 | EXTLIBS += -liconv |
109 | endif | 121 | endif |
110 | 122 | ||
111 | 123 | ||
112 | .PHONY: all libgit test install uninstall clean force-version get-git \ | 124 | .PHONY: all libgit test install uninstall clean force-version get-git \ |
113 | doc man-doc html-doc clean-doc | 125 | doc clean-doc install-doc install-man install-html install-pdf \ |
126 | uninstall-doc uninstall-man uninstall-html uninstall-pdf | ||
114 | 127 | ||
115 | all: cgit | 128 | all: cgit |
116 | 129 | ||
117 | VERSION: force-version | 130 | VERSION: force-version |
118 | @./gen-version.sh "$(CGIT_VERSION)" | 131 | @./gen-version.sh "$(CGIT_VERSION)" |
119 | -include VERSION | 132 | -include VERSION |
120 | 133 | ||
121 | 134 | ||
122 | CFLAGS += -g -Wall -Igit | 135 | CFLAGS += -g -Wall -Igit |
123 | CFLAGS += -DSHA1_HEADER='$(SHA1_HEADER)' | 136 | CFLAGS += -DSHA1_HEADER='$(SHA1_HEADER)' |
124 | CFLAGS += -DCGIT_VERSION='"$(CGIT_VERSION)"' | 137 | CFLAGS += -DCGIT_VERSION='"$(CGIT_VERSION)"' |
125 | CFLAGS += -DCGIT_CONFIG='"$(CGIT_CONFIG)"' | 138 | CFLAGS += -DCGIT_CONFIG='"$(CGIT_CONFIG)"' |
126 | CFLAGS += -DCGIT_SCRIPT_NAME='"$(CGIT_SCRIPT_NAME)"' | 139 | CFLAGS += -DCGIT_SCRIPT_NAME='"$(CGIT_SCRIPT_NAME)"' |
127 | CFLAGS += -DCGIT_CACHE_ROOT='"$(CACHE_ROOT)"' | 140 | CFLAGS += -DCGIT_CACHE_ROOT='"$(CACHE_ROOT)"' |
128 | 141 | ||
129 | GIT_OPTIONS = prefix=/usr | 142 | GIT_OPTIONS = prefix=/usr |
130 | 143 | ||
131 | ifdef NO_ICONV | 144 | ifdef NO_ICONV |
132 | CFLAGS += -DNO_ICONV | 145 | CFLAGS += -DNO_ICONV |
133 | endif | 146 | endif |
134 | ifdef NO_STRCASESTR | 147 | ifdef NO_STRCASESTR |
135 | CFLAGS += -DNO_STRCASESTR | 148 | CFLAGS += -DNO_STRCASESTR |
136 | endif | 149 | endif |
137 | ifdef NO_C99_FORMAT | 150 | ifdef NO_C99_FORMAT |
138 | CFLAGS += -DNO_C99_FORMAT | 151 | CFLAGS += -DNO_C99_FORMAT |
139 | endif | 152 | endif |
140 | ifdef NO_OPENSSL | 153 | ifdef NO_OPENSSL |
141 | CFLAGS += -DNO_OPENSSL | 154 | CFLAGS += -DNO_OPENSSL |
142 | GIT_OPTIONS += NO_OPENSSL=1 | 155 | GIT_OPTIONS += NO_OPENSSL=1 |
143 | else | 156 | else |
144 | EXTLIBS += -lcrypto | 157 | EXTLIBS += -lcrypto |
145 | endif | 158 | endif |
146 | 159 | ||
147 | cgit: $(OBJECTS) libgit | 160 | cgit: $(OBJECTS) libgit |
148 | $(QUIET_CC)$(CC) $(CFLAGS) $(LDFLAGS) -o cgit $(OBJECTS) $(EXTLIBS) | 161 | $(QUIET_CC)$(CC) $(CFLAGS) $(LDFLAGS) -o cgit $(OBJECTS) $(EXTLIBS) |
149 | 162 | ||
150 | cgit.o: VERSION | 163 | cgit.o: VERSION |
151 | 164 | ||
152 | ifneq "$(MAKECMDGOALS)" "clean" | 165 | ifneq "$(MAKECMDGOALS)" "clean" |
153 | -include $(OBJECTS:.o=.d) | 166 | -include $(OBJECTS:.o=.d) |
154 | endif | 167 | endif |
155 | 168 | ||
156 | libgit: | 169 | libgit: |
157 | $(QUIET_SUBDIR0)git $(QUIET_SUBDIR1) NO_CURL=1 $(GIT_OPTIONS) libgit.a | 170 | $(QUIET_SUBDIR0)git $(QUIET_SUBDIR1) NO_CURL=1 $(GIT_OPTIONS) libgit.a |
158 | $(QUIET_SUBDIR0)git $(QUIET_SUBDIR1) NO_CURL=1 $(GIT_OPTIONS) xdiff/lib.a | 171 | $(QUIET_SUBDIR0)git $(QUIET_SUBDIR1) NO_CURL=1 $(GIT_OPTIONS) xdiff/lib.a |
159 | 172 | ||
160 | test: all | 173 | test: all |
161 | $(QUIET_SUBDIR0)tests $(QUIET_SUBDIR1) all | 174 | $(QUIET_SUBDIR0)tests $(QUIET_SUBDIR1) all |
162 | 175 | ||
163 | install: all | 176 | install: all |
164 | $(INSTALL) -m 0755 -d $(DESTDIR)$(CGIT_SCRIPT_PATH) | 177 | $(INSTALL) -m 0755 -d $(DESTDIR)$(CGIT_SCRIPT_PATH) |
165 | $(INSTALL) -m 0755 cgit $(DESTDIR)$(CGIT_SCRIPT_PATH)/$(CGIT_SCRIPT_NAME) | 178 | $(INSTALL) -m 0755 cgit $(DESTDIR)$(CGIT_SCRIPT_PATH)/$(CGIT_SCRIPT_NAME) |
166 | $(INSTALL) -m 0755 -d $(DESTDIR)$(CGIT_DATA_PATH) | 179 | $(INSTALL) -m 0755 -d $(DESTDIR)$(CGIT_DATA_PATH) |
167 | $(INSTALL) -m 0644 cgit.css $(DESTDIR)$(CGIT_DATA_PATH)/cgit.css | 180 | $(INSTALL) -m 0644 cgit.css $(DESTDIR)$(CGIT_DATA_PATH)/cgit.css |
168 | $(INSTALL) -m 0644 cgit.png $(DESTDIR)$(CGIT_DATA_PATH)/cgit.png | 181 | $(INSTALL) -m 0644 cgit.png $(DESTDIR)$(CGIT_DATA_PATH)/cgit.png |
182 | $(INSTALL) -m 0755 -d $(DESTDIR)$(filterdir) | ||
183 | $(INSTALL) -m 0755 filters/* $(DESTDIR)$(filterdir) | ||
184 | |||
185 | install-doc: install-man install-html install-pdf | ||
186 | |||
187 | install-man: doc-man | ||
188 | $(INSTALL) -m 0755 -d $(DESTDIR)$(mandir)/man5 | ||
189 | $(INSTALL) -m 0644 $(DOC_MAN5) $(DESTDIR)$(mandir)/man5 | ||
190 | |||
191 | install-html: doc-html | ||
192 | $(INSTALL) -m 0755 -d $(DESTDIR)$(htmldir) | ||
193 | $(INSTALL) -m 0644 $(DOC_HTML) $(DESTDIR)$(htmldir) | ||
194 | |||
195 | install-pdf: doc-pdf | ||
196 | $(INSTALL) -m 0755 -d $(DESTDIR)$(pdfdir) | ||
197 | $(INSTALL) -m 0644 $(DOC_PDF) $(DESTDIR)$(pdfdir) | ||
169 | 198 | ||
170 | uninstall: | 199 | uninstall: |
171 | rm -f $(CGIT_SCRIPT_PATH)/$(CGIT_SCRIPT_NAME) | 200 | rm -f $(CGIT_SCRIPT_PATH)/$(CGIT_SCRIPT_NAME) |
172 | rm -f $(CGIT_DATA_PATH)/cgit.css | 201 | rm -f $(CGIT_DATA_PATH)/cgit.css |
173 | rm -f $(CGIT_DATA_PATH)/cgit.png | 202 | rm -f $(CGIT_DATA_PATH)/cgit.png |
174 | 203 | ||
175 | doc: man-doc html-doc pdf-doc | 204 | uninstall-doc: uninstall-man uninstall-html uninstall-pdf |
205 | |||
206 | uninstall-man: | ||
207 | @for i in $(DOC_MAN5); do \ | ||
208 | rm -fv $(DESTDIR)$(mandir)/man5/$$i; \ | ||
209 | done | ||
210 | |||
211 | uninstall-html: | ||
212 | @for i in $(DOC_HTML); do \ | ||
213 | rm -fv $(DESTDIR)$(htmldir)/$$i; \ | ||
214 | done | ||
215 | |||
216 | uninstall-pdf: | ||
217 | @for i in $(DOC_PDF); do \ | ||
218 | rm -fv $(DESTDIR)$(pdfdir)/$$i; \ | ||
219 | done | ||
220 | |||
221 | doc: doc-man doc-html doc-pdf | ||
222 | doc-man: doc-man5 | ||
223 | doc-man5: $(DOC_MAN5) | ||
224 | doc-html: $(DOC_HTML) | ||
225 | doc-pdf: $(DOC_PDF) | ||
176 | 226 | ||
177 | man-doc: cgitrc.5.txt | 227 | %.5 : %.5.txt |
178 | a2x -f manpage cgitrc.5.txt | 228 | a2x -f manpage $< |
179 | 229 | ||
180 | html-doc: cgitrc.5.txt | 230 | $(DOC_HTML): %.html : %.txt |
181 | a2x -f xhtml --stylesheet=cgit-doc.css cgitrc.5.txt | 231 | a2x -f xhtml --stylesheet=cgit-doc.css $< |
182 | 232 | ||
183 | pdf-doc: cgitrc.5.txt | 233 | $(DOC_PDF): %.pdf : %.txt |
184 | a2x -f pdf cgitrc.5.txt | 234 | a2x -f pdf cgitrc.5.txt |
185 | 235 | ||
186 | clean: clean-doc | 236 | clean: clean-doc |
187 | rm -f cgit VERSION *.o *.d | 237 | rm -f cgit VERSION *.o *.d |
188 | 238 | ||
189 | clean-doc: | 239 | clean-doc: |
190 | rm -f cgitrc.5 cgitrc.5.html cgitrc.5.pdf cgitrc.5.xml cgitrc.5.fo | 240 | rm -f cgitrc.5 cgitrc.5.html cgitrc.5.pdf cgitrc.5.xml cgitrc.5.fo |
191 | 241 | ||
192 | get-git: | 242 | get-git: |
193 | curl $(GIT_URL) | tar -xj && rm -rf git && mv git-$(GIT_VER) git | 243 | curl $(GIT_URL) | tar -xj && rm -rf git && mv git-$(GIT_VER) git |
@@ -1,745 +1,759 @@ | |||
1 | body, table, form { | 1 | body, table, form { |
2 | padding: 0em; | 2 | padding: 0em; |
3 | margin: 0em; | 3 | margin: 0em; |
4 | } | 4 | } |
5 | 5 | ||
6 | body { | 6 | body { |
7 | font-family: sans-serif; | 7 | font-family: sans-serif; |
8 | font-size: 10pt; | 8 | font-size: 10pt; |
9 | color: #333; | 9 | color: #333; |
10 | background: white; | 10 | background: white; |
11 | padding: 4px; | 11 | padding: 4px; |
12 | } | 12 | } |
13 | 13 | ||
14 | a { | 14 | a { |
15 | color: blue; | 15 | color: blue; |
16 | text-decoration: none; | 16 | text-decoration: none; |
17 | } | 17 | } |
18 | 18 | ||
19 | a:hover { | 19 | a:hover { |
20 | text-decoration: underline; | 20 | text-decoration: underline; |
21 | } | 21 | } |
22 | 22 | ||
23 | table { | 23 | table { |
24 | border-collapse: collapse; | 24 | border-collapse: collapse; |
25 | } | 25 | } |
26 | 26 | ||
27 | table#header { | 27 | table#header { |
28 | width: 100%; | 28 | width: 100%; |
29 | margin-bottom: 1em; | 29 | margin-bottom: 1em; |
30 | } | 30 | } |
31 | 31 | ||
32 | table#header td.logo { | 32 | table#header td.logo { |
33 | width: 96px; | 33 | width: 96px; |
34 | } | 34 | } |
35 | 35 | ||
36 | table#header td.main { | 36 | table#header td.main { |
37 | font-size: 250%; | 37 | font-size: 250%; |
38 | padding-left: 10px; | 38 | padding-left: 10px; |
39 | white-space: nowrap; | 39 | white-space: nowrap; |
40 | } | 40 | } |
41 | 41 | ||
42 | table#header td.main a { | 42 | table#header td.main a { |
43 | color: #000; | 43 | color: #000; |
44 | } | 44 | } |
45 | 45 | ||
46 | table#header td.form { | 46 | table#header td.form { |
47 | text-align: right; | 47 | text-align: right; |
48 | vertical-align: bottom; | 48 | vertical-align: bottom; |
49 | padding-right: 1em; | 49 | padding-right: 1em; |
50 | padding-bottom: 2px; | 50 | padding-bottom: 2px; |
51 | white-space: nowrap; | 51 | white-space: nowrap; |
52 | } | 52 | } |
53 | 53 | ||
54 | table#header td.form form, | 54 | table#header td.form form, |
55 | table#header td.form input, | 55 | table#header td.form input, |
56 | table#header td.form select { | 56 | table#header td.form select { |
57 | font-size: 90%; | 57 | font-size: 90%; |
58 | } | 58 | } |
59 | 59 | ||
60 | table#header td.sub { | 60 | table#header td.sub { |
61 | color: #777; | 61 | color: #777; |
62 | border-top: solid 1px #ccc; | 62 | border-top: solid 1px #ccc; |
63 | padding-left: 10px; | 63 | padding-left: 10px; |
64 | } | 64 | } |
65 | 65 | ||
66 | table.tabs { | 66 | table.tabs { |
67 | border-bottom: solid 3px #ccc; | 67 | border-bottom: solid 3px #ccc; |
68 | border-collapse: collapse; | 68 | border-collapse: collapse; |
69 | margin-top: 2em; | 69 | margin-top: 2em; |
70 | margin-bottom: 0px; | 70 | margin-bottom: 0px; |
71 | width: 100%; | 71 | width: 100%; |
72 | } | 72 | } |
73 | 73 | ||
74 | table.tabs td { | 74 | table.tabs td { |
75 | padding: 0px 1em; | 75 | padding: 0px 1em; |
76 | vertical-align: bottom; | 76 | vertical-align: bottom; |
77 | } | 77 | } |
78 | 78 | ||
79 | table.tabs td a { | 79 | table.tabs td a { |
80 | padding: 2px 0.75em; | 80 | padding: 2px 0.75em; |
81 | color: #777; | 81 | color: #777; |
82 | font-size: 110%; | 82 | font-size: 110%; |
83 | } | 83 | } |
84 | 84 | ||
85 | table.tabs td a.active { | 85 | table.tabs td a.active { |
86 | color: #000; | 86 | color: #000; |
87 | background-color: #ccc; | 87 | background-color: #ccc; |
88 | } | 88 | } |
89 | 89 | ||
90 | table.tabs td.form { | 90 | table.tabs td.form { |
91 | text-align: right; | 91 | text-align: right; |
92 | } | 92 | } |
93 | 93 | ||
94 | table.tabs td.form form { | 94 | table.tabs td.form form { |
95 | padding-bottom: 2px; | 95 | padding-bottom: 2px; |
96 | font-size: 90%; | 96 | font-size: 90%; |
97 | white-space: nowrap; | 97 | white-space: nowrap; |
98 | } | 98 | } |
99 | 99 | ||
100 | table.tabs td.form input, | 100 | table.tabs td.form input, |
101 | table.tabs td.form select { | 101 | table.tabs td.form select { |
102 | font-size: 90%; | 102 | font-size: 90%; |
103 | } | 103 | } |
104 | 104 | ||
105 | div.path { | 105 | div.path { |
106 | margin: 0px; | 106 | margin: 0px; |
107 | padding: 5px 2em 2px 2em; | 107 | padding: 5px 2em 2px 2em; |
108 | color: #000; | 108 | color: #000; |
109 | background-color: #eee; | 109 | background-color: #eee; |
110 | } | 110 | } |
111 | 111 | ||
112 | div.content { | 112 | div.content { |
113 | margin: 0px; | 113 | margin: 0px; |
114 | padding: 2em; | 114 | padding: 2em; |
115 | border-bottom: solid 3px #ccc; | 115 | border-bottom: solid 3px #ccc; |
116 | } | 116 | } |
117 | 117 | ||
118 | 118 | ||
119 | table.list { | 119 | table.list { |
120 | width: 100%; | 120 | width: 100%; |
121 | border: none; | 121 | border: none; |
122 | border-collapse: collapse; | 122 | border-collapse: collapse; |
123 | } | 123 | } |
124 | 124 | ||
125 | table.list tr { | 125 | table.list tr { |
126 | background: white; | 126 | background: white; |
127 | } | 127 | } |
128 | 128 | ||
129 | table.list tr.logheader { | 129 | table.list tr.logheader { |
130 | background: #eee; | 130 | background: #eee; |
131 | } | 131 | } |
132 | 132 | ||
133 | table.list tr:hover { | 133 | table.list tr:hover { |
134 | background: #eee; | 134 | background: #eee; |
135 | } | 135 | } |
136 | 136 | ||
137 | table.list tr.nohover:hover { | 137 | table.list tr.nohover:hover { |
138 | background: white; | 138 | background: white; |
139 | } | 139 | } |
140 | 140 | ||
141 | table.list th { | 141 | table.list th { |
142 | font-weight: bold; | 142 | font-weight: bold; |
143 | /* color: #888; | 143 | /* color: #888; |
144 | border-top: dashed 1px #888; | 144 | border-top: dashed 1px #888; |
145 | border-bottom: dashed 1px #888; | 145 | border-bottom: dashed 1px #888; |
146 | */ | 146 | */ |
147 | padding: 0.1em 0.5em 0.05em 0.5em; | 147 | padding: 0.1em 0.5em 0.05em 0.5em; |
148 | vertical-align: baseline; | 148 | vertical-align: baseline; |
149 | } | 149 | } |
150 | 150 | ||
151 | table.list td { | 151 | table.list td { |
152 | border: none; | 152 | border: none; |
153 | padding: 0.1em 0.5em 0.1em 0.5em; | 153 | padding: 0.1em 0.5em 0.1em 0.5em; |
154 | } | 154 | } |
155 | 155 | ||
156 | table.list td.logsubject { | 156 | table.list td.logsubject { |
157 | font-family: monospace; | 157 | font-family: monospace; |
158 | font-weight: bold; | 158 | font-weight: bold; |
159 | } | 159 | } |
160 | 160 | ||
161 | table.list td.logmsg { | 161 | table.list td.logmsg { |
162 | font-family: monospace; | 162 | font-family: monospace; |
163 | white-space: pre; | 163 | white-space: pre; |
164 | padding: 1em 0.5em 2em 0.5em; | 164 | padding: 1em 0.5em 2em 0.5em; |
165 | } | 165 | } |
166 | 166 | ||
167 | table.list td.lognotes-label { | 167 | table.list td.lognotes-label { |
168 | text-align:right; | 168 | text-align:right; |
169 | vertical-align:top; | 169 | vertical-align:top; |
170 | } | 170 | } |
171 | 171 | ||
172 | table.list td.lognotes { | 172 | table.list td.lognotes { |
173 | font-family: monospace; | 173 | font-family: monospace; |
174 | white-space: pre; | 174 | white-space: pre; |
175 | padding: 0em 0.5em 2em 0.5em; | 175 | padding: 0em 0.5em 2em 0.5em; |
176 | } | 176 | } |
177 | 177 | ||
178 | table.list td a { | 178 | table.list td a { |
179 | color: black; | 179 | color: black; |
180 | } | 180 | } |
181 | 181 | ||
182 | table.list td a.ls-dir { | 182 | table.list td a.ls-dir { |
183 | font-weight: bold; | 183 | font-weight: bold; |
184 | color: #00f; | 184 | color: #00f; |
185 | } | 185 | } |
186 | 186 | ||
187 | table.list td a:hover { | 187 | table.list td a:hover { |
188 | color: #00f; | 188 | color: #00f; |
189 | } | 189 | } |
190 | 190 | ||
191 | img { | 191 | img { |
192 | border: none; | 192 | border: none; |
193 | } | 193 | } |
194 | 194 | ||
195 | input#switch-btn { | 195 | input#switch-btn { |
196 | margin: 2px 0px 0px 0px; | 196 | margin: 2px 0px 0px 0px; |
197 | } | 197 | } |
198 | 198 | ||
199 | td#sidebar input.txt { | 199 | td#sidebar input.txt { |
200 | width: 100%; | 200 | width: 100%; |
201 | margin: 2px 0px 0px 0px; | 201 | margin: 2px 0px 0px 0px; |
202 | } | 202 | } |
203 | 203 | ||
204 | table#grid { | 204 | table#grid { |
205 | margin: 0px; | 205 | margin: 0px; |
206 | } | 206 | } |
207 | 207 | ||
208 | td#content { | 208 | td#content { |
209 | vertical-align: top; | 209 | vertical-align: top; |
210 | padding: 1em 2em 1em 1em; | 210 | padding: 1em 2em 1em 1em; |
211 | border: none; | 211 | border: none; |
212 | } | 212 | } |
213 | 213 | ||
214 | div#summary { | 214 | div#summary { |
215 | vertical-align: top; | 215 | vertical-align: top; |
216 | margin-bottom: 1em; | 216 | margin-bottom: 1em; |
217 | } | 217 | } |
218 | 218 | ||
219 | table#downloads { | 219 | table#downloads { |
220 | float: right; | 220 | float: right; |
221 | border-collapse: collapse; | 221 | border-collapse: collapse; |
222 | border: solid 1px #777; | 222 | border: solid 1px #777; |
223 | margin-left: 0.5em; | 223 | margin-left: 0.5em; |
224 | margin-bottom: 0.5em; | 224 | margin-bottom: 0.5em; |
225 | } | 225 | } |
226 | 226 | ||
227 | table#downloads th { | 227 | table#downloads th { |
228 | background-color: #ccc; | 228 | background-color: #ccc; |
229 | } | 229 | } |
230 | 230 | ||
231 | div#blob { | 231 | div#blob { |
232 | border: solid 1px black; | 232 | border: solid 1px black; |
233 | } | 233 | } |
234 | 234 | ||
235 | div.error { | 235 | div.error { |
236 | color: red; | 236 | color: red; |
237 | font-weight: bold; | 237 | font-weight: bold; |
238 | margin: 1em 2em; | 238 | margin: 1em 2em; |
239 | } | 239 | } |
240 | 240 | ||
241 | a.ls-blob, a.ls-dir, a.ls-mod { | 241 | a.ls-blob, a.ls-dir, a.ls-mod { |
242 | font-family: monospace; | 242 | font-family: monospace; |
243 | } | 243 | } |
244 | 244 | ||
245 | td.ls-size { | 245 | td.ls-size { |
246 | text-align: right; | 246 | text-align: right; |
247 | font-family: monospace; | 247 | font-family: monospace; |
248 | width: 10em; | 248 | width: 10em; |
249 | } | 249 | } |
250 | 250 | ||
251 | td.ls-mode { | 251 | td.ls-mode { |
252 | font-family: monospace; | 252 | font-family: monospace; |
253 | width: 10em; | 253 | width: 10em; |
254 | } | 254 | } |
255 | 255 | ||
256 | table.blob { | 256 | table.blob { |
257 | margin-top: 0.5em; | 257 | margin-top: 0.5em; |
258 | border-top: solid 1px black; | 258 | border-top: solid 1px black; |
259 | } | 259 | } |
260 | 260 | ||
261 | table.blob td.lines { | 261 | table.blob td.lines { |
262 | margin: 0; padding: 0 0 0 0.5em; | 262 | margin: 0; padding: 0 0 0 0.5em; |
263 | vertical-align: top; | 263 | vertical-align: top; |
264 | color: black; | 264 | color: black; |
265 | } | 265 | } |
266 | 266 | ||
267 | table.blob td.linenumbers { | 267 | table.blob td.linenumbers { |
268 | margin: 0; padding: 0 0.5em 0 0.5em; | 268 | margin: 0; padding: 0 0.5em 0 0.5em; |
269 | vertical-align: top; | 269 | vertical-align: top; |
270 | text-align: right; | 270 | text-align: right; |
271 | border-right: 1px solid gray; | 271 | border-right: 1px solid gray; |
272 | } | 272 | } |
273 | 273 | ||
274 | table.blob pre { | 274 | table.blob pre { |
275 | padding: 0; margin: 0; | 275 | padding: 0; margin: 0; |
276 | } | 276 | } |
277 | 277 | ||
278 | table.blob a.no { | 278 | table.blob a.no { |
279 | color: gray; | 279 | color: gray; |
280 | text-align: right; | 280 | text-align: right; |
281 | text-decoration: none; | 281 | text-decoration: none; |
282 | } | 282 | } |
283 | 283 | ||
284 | table.blob a.no a:hover { | 284 | table.blob a.no a:hover { |
285 | color: black; | 285 | color: black; |
286 | } | 286 | } |
287 | 287 | ||
288 | table.bin-blob { | 288 | table.bin-blob { |
289 | margin-top: 0.5em; | 289 | margin-top: 0.5em; |
290 | border: solid 1px black; | 290 | border: solid 1px black; |
291 | } | 291 | } |
292 | 292 | ||
293 | table.bin-blob th { | 293 | table.bin-blob th { |
294 | font-family: monospace; | 294 | font-family: monospace; |
295 | white-space: pre; | 295 | white-space: pre; |
296 | border: solid 1px #777; | 296 | border: solid 1px #777; |
297 | padding: 0.5em 1em; | 297 | padding: 0.5em 1em; |
298 | } | 298 | } |
299 | 299 | ||
300 | table.bin-blob td { | 300 | table.bin-blob td { |
301 | font-family: monospace; | 301 | font-family: monospace; |
302 | white-space: pre; | 302 | white-space: pre; |
303 | border-left: solid 1px #777; | 303 | border-left: solid 1px #777; |
304 | padding: 0em 1em; | 304 | padding: 0em 1em; |
305 | } | 305 | } |
306 | 306 | ||
307 | table.nowrap td { | 307 | table.nowrap td { |
308 | white-space: nowrap; | 308 | white-space: nowrap; |
309 | } | 309 | } |
310 | 310 | ||
311 | table.commit-info { | 311 | table.commit-info { |
312 | border-collapse: collapse; | 312 | border-collapse: collapse; |
313 | margin-top: 1.5em; | 313 | margin-top: 1.5em; |
314 | } | 314 | } |
315 | 315 | ||
316 | table.commit-info th { | 316 | table.commit-info th { |
317 | text-align: left; | 317 | text-align: left; |
318 | font-weight: normal; | 318 | font-weight: normal; |
319 | padding: 0.1em 1em 0.1em 0.1em; | 319 | padding: 0.1em 1em 0.1em 0.1em; |
320 | vertical-align: top; | 320 | vertical-align: top; |
321 | } | 321 | } |
322 | 322 | ||
323 | table.commit-info td { | 323 | table.commit-info td { |
324 | font-weight: normal; | 324 | font-weight: normal; |
325 | padding: 0.1em 1em 0.1em 0.1em; | 325 | padding: 0.1em 1em 0.1em 0.1em; |
326 | } | 326 | } |
327 | 327 | ||
328 | div.commit-subject { | 328 | div.commit-subject { |
329 | font-weight: bold; | 329 | font-weight: bold; |
330 | font-size: 125%; | 330 | font-size: 125%; |
331 | margin: 1.5em 0em 0.5em 0em; | 331 | margin: 1.5em 0em 0.5em 0em; |
332 | padding: 0em; | 332 | padding: 0em; |
333 | } | 333 | } |
334 | 334 | ||
335 | div.commit-msg { | 335 | div.commit-msg { |
336 | white-space: pre; | 336 | white-space: pre; |
337 | font-family: monospace; | 337 | font-family: monospace; |
338 | } | 338 | } |
339 | 339 | ||
340 | div.notes-header { | 340 | div.notes-header { |
341 | font-weight: bold; | 341 | font-weight: bold; |
342 | padding-top: 1.5em; | 342 | padding-top: 1.5em; |
343 | } | 343 | } |
344 | 344 | ||
345 | div.notes { | 345 | div.notes { |
346 | white-space: pre; | 346 | white-space: pre; |
347 | font-family: monospace; | 347 | font-family: monospace; |
348 | border: solid 1px #ee9; | 348 | border: solid 1px #ee9; |
349 | background-color: #ffd; | 349 | background-color: #ffd; |
350 | padding: 0.3em 2em 0.3em 1em; | 350 | padding: 0.3em 2em 0.3em 1em; |
351 | float: left; | 351 | float: left; |
352 | } | 352 | } |
353 | 353 | ||
354 | div.notes-footer { | 354 | div.notes-footer { |
355 | clear: left; | 355 | clear: left; |
356 | } | 356 | } |
357 | 357 | ||
358 | div.diffstat-header { | 358 | div.diffstat-header { |
359 | font-weight: bold; | 359 | font-weight: bold; |
360 | padding-top: 1.5em; | 360 | padding-top: 1.5em; |
361 | } | 361 | } |
362 | 362 | ||
363 | table.diffstat { | 363 | table.diffstat { |
364 | border-collapse: collapse; | 364 | border-collapse: collapse; |
365 | border: solid 1px #aaa; | 365 | border: solid 1px #aaa; |
366 | background-color: #eee; | 366 | background-color: #eee; |
367 | } | 367 | } |
368 | 368 | ||
369 | table.diffstat th { | 369 | table.diffstat th { |
370 | font-weight: normal; | 370 | font-weight: normal; |
371 | text-align: left; | 371 | text-align: left; |
372 | text-decoration: underline; | 372 | text-decoration: underline; |
373 | padding: 0.1em 1em 0.1em 0.1em; | 373 | padding: 0.1em 1em 0.1em 0.1em; |
374 | font-size: 100%; | 374 | font-size: 100%; |
375 | } | 375 | } |
376 | 376 | ||
377 | table.diffstat td { | 377 | table.diffstat td { |
378 | padding: 0.2em 0.2em 0.1em 0.1em; | 378 | padding: 0.2em 0.2em 0.1em 0.1em; |
379 | font-size: 100%; | 379 | font-size: 100%; |
380 | border: none; | 380 | border: none; |
381 | } | 381 | } |
382 | 382 | ||
383 | table.diffstat td.mode { | 383 | table.diffstat td.mode { |
384 | white-space: nowrap; | 384 | white-space: nowrap; |
385 | } | 385 | } |
386 | 386 | ||
387 | table.diffstat td span.modechange { | 387 | table.diffstat td span.modechange { |
388 | padding-left: 1em; | 388 | padding-left: 1em; |
389 | color: red; | 389 | color: red; |
390 | } | 390 | } |
391 | 391 | ||
392 | table.diffstat td.add a { | 392 | table.diffstat td.add a { |
393 | color: green; | 393 | color: green; |
394 | } | 394 | } |
395 | 395 | ||
396 | table.diffstat td.del a { | 396 | table.diffstat td.del a { |
397 | color: red; | 397 | color: red; |
398 | } | 398 | } |
399 | 399 | ||
400 | table.diffstat td.upd a { | 400 | table.diffstat td.upd a { |
401 | color: blue; | 401 | color: blue; |
402 | } | 402 | } |
403 | 403 | ||
404 | table.diffstat td.graph { | 404 | table.diffstat td.graph { |
405 | width: 500px; | 405 | width: 500px; |
406 | vertical-align: middle; | 406 | vertical-align: middle; |
407 | } | 407 | } |
408 | 408 | ||
409 | table.diffstat td.graph table { | 409 | table.diffstat td.graph table { |
410 | border: none; | 410 | border: none; |
411 | } | 411 | } |
412 | 412 | ||
413 | table.diffstat td.graph td { | 413 | table.diffstat td.graph td { |
414 | padding: 0px; | 414 | padding: 0px; |
415 | border: 0px; | 415 | border: 0px; |
416 | height: 7pt; | 416 | height: 7pt; |
417 | } | 417 | } |
418 | 418 | ||
419 | table.diffstat td.graph td.add { | 419 | table.diffstat td.graph td.add { |
420 | background-color: #5c5; | 420 | background-color: #5c5; |
421 | } | 421 | } |
422 | 422 | ||
423 | table.diffstat td.graph td.rem { | 423 | table.diffstat td.graph td.rem { |
424 | background-color: #c55; | 424 | background-color: #c55; |
425 | } | 425 | } |
426 | 426 | ||
427 | div.diffstat-summary { | 427 | div.diffstat-summary { |
428 | color: #888; | 428 | color: #888; |
429 | padding-top: 0.5em; | 429 | padding-top: 0.5em; |
430 | } | 430 | } |
431 | 431 | ||
432 | table.diff { | 432 | table.diff { |
433 | width: 100%; | 433 | width: 100%; |
434 | } | 434 | } |
435 | 435 | ||
436 | table.diff td { | 436 | table.diff td { |
437 | font-family: monospace; | 437 | font-family: monospace; |
438 | white-space: pre; | 438 | white-space: pre; |
439 | } | 439 | } |
440 | 440 | ||
441 | table.diff td div.head { | 441 | table.diff td div.head { |
442 | font-weight: bold; | 442 | font-weight: bold; |
443 | margin-top: 1em; | 443 | margin-top: 1em; |
444 | color: black; | 444 | color: black; |
445 | } | 445 | } |
446 | 446 | ||
447 | table.diff td div.hunk { | 447 | table.diff td div.hunk { |
448 | color: #009; | 448 | color: #009; |
449 | } | 449 | } |
450 | 450 | ||
451 | table.diff td div.add { | 451 | table.diff td div.add { |
452 | color: green; | 452 | color: green; |
453 | } | 453 | } |
454 | 454 | ||
455 | table.diff td div.del { | 455 | table.diff td div.del { |
456 | color: red; | 456 | color: red; |
457 | } | 457 | } |
458 | 458 | ||
459 | .sha1 { | 459 | .sha1 { |
460 | font-family: monospace; | 460 | font-family: monospace; |
461 | font-size: 90%; | 461 | font-size: 90%; |
462 | } | 462 | } |
463 | 463 | ||
464 | .left { | 464 | .left { |
465 | text-align: left; | 465 | text-align: left; |
466 | } | 466 | } |
467 | 467 | ||
468 | .right { | 468 | .right { |
469 | text-align: right; | 469 | text-align: right; |
470 | } | 470 | } |
471 | 471 | ||
472 | table.list td.reposection { | 472 | table.list td.reposection { |
473 | font-style: italic; | 473 | font-style: italic; |
474 | color: #888; | 474 | color: #888; |
475 | } | 475 | } |
476 | 476 | ||
477 | a.button { | 477 | a.button { |
478 | font-size: 80%; | 478 | font-size: 80%; |
479 | padding: 0em 0.5em; | 479 | padding: 0em 0.5em; |
480 | } | 480 | } |
481 | 481 | ||
482 | a.primary { | 482 | a.primary { |
483 | font-size: 100%; | 483 | font-size: 100%; |
484 | } | 484 | } |
485 | 485 | ||
486 | a.secondary { | 486 | a.secondary { |
487 | font-size: 90%; | 487 | font-size: 90%; |
488 | } | 488 | } |
489 | 489 | ||
490 | td.toplevel-repo { | 490 | td.toplevel-repo { |
491 | 491 | ||
492 | } | 492 | } |
493 | 493 | ||
494 | table.list td.sublevel-repo { | 494 | table.list td.sublevel-repo { |
495 | padding-left: 1.5em; | 495 | padding-left: 1.5em; |
496 | } | 496 | } |
497 | 497 | ||
498 | div.pager { | 498 | div.pager { |
499 | text-align: center; | 499 | text-align: center; |
500 | margin: 1em 0em 0em 0em; | 500 | margin: 1em 0em 0em 0em; |
501 | } | 501 | } |
502 | 502 | ||
503 | div.pager a { | 503 | div.pager a { |
504 | color: #777; | 504 | color: #777; |
505 | margin: 0em 0.5em; | 505 | margin: 0em 0.5em; |
506 | } | 506 | } |
507 | 507 | ||
508 | span.age-mins { | 508 | span.age-mins { |
509 | font-weight: bold; | 509 | font-weight: bold; |
510 | color: #080; | 510 | color: #080; |
511 | } | 511 | } |
512 | 512 | ||
513 | span.age-hours { | 513 | span.age-hours { |
514 | color: #080; | 514 | color: #080; |
515 | } | 515 | } |
516 | 516 | ||
517 | span.age-days { | 517 | span.age-days { |
518 | color: #040; | 518 | color: #040; |
519 | } | 519 | } |
520 | 520 | ||
521 | span.age-weeks { | 521 | span.age-weeks { |
522 | color: #444; | 522 | color: #444; |
523 | } | 523 | } |
524 | 524 | ||
525 | span.age-months { | 525 | span.age-months { |
526 | color: #888; | 526 | color: #888; |
527 | } | 527 | } |
528 | 528 | ||
529 | span.age-years { | 529 | span.age-years { |
530 | color: #bbb; | 530 | color: #bbb; |
531 | } | 531 | } |
532 | div.footer { | 532 | div.footer { |
533 | margin-top: 0.5em; | 533 | margin-top: 0.5em; |
534 | text-align: center; | 534 | text-align: center; |
535 | font-size: 80%; | 535 | font-size: 80%; |
536 | color: #ccc; | 536 | color: #ccc; |
537 | } | 537 | } |
538 | a.branch-deco { | 538 | a.branch-deco { |
539 | margin: 0px 0.5em; | 539 | margin: 0px 0.5em; |
540 | padding: 0px 0.25em; | 540 | padding: 0px 0.25em; |
541 | background-color: #88ff88; | 541 | background-color: #88ff88; |
542 | border: solid 1px #007700; | 542 | border: solid 1px #007700; |
543 | } | 543 | } |
544 | a.tag-deco { | 544 | a.tag-deco { |
545 | margin: 0px 0.5em; | 545 | margin: 0px 0.5em; |
546 | padding: 0px 0.25em; | 546 | padding: 0px 0.25em; |
547 | background-color: #ffff88; | 547 | background-color: #ffff88; |
548 | border: solid 1px #777700; | 548 | border: solid 1px #777700; |
549 | } | 549 | } |
550 | a.remote-deco { | 550 | a.remote-deco { |
551 | margin: 0px 0.5em; | 551 | margin: 0px 0.5em; |
552 | padding: 0px 0.25em; | 552 | padding: 0px 0.25em; |
553 | background-color: #ccccff; | 553 | background-color: #ccccff; |
554 | border: solid 1px #000077; | 554 | border: solid 1px #000077; |
555 | } | 555 | } |
556 | a.deco { | 556 | a.deco { |
557 | margin: 0px 0.5em; | 557 | margin: 0px 0.5em; |
558 | padding: 0px 0.25em; | 558 | padding: 0px 0.25em; |
559 | background-color: #ff8888; | 559 | background-color: #ff8888; |
560 | border: solid 1px #770000; | 560 | border: solid 1px #770000; |
561 | } | 561 | } |
562 | 562 | ||
563 | div.commit-subject a.branch-deco, | 563 | div.commit-subject a.branch-deco, |
564 | div.commit-subject a.tag-deco, | 564 | div.commit-subject a.tag-deco, |
565 | div.commit-subject a.remote-deco, | 565 | div.commit-subject a.remote-deco, |
566 | div.commit-subject a.deco { | 566 | div.commit-subject a.deco { |
567 | margin-left: 1em; | 567 | margin-left: 1em; |
568 | font-size: 75%; | 568 | font-size: 75%; |
569 | } | 569 | } |
570 | 570 | ||
571 | table.stats { | 571 | table.stats { |
572 | border: solid 1px black; | 572 | border: solid 1px black; |
573 | border-collapse: collapse; | 573 | border-collapse: collapse; |
574 | } | 574 | } |
575 | 575 | ||
576 | table.stats th { | 576 | table.stats th { |
577 | text-align: left; | 577 | text-align: left; |
578 | padding: 1px 0.5em; | 578 | padding: 1px 0.5em; |
579 | background-color: #eee; | 579 | background-color: #eee; |
580 | border: solid 1px black; | 580 | border: solid 1px black; |
581 | } | 581 | } |
582 | 582 | ||
583 | table.stats td { | 583 | table.stats td { |
584 | text-align: right; | 584 | text-align: right; |
585 | padding: 1px 0.5em; | 585 | padding: 1px 0.5em; |
586 | border: solid 1px black; | 586 | border: solid 1px black; |
587 | } | 587 | } |
588 | 588 | ||
589 | table.stats td.total { | 589 | table.stats td.total { |
590 | font-weight: bold; | 590 | font-weight: bold; |
591 | text-align: left; | 591 | text-align: left; |
592 | } | 592 | } |
593 | 593 | ||
594 | table.stats td.sum { | 594 | table.stats td.sum { |
595 | color: #c00; | 595 | color: #c00; |
596 | font-weight: bold; | 596 | font-weight: bold; |
597 | /*background-color: #eee; */ | 597 | /*background-color: #eee; */ |
598 | } | 598 | } |
599 | 599 | ||
600 | table.stats td.left { | 600 | table.stats td.left { |
601 | text-align: left; | 601 | text-align: left; |
602 | } | 602 | } |
603 | 603 | ||
604 | table.vgraph { | 604 | table.vgraph { |
605 | border-collapse: separate; | 605 | border-collapse: separate; |
606 | border: solid 1px black; | 606 | border: solid 1px black; |
607 | height: 200px; | 607 | height: 200px; |
608 | } | 608 | } |
609 | 609 | ||
610 | table.vgraph th { | 610 | table.vgraph th { |
611 | background-color: #eee; | 611 | background-color: #eee; |
612 | font-weight: bold; | 612 | font-weight: bold; |
613 | border: solid 1px white; | 613 | border: solid 1px white; |
614 | padding: 1px 0.5em; | 614 | padding: 1px 0.5em; |
615 | } | 615 | } |
616 | 616 | ||
617 | table.vgraph td { | 617 | table.vgraph td { |
618 | vertical-align: bottom; | 618 | vertical-align: bottom; |
619 | padding: 0px 10px; | 619 | padding: 0px 10px; |
620 | } | 620 | } |
621 | 621 | ||
622 | table.vgraph div.bar { | 622 | table.vgraph div.bar { |
623 | background-color: #eee; | 623 | background-color: #eee; |
624 | } | 624 | } |
625 | 625 | ||
626 | table.hgraph { | 626 | table.hgraph { |
627 | border: solid 1px black; | 627 | border: solid 1px black; |
628 | width: 800px; | 628 | width: 800px; |
629 | } | 629 | } |
630 | 630 | ||
631 | table.hgraph th { | 631 | table.hgraph th { |
632 | background-color: #eee; | 632 | background-color: #eee; |
633 | font-weight: bold; | 633 | font-weight: bold; |
634 | border: solid 1px black; | 634 | border: solid 1px black; |
635 | padding: 1px 0.5em; | 635 | padding: 1px 0.5em; |
636 | } | 636 | } |
637 | 637 | ||
638 | table.hgraph td { | 638 | table.hgraph td { |
639 | vertical-align: center; | 639 | vertical-align: center; |
640 | padding: 2px 2px; | 640 | padding: 2px 2px; |
641 | } | 641 | } |
642 | 642 | ||
643 | table.hgraph div.bar { | 643 | table.hgraph div.bar { |
644 | background-color: #eee; | 644 | background-color: #eee; |
645 | height: 1em; | 645 | height: 1em; |
646 | } | 646 | } |
647 | 647 | ||
648 | table.ssdiff { | 648 | table.ssdiff { |
649 | width: 100%; | 649 | width: 100%; |
650 | } | 650 | } |
651 | 651 | ||
652 | table.ssdiff td { | 652 | table.ssdiff td { |
653 | font-size: 75%; | 653 | font-size: 75%; |
654 | font-family: monospace; | 654 | font-family: monospace; |
655 | white-space: pre; | 655 | white-space: pre; |
656 | padding: 1px 4px 1px 4px; | 656 | padding: 1px 4px 1px 4px; |
657 | border-left: solid 1px #aaa; | 657 | border-left: solid 1px #aaa; |
658 | border-right: solid 1px #aaa; | 658 | border-right: solid 1px #aaa; |
659 | } | 659 | } |
660 | 660 | ||
661 | table.ssdiff td.add { | 661 | table.ssdiff td.add { |
662 | color: black; | 662 | color: black; |
663 | background: #cfc; | 663 | background: #cfc; |
664 | min-width: 50%; | 664 | min-width: 50%; |
665 | } | 665 | } |
666 | 666 | ||
667 | table.ssdiff td.add_dark { | 667 | table.ssdiff td.add_dark { |
668 | color: black; | 668 | color: black; |
669 | background: #aca; | 669 | background: #aca; |
670 | min-width: 50%; | 670 | min-width: 50%; |
671 | } | 671 | } |
672 | 672 | ||
673 | table.ssdiff span.add { | 673 | table.ssdiff span.add { |
674 | background: #cfc; | 674 | background: #cfc; |
675 | font-weight: bold; | 675 | font-weight: bold; |
676 | } | 676 | } |
677 | 677 | ||
678 | table.ssdiff td.del { | 678 | table.ssdiff td.del { |
679 | color: black; | 679 | color: black; |
680 | background: #fcc; | 680 | background: #fcc; |
681 | min-width: 50%; | 681 | min-width: 50%; |
682 | } | 682 | } |
683 | 683 | ||
684 | table.ssdiff td.del_dark { | 684 | table.ssdiff td.del_dark { |
685 | color: black; | 685 | color: black; |
686 | background: #caa; | 686 | background: #caa; |
687 | min-width: 50%; | 687 | min-width: 50%; |
688 | } | 688 | } |
689 | 689 | ||
690 | table.ssdiff span.del { | 690 | table.ssdiff span.del { |
691 | background: #fcc; | 691 | background: #fcc; |
692 | font-weight: bold; | 692 | font-weight: bold; |
693 | } | 693 | } |
694 | 694 | ||
695 | table.ssdiff td.changed { | 695 | table.ssdiff td.changed { |
696 | color: black; | 696 | color: black; |
697 | background: #ffc; | 697 | background: #ffc; |
698 | min-width: 50%; | 698 | min-width: 50%; |
699 | } | 699 | } |
700 | 700 | ||
701 | table.ssdiff td.changed_dark { | 701 | table.ssdiff td.changed_dark { |
702 | color: black; | 702 | color: black; |
703 | background: #cca; | 703 | background: #cca; |
704 | min-width: 50%; | 704 | min-width: 50%; |
705 | } | 705 | } |
706 | 706 | ||
707 | table.ssdiff td.lineno { | 707 | table.ssdiff td.lineno { |
708 | color: black; | 708 | color: black; |
709 | background: #eee; | 709 | background: #eee; |
710 | text-align: right; | 710 | text-align: right; |
711 | width: 3em; | 711 | width: 3em; |
712 | min-width: 3em; | 712 | min-width: 3em; |
713 | } | 713 | } |
714 | 714 | ||
715 | table.ssdiff td.hunk { | 715 | table.ssdiff td.hunk { |
716 | color: #black; | 716 | color: #black; |
717 | background: #ccf; | 717 | background: #ccf; |
718 | border-top: solid 1px #aaa; | 718 | border-top: solid 1px #aaa; |
719 | border-bottom: solid 1px #aaa; | 719 | border-bottom: solid 1px #aaa; |
720 | } | 720 | } |
721 | 721 | ||
722 | table.ssdiff td.head { | 722 | table.ssdiff td.head { |
723 | border-top: solid 1px #aaa; | 723 | border-top: solid 1px #aaa; |
724 | border-bottom: solid 1px #aaa; | 724 | border-bottom: solid 1px #aaa; |
725 | } | 725 | } |
726 | 726 | ||
727 | table.ssdiff td.head div.head { | 727 | table.ssdiff td.head div.head { |
728 | font-weight: bold; | 728 | font-weight: bold; |
729 | color: black; | 729 | color: black; |
730 | } | 730 | } |
731 | 731 | ||
732 | table.ssdiff td.foot { | 732 | table.ssdiff td.foot { |
733 | border-top: solid 1px #aaa; | 733 | border-top: solid 1px #aaa; |
734 | border-left: none; | 734 | border-left: none; |
735 | border-right: none; | 735 | border-right: none; |
736 | border-bottom: none; | 736 | border-bottom: none; |
737 | } | 737 | } |
738 | 738 | ||
739 | table.ssdiff td.space { | 739 | table.ssdiff td.space { |
740 | border: none; | 740 | border: none; |
741 | } | 741 | } |
742 | 742 | ||
743 | table.ssdiff td.space div { | 743 | table.ssdiff td.space div { |
744 | min-height: 3em; | 744 | min-height: 3em; |
745 | } \ No newline at end of file | 745 | } |
746 | |||
747 | /* Syntax highlighting */ | ||
748 | table.blob .num { color:#2928ff; } | ||
749 | table.blob .esc { color:#ff00ff; } | ||
750 | table.blob .str { color:#ff0000; } | ||
751 | table.blob .dstr { color:#818100; } | ||
752 | table.blob .slc { color:#838183; font-style:italic; } | ||
753 | table.blob .com { color:#838183; font-style:italic; } | ||
754 | table.blob .dir { color:#008200; } | ||
755 | table.blob .sym { color:#000000; } | ||
756 | table.blob .kwa { color:#000000; font-weight:bold; } | ||
757 | table.blob .kwb { color:#830000; } | ||
758 | table.blob .kwc { color:#000000; font-weight:bold; } | ||
759 | table.blob .kwd { color:#010181; } | ||
diff --git a/cgitrc.5.txt b/cgitrc.5.txt index 75b6584..8e51ca5 100644 --- a/cgitrc.5.txt +++ b/cgitrc.5.txt | |||
@@ -1,570 +1,570 @@ | |||
1 | :man source: cgit | 1 | :man source: cgit |
2 | :man manual: cgit | 2 | :man manual: cgit |
3 | 3 | ||
4 | CGITRC(5) | 4 | CGITRC(5) |
5 | ======== | 5 | ======== |
6 | 6 | ||
7 | 7 | ||
8 | NAME | 8 | NAME |
9 | ---- | 9 | ---- |
10 | cgitrc - runtime configuration for cgit | 10 | cgitrc - runtime configuration for cgit |
11 | 11 | ||
12 | 12 | ||
13 | SYNOPSIS | 13 | SYNOPSIS |
14 | -------- | 14 | -------- |
15 | Cgitrc contains all runtime settings for cgit, including the list of git | 15 | Cgitrc contains all runtime settings for cgit, including the list of git |
16 | repositories, formatted as a line-separated list of NAME=VALUE pairs. Blank | 16 | repositories, formatted as a line-separated list of NAME=VALUE pairs. Blank |
17 | lines, and lines starting with '#', are ignored. | 17 | lines, and lines starting with '#', are ignored. |
18 | 18 | ||
19 | 19 | ||
20 | LOCATION | 20 | LOCATION |
21 | -------- | 21 | -------- |
22 | The default location of cgitrc, defined at compile time, is /etc/cgitrc. At | 22 | The default location of cgitrc, defined at compile time, is /etc/cgitrc. At |
23 | runtime, cgit will consult the environment variable CGIT_CONFIG and, if | 23 | runtime, cgit will consult the environment variable CGIT_CONFIG and, if |
24 | defined, use its value instead. | 24 | defined, use its value instead. |
25 | 25 | ||
26 | 26 | ||
27 | GLOBAL SETTINGS | 27 | GLOBAL SETTINGS |
28 | --------------- | 28 | --------------- |
29 | about-filter:: | 29 | about-filter:: |
30 | Specifies a command which will be invoked to format the content of | 30 | Specifies a command which will be invoked to format the content of |
31 | about pages (both top-level and for each repository). The command will | 31 | about pages (both top-level and for each repository). The command will |
32 | get the content of the about-file on its STDIN, and the STDOUT from the | 32 | get the content of the about-file on its STDIN, and the STDOUT from the |
33 | command will be included verbatim on the about page. Default value: | 33 | command will be included verbatim on the about page. Default value: |
34 | none. | 34 | none. |
35 | 35 | ||
36 | agefile:: | 36 | agefile:: |
37 | Specifies a path, relative to each repository path, which can be used | 37 | Specifies a path, relative to each repository path, which can be used |
38 | to specify the date and time of the youngest commit in the repository. | 38 | to specify the date and time of the youngest commit in the repository. |
39 | The first line in the file is used as input to the "parse_date" | 39 | The first line in the file is used as input to the "parse_date" |
40 | function in libgit. Recommended timestamp-format is "yyyy-mm-dd | 40 | function in libgit. Recommended timestamp-format is "yyyy-mm-dd |
41 | hh:mm:ss". Default value: "info/web/last-modified". | 41 | hh:mm:ss". Default value: "info/web/last-modified". |
42 | 42 | ||
43 | cache-root:: | 43 | cache-root:: |
44 | Path used to store the cgit cache entries. Default value: | 44 | Path used to store the cgit cache entries. Default value: |
45 | "/var/cache/cgit". | 45 | "/var/cache/cgit". |
46 | 46 | ||
47 | cache-dynamic-ttl:: | 47 | cache-dynamic-ttl:: |
48 | Number which specifies the time-to-live, in minutes, for the cached | 48 | Number which specifies the time-to-live, in minutes, for the cached |
49 | version of repository pages accessed without a fixed SHA1. Default | 49 | version of repository pages accessed without a fixed SHA1. Default |
50 | value: "5". | 50 | value: "5". |
51 | 51 | ||
52 | cache-repo-ttl:: | 52 | cache-repo-ttl:: |
53 | Number which specifies the time-to-live, in minutes, for the cached | 53 | Number which specifies the time-to-live, in minutes, for the cached |
54 | version of the repository summary page. Default value: "5". | 54 | version of the repository summary page. Default value: "5". |
55 | 55 | ||
56 | cache-root-ttl:: | 56 | cache-root-ttl:: |
57 | Number which specifies the time-to-live, in minutes, for the cached | 57 | Number which specifies the time-to-live, in minutes, for the cached |
58 | version of the repository index page. Default value: "5". | 58 | version of the repository index page. Default value: "5". |
59 | 59 | ||
60 | cache-scanrc-ttl:: | 60 | cache-scanrc-ttl:: |
61 | Number which specifies the time-to-live, in minutes, for the result | 61 | Number which specifies the time-to-live, in minutes, for the result |
62 | of scanning a path for git repositories. Default value: "15". | 62 | of scanning a path for git repositories. Default value: "15". |
63 | 63 | ||
64 | cache-size:: | 64 | cache-size:: |
65 | The maximum number of entries in the cgit cache. Default value: "0" | 65 | The maximum number of entries in the cgit cache. Default value: "0" |
66 | (i.e. caching is disabled). | 66 | (i.e. caching is disabled). |
67 | 67 | ||
68 | cache-static-ttl:: | 68 | cache-static-ttl:: |
69 | Number which specifies the time-to-live, in minutes, for the cached | 69 | Number which specifies the time-to-live, in minutes, for the cached |
70 | version of repository pages accessed with a fixed SHA1. Default value: | 70 | version of repository pages accessed with a fixed SHA1. Default value: |
71 | "5". | 71 | "5". |
72 | 72 | ||
73 | clone-prefix:: | 73 | clone-prefix:: |
74 | Space-separated list of common prefixes which, when combined with a | 74 | Space-separated list of common prefixes which, when combined with a |
75 | repository url, generates valid clone urls for the repository. This | 75 | repository url, generates valid clone urls for the repository. This |
76 | setting is only used if `repo.clone-url` is unspecified. Default value: | 76 | setting is only used if `repo.clone-url` is unspecified. Default value: |
77 | none. | 77 | none. |
78 | 78 | ||
79 | commit-filter:: | 79 | commit-filter:: |
80 | Specifies a command which will be invoked to format commit messages. | 80 | Specifies a command which will be invoked to format commit messages. |
81 | The command will get the message on its STDIN, and the STDOUT from the | 81 | The command will get the message on its STDIN, and the STDOUT from the |
82 | command will be included verbatim as the commit message, i.e. this can | 82 | command will be included verbatim as the commit message, i.e. this can |
83 | be used to implement bugtracker integration. Default value: none. | 83 | be used to implement bugtracker integration. Default value: none. |
84 | 84 | ||
85 | css:: | 85 | css:: |
86 | Url which specifies the css document to include in all cgit pages. | 86 | Url which specifies the css document to include in all cgit pages. |
87 | Default value: "/cgit.css". | 87 | Default value: "/cgit.css". |
88 | 88 | ||
89 | embedded:: | 89 | embedded:: |
90 | Flag which, when set to "1", will make cgit generate a html fragment | 90 | Flag which, when set to "1", will make cgit generate a html fragment |
91 | suitable for embedding in other html pages. Default value: none. See | 91 | suitable for embedding in other html pages. Default value: none. See |
92 | also: "noheader". | 92 | also: "noheader". |
93 | 93 | ||
94 | enable-filter-overrides:: | 94 | enable-filter-overrides:: |
95 | Flag which, when set to "1", allows all filter settings to be | 95 | Flag which, when set to "1", allows all filter settings to be |
96 | overridden in repository-specific cgitrc files. Default value: none. | 96 | overridden in repository-specific cgitrc files. Default value: none. |
97 | 97 | ||
98 | enable-gitweb-owner:: | 98 | enable-gitweb-owner:: |
99 | If set to "1" and scan-path is enabled, we first check each repository | 99 | If set to "1" and scan-path is enabled, we first check each repository |
100 | for the git config value "gitweb.owner" to determine the owner. | 100 | for the git config value "gitweb.owner" to determine the owner. |
101 | Default value: "1". See also: scan-path. | 101 | Default value: "1". See also: scan-path. |
102 | 102 | ||
103 | enable-index-links:: | 103 | enable-index-links:: |
104 | Flag which, when set to "1", will make cgit generate extra links for | 104 | Flag which, when set to "1", will make cgit generate extra links for |
105 | each repo in the repository index (specifically, to the "summary", | 105 | each repo in the repository index (specifically, to the "summary", |
106 | "commit" and "tree" pages). Default value: "0". | 106 | "commit" and "tree" pages). Default value: "0". |
107 | 107 | ||
108 | enable-log-filecount:: | 108 | enable-log-filecount:: |
109 | Flag which, when set to "1", will make cgit print the number of | 109 | Flag which, when set to "1", will make cgit print the number of |
110 | modified files for each commit on the repository log page. Default | 110 | modified files for each commit on the repository log page. Default |
111 | value: "0". | 111 | value: "0". |
112 | 112 | ||
113 | enable-log-linecount:: | 113 | enable-log-linecount:: |
114 | Flag which, when set to "1", will make cgit print the number of added | 114 | Flag which, when set to "1", will make cgit print the number of added |
115 | and removed lines for each commit on the repository log page. Default | 115 | and removed lines for each commit on the repository log page. Default |
116 | value: "0". | 116 | value: "0". |
117 | 117 | ||
118 | enable-remote-branches:: | 118 | enable-remote-branches:: |
119 | Flag which, when set to "1", will make cgit display remote branches | 119 | Flag which, when set to "1", will make cgit display remote branches |
120 | in the summary and refs views. Default value: "0". See also: | 120 | in the summary and refs views. Default value: "0". See also: |
121 | "repo.enable-remote-branches". | 121 | "repo.enable-remote-branches". |
122 | 122 | ||
123 | enable-subject-links:: | 123 | enable-subject-links:: |
124 | Flag which, when set to "1", will make cgit use the subject of the | 124 | Flag which, when set to "1", will make cgit use the subject of the |
125 | parent commit as link text when generating links to parent commits | 125 | parent commit as link text when generating links to parent commits |
126 | in commit view. Default value: "0". See also: | 126 | in commit view. Default value: "0". See also: |
127 | "repo.enable-subject-links". | 127 | "repo.enable-subject-links". |
128 | 128 | ||
129 | enable-tree-linenumbers:: | 129 | enable-tree-linenumbers:: |
130 | Flag which, when set to "1", will make cgit generate linenumber links | 130 | Flag which, when set to "1", will make cgit generate linenumber links |
131 | for plaintext blobs printed in the tree view. Default value: "1". | 131 | for plaintext blobs printed in the tree view. Default value: "1". |
132 | 132 | ||
133 | favicon:: | 133 | favicon:: |
134 | Url used as link to a shortcut icon for cgit. If specified, it is | 134 | Url used as link to a shortcut icon for cgit. If specified, it is |
135 | suggested to use the value "/favicon.ico" since certain browsers will | 135 | suggested to use the value "/favicon.ico" since certain browsers will |
136 | ignore other values. Default value: none. | 136 | ignore other values. Default value: none. |
137 | 137 | ||
138 | footer:: | 138 | footer:: |
139 | The content of the file specified with this option will be included | 139 | The content of the file specified with this option will be included |
140 | verbatim at the bottom of all pages (i.e. it replaces the standard | 140 | verbatim at the bottom of all pages (i.e. it replaces the standard |
141 | "generated by..." message. Default value: none. | 141 | "generated by..." message. Default value: none. |
142 | 142 | ||
143 | head-include:: | 143 | head-include:: |
144 | The content of the file specified with this option will be included | 144 | The content of the file specified with this option will be included |
145 | verbatim in the html HEAD section on all pages. Default value: none. | 145 | verbatim in the html HEAD section on all pages. Default value: none. |
146 | 146 | ||
147 | header:: | 147 | header:: |
148 | The content of the file specified with this option will be included | 148 | The content of the file specified with this option will be included |
149 | verbatim at the top of all pages. Default value: none. | 149 | verbatim at the top of all pages. Default value: none. |
150 | 150 | ||
151 | include:: | 151 | include:: |
152 | Name of a configfile to include before the rest of the current config- | 152 | Name of a configfile to include before the rest of the current config- |
153 | file is parsed. Default value: none. | 153 | file is parsed. Default value: none. |
154 | 154 | ||
155 | index-header:: | 155 | index-header:: |
156 | The content of the file specified with this option will be included | 156 | The content of the file specified with this option will be included |
157 | verbatim above the repository index. This setting is deprecated, and | 157 | verbatim above the repository index. This setting is deprecated, and |
158 | will not be supported by cgit-1.0 (use root-readme instead). Default | 158 | will not be supported by cgit-1.0 (use root-readme instead). Default |
159 | value: none. | 159 | value: none. |
160 | 160 | ||
161 | index-info:: | 161 | index-info:: |
162 | The content of the file specified with this option will be included | 162 | The content of the file specified with this option will be included |
163 | verbatim below the heading on the repository index page. This setting | 163 | verbatim below the heading on the repository index page. This setting |
164 | is deprecated, and will not be supported by cgit-1.0 (use root-desc | 164 | is deprecated, and will not be supported by cgit-1.0 (use root-desc |
165 | instead). Default value: none. | 165 | instead). Default value: none. |
166 | 166 | ||
167 | local-time:: | 167 | local-time:: |
168 | Flag which, if set to "1", makes cgit print commit and tag times in the | 168 | Flag which, if set to "1", makes cgit print commit and tag times in the |
169 | servers timezone. Default value: "0". | 169 | servers timezone. Default value: "0". |
170 | 170 | ||
171 | logo:: | 171 | logo:: |
172 | Url which specifies the source of an image which will be used as a logo | 172 | Url which specifies the source of an image which will be used as a logo |
173 | on all cgit pages. Default value: "/cgit.png". | 173 | on all cgit pages. Default value: "/cgit.png". |
174 | 174 | ||
175 | logo-link:: | 175 | logo-link:: |
176 | Url loaded when clicking on the cgit logo image. If unspecified the | 176 | Url loaded when clicking on the cgit logo image. If unspecified the |
177 | calculated url of the repository index page will be used. Default | 177 | calculated url of the repository index page will be used. Default |
178 | value: none. | 178 | value: none. |
179 | 179 | ||
180 | max-atom-items:: | 180 | max-atom-items:: |
181 | Specifies the number of items to display in atom feeds view. Default | 181 | Specifies the number of items to display in atom feeds view. Default |
182 | value: "10". | 182 | value: "10". |
183 | 183 | ||
184 | max-commit-count:: | 184 | max-commit-count:: |
185 | Specifies the number of entries to list per page in "log" view. Default | 185 | Specifies the number of entries to list per page in "log" view. Default |
186 | value: "50". | 186 | value: "50". |
187 | 187 | ||
188 | max-message-length:: | 188 | max-message-length:: |
189 | Specifies the maximum number of commit message characters to display in | 189 | Specifies the maximum number of commit message characters to display in |
190 | "log" view. Default value: "80". | 190 | "log" view. Default value: "80". |
191 | 191 | ||
192 | max-repo-count:: | 192 | max-repo-count:: |
193 | Specifies the number of entries to list per page on therepository | 193 | Specifies the number of entries to list per page on therepository |
194 | index page. Default value: "50". | 194 | index page. Default value: "50". |
195 | 195 | ||
196 | max-repodesc-length:: | 196 | max-repodesc-length:: |
197 | Specifies the maximum number of repo description characters to display | 197 | Specifies the maximum number of repo description characters to display |
198 | on the repository index page. Default value: "80". | 198 | on the repository index page. Default value: "80". |
199 | 199 | ||
200 | max-blob-size:: | 200 | max-blob-size:: |
201 | Specifies the maximum size of a blob to display HTML for in KBytes. | 201 | Specifies the maximum size of a blob to display HTML for in KBytes. |
202 | Default value: "0" (limit disabled). | 202 | Default value: "0" (limit disabled). |
203 | 203 | ||
204 | max-stats:: | 204 | max-stats:: |
205 | Set the default maximum statistics period. Valid values are "week", | 205 | Set the default maximum statistics period. Valid values are "week", |
206 | "month", "quarter" and "year". If unspecified, statistics are | 206 | "month", "quarter" and "year". If unspecified, statistics are |
207 | disabled. Default value: none. See also: "repo.max-stats". | 207 | disabled. Default value: none. See also: "repo.max-stats". |
208 | 208 | ||
209 | mimetype.<ext>:: | 209 | mimetype.<ext>:: |
210 | Set the mimetype for the specified filename extension. This is used | 210 | Set the mimetype for the specified filename extension. This is used |
211 | by the `plain` command when returning blob content. | 211 | by the `plain` command when returning blob content. |
212 | 212 | ||
213 | module-link:: | 213 | module-link:: |
214 | Text which will be used as the formatstring for a hyperlink when a | 214 | Text which will be used as the formatstring for a hyperlink when a |
215 | submodule is printed in a directory listing. The arguments for the | 215 | submodule is printed in a directory listing. The arguments for the |
216 | formatstring are the path and SHA1 of the submodule commit. Default | 216 | formatstring are the path and SHA1 of the submodule commit. Default |
217 | value: "./?repo=%s&page=commit&id=%s" | 217 | value: "./?repo=%s&page=commit&id=%s" |
218 | 218 | ||
219 | nocache:: | 219 | nocache:: |
220 | If set to the value "1" caching will be disabled. This settings is | 220 | If set to the value "1" caching will be disabled. This settings is |
221 | deprecated, and will not be honored starting with cgit-1.0. Default | 221 | deprecated, and will not be honored starting with cgit-1.0. Default |
222 | value: "0". | 222 | value: "0". |
223 | 223 | ||
224 | noplainemail:: | 224 | noplainemail:: |
225 | If set to "1" showing full author email adresses will be disabled. | 225 | If set to "1" showing full author email adresses will be disabled. |
226 | Default value: "0". | 226 | Default value: "0". |
227 | 227 | ||
228 | noheader:: | 228 | noheader:: |
229 | Flag which, when set to "1", will make cgit omit the standard header | 229 | Flag which, when set to "1", will make cgit omit the standard header |
230 | on all pages. Default value: none. See also: "embedded". | 230 | on all pages. Default value: none. See also: "embedded". |
231 | 231 | ||
232 | project-list:: | 232 | project-list:: |
233 | A list of subdirectories inside of scan-path, relative to it, that | 233 | A list of subdirectories inside of scan-path, relative to it, that |
234 | should loaded as git repositories. This must be defined prior to | 234 | should loaded as git repositories. This must be defined prior to |
235 | scan-path. Default value: none. See also: scan-path. | 235 | scan-path. Default value: none. See also: scan-path. |
236 | 236 | ||
237 | readme:: | 237 | readme:: |
238 | Text which will be used as default value for "repo.readme". Default | 238 | Text which will be used as default value for "repo.readme". Default |
239 | value: none. | 239 | value: none. |
240 | 240 | ||
241 | remove-suffix:: | 241 | remove-suffix:: |
242 | If set to "1" and scan-path is enabled, if any repositories are found | 242 | If set to "1" and scan-path is enabled, if any repositories are found |
243 | with a suffix of ".git", this suffix will be removed for the url and | 243 | with a suffix of ".git", this suffix will be removed for the url and |
244 | name. Default value: "0". See also: scan-path. | 244 | name. Default value: "0". See also: scan-path. |
245 | 245 | ||
246 | renamelimit:: | 246 | renamelimit:: |
247 | Maximum number of files to consider when detecting renames. The value | 247 | Maximum number of files to consider when detecting renames. The value |
248 | "-1" uses the compiletime value in git (for further info, look at | 248 | "-1" uses the compiletime value in git (for further info, look at |
249 | `man git-diff`). Default value: "-1". | 249 | `man git-diff`). Default value: "-1". |
250 | 250 | ||
251 | repo.group:: | 251 | repo.group:: |
252 | Legacy alias for "section". This option is deprecated and will not be | 252 | Legacy alias for "section". This option is deprecated and will not be |
253 | supported in cgit-1.0. | 253 | supported in cgit-1.0. |
254 | 254 | ||
255 | robots:: | 255 | robots:: |
256 | Text used as content for the "robots" meta-tag. Default value: | 256 | Text used as content for the "robots" meta-tag. Default value: |
257 | "index, nofollow". | 257 | "index, nofollow". |
258 | 258 | ||
259 | root-desc:: | 259 | root-desc:: |
260 | Text printed below the heading on the repository index page. Default | 260 | Text printed below the heading on the repository index page. Default |
261 | value: "a fast webinterface for the git dscm". | 261 | value: "a fast webinterface for the git dscm". |
262 | 262 | ||
263 | root-readme:: | 263 | root-readme:: |
264 | The content of the file specified with this option will be included | 264 | The content of the file specified with this option will be included |
265 | verbatim below the "about" link on the repository index page. Default | 265 | verbatim below the "about" link on the repository index page. Default |
266 | value: none. | 266 | value: none. |
267 | 267 | ||
268 | root-title:: | 268 | root-title:: |
269 | Text printed as heading on the repository index page. Default value: | 269 | Text printed as heading on the repository index page. Default value: |
270 | "Git Repository Browser". | 270 | "Git Repository Browser". |
271 | 271 | ||
272 | scan-path:: | 272 | scan-path:: |
273 | A path which will be scanned for repositories. If caching is enabled, | 273 | A path which will be scanned for repositories. If caching is enabled, |
274 | the result will be cached as a cgitrc include-file in the cache | 274 | the result will be cached as a cgitrc include-file in the cache |
275 | directory. If project-list has been defined prior to scan-path, | 275 | directory. If project-list has been defined prior to scan-path, |
276 | scan-path loads only the directories listed in the file pointed to by | 276 | scan-path loads only the directories listed in the file pointed to by |
277 | project-list. Default value: none. See also: cache-scanrc-ttl, | 277 | project-list. Default value: none. See also: cache-scanrc-ttl, |
278 | project-list. | 278 | project-list. |
279 | 279 | ||
280 | section:: | 280 | section:: |
281 | The name of the current repository section - all repositories defined | 281 | The name of the current repository section - all repositories defined |
282 | after this option will inherit the current section name. Default value: | 282 | after this option will inherit the current section name. Default value: |
283 | none. | 283 | none. |
284 | 284 | ||
285 | section-from-path:: | 285 | section-from-path:: |
286 | A number which, if specified before scan-path, specifies how many | 286 | A number which, if specified before scan-path, specifies how many |
287 | path elements from each repo path to use as a default section name. | 287 | path elements from each repo path to use as a default section name. |
288 | If negative, cgit will discard the specified number of path elements | 288 | If negative, cgit will discard the specified number of path elements |
289 | above the repo directory. Default value: 0. | 289 | above the repo directory. Default value: 0. |
290 | 290 | ||
291 | side-by-side-diffs:: | 291 | side-by-side-diffs:: |
292 | If set to "1" shows side-by-side diffs instead of unidiffs per | 292 | If set to "1" shows side-by-side diffs instead of unidiffs per |
293 | default. Default value: "0". | 293 | default. Default value: "0". |
294 | 294 | ||
295 | snapshots:: | 295 | snapshots:: |
296 | Text which specifies the default set of snapshot formats generated by | 296 | Text which specifies the default set of snapshot formats generated by |
297 | cgit. The value is a space-separated list of zero or more of the | 297 | cgit. The value is a space-separated list of zero or more of the |
298 | values "tar", "tar.gz", "tar.bz2" and "zip". Default value: none. | 298 | values "tar", "tar.gz", "tar.bz2" and "zip". Default value: none. |
299 | 299 | ||
300 | source-filter:: | 300 | source-filter:: |
301 | Specifies a command which will be invoked to format plaintext blobs | 301 | Specifies a command which will be invoked to format plaintext blobs |
302 | in the tree view. The command will get the blob content on its STDIN | 302 | in the tree view. The command will get the blob content on its STDIN |
303 | and the name of the blob as its only command line argument. The STDOUT | 303 | and the name of the blob as its only command line argument. The STDOUT |
304 | from the command will be included verbatim as the blob contents, i.e. | 304 | from the command will be included verbatim as the blob contents, i.e. |
305 | this can be used to implement e.g. syntax highlighting. Default value: | 305 | this can be used to implement e.g. syntax highlighting. Default value: |
306 | none. | 306 | none. |
307 | 307 | ||
308 | summary-branches:: | 308 | summary-branches:: |
309 | Specifies the number of branches to display in the repository "summary" | 309 | Specifies the number of branches to display in the repository "summary" |
310 | view. Default value: "10". | 310 | view. Default value: "10". |
311 | 311 | ||
312 | summary-log:: | 312 | summary-log:: |
313 | Specifies the number of log entries to display in the repository | 313 | Specifies the number of log entries to display in the repository |
314 | "summary" view. Default value: "10". | 314 | "summary" view. Default value: "10". |
315 | 315 | ||
316 | summary-tags:: | 316 | summary-tags:: |
317 | Specifies the number of tags to display in the repository "summary" | 317 | Specifies the number of tags to display in the repository "summary" |
318 | view. Default value: "10". | 318 | view. Default value: "10". |
319 | 319 | ||
320 | strict-export:: | 320 | strict-export:: |
321 | Filename which, if specified, needs to be present within the repository | 321 | Filename which, if specified, needs to be present within the repository |
322 | for cgit to allow access to that repository. This can be used to emulate | 322 | for cgit to allow access to that repository. This can be used to emulate |
323 | gitweb's EXPORT_OK and STRICT_EXPORT functionality and limit cgit's | 323 | gitweb's EXPORT_OK and STRICT_EXPORT functionality and limit cgit's |
324 | repositories to match those exported by git-daemon. This option MUST come | 324 | repositories to match those exported by git-daemon. This option MUST come |
325 | before 'scan-path'. | 325 | before 'scan-path'. |
326 | 326 | ||
327 | virtual-root:: | 327 | virtual-root:: |
328 | Url which, if specified, will be used as root for all cgit links. It | 328 | Url which, if specified, will be used as root for all cgit links. It |
329 | will also cause cgit to generate 'virtual urls', i.e. urls like | 329 | will also cause cgit to generate 'virtual urls', i.e. urls like |
330 | '/cgit/tree/README' as opposed to '?r=cgit&p=tree&path=README'. Default | 330 | '/cgit/tree/README' as opposed to '?r=cgit&p=tree&path=README'. Default |
331 | value: none. | 331 | value: none. |
332 | NOTE: cgit has recently learned how to use PATH_INFO to achieve the | 332 | NOTE: cgit has recently learned how to use PATH_INFO to achieve the |
333 | same kind of virtual urls, so this option will probably be deprecated. | 333 | same kind of virtual urls, so this option will probably be deprecated. |
334 | 334 | ||
335 | REPOSITORY SETTINGS | 335 | REPOSITORY SETTINGS |
336 | ------------------- | 336 | ------------------- |
337 | repo.about-filter:: | 337 | repo.about-filter:: |
338 | Override the default about-filter. Default value: none. See also: | 338 | Override the default about-filter. Default value: none. See also: |
339 | "enable-filter-overrides". | 339 | "enable-filter-overrides". |
340 | 340 | ||
341 | repo.clone-url:: | 341 | repo.clone-url:: |
342 | A list of space-separated urls which can be used to clone this repo. | 342 | A list of space-separated urls which can be used to clone this repo. |
343 | Default value: none. | 343 | Default value: none. |
344 | 344 | ||
345 | repo.commit-filter:: | 345 | repo.commit-filter:: |
346 | Override the default commit-filter. Default value: none. See also: | 346 | Override the default commit-filter. Default value: none. See also: |
347 | "enable-filter-overrides". | 347 | "enable-filter-overrides". |
348 | 348 | ||
349 | repo.defbranch:: | 349 | repo.defbranch:: |
350 | The name of the default branch for this repository. If no such branch | 350 | The name of the default branch for this repository. If no such branch |
351 | exists in the repository, the first branch name (when sorted) is used | 351 | exists in the repository, the first branch name (when sorted) is used |
352 | as default instead. Default value: "master". | 352 | as default instead. Default value: "master". |
353 | 353 | ||
354 | repo.desc:: | 354 | repo.desc:: |
355 | The value to show as repository description. Default value: none. | 355 | The value to show as repository description. Default value: none. |
356 | 356 | ||
357 | repo.enable-log-filecount:: | 357 | repo.enable-log-filecount:: |
358 | A flag which can be used to disable the global setting | 358 | A flag which can be used to disable the global setting |
359 | `enable-log-filecount'. Default value: none. | 359 | `enable-log-filecount'. Default value: none. |
360 | 360 | ||
361 | repo.enable-log-linecount:: | 361 | repo.enable-log-linecount:: |
362 | A flag which can be used to disable the global setting | 362 | A flag which can be used to disable the global setting |
363 | `enable-log-linecount'. Default value: none. | 363 | `enable-log-linecount'. Default value: none. |
364 | 364 | ||
365 | repo.enable-remote-branches:: | 365 | repo.enable-remote-branches:: |
366 | Flag which, when set to "1", will make cgit display remote branches | 366 | Flag which, when set to "1", will make cgit display remote branches |
367 | in the summary and refs views. Default value: <enable-remote-branches>. | 367 | in the summary and refs views. Default value: <enable-remote-branches>. |
368 | 368 | ||
369 | repo.enable-subject-links:: | 369 | repo.enable-subject-links:: |
370 | A flag which can be used to override the global setting | 370 | A flag which can be used to override the global setting |
371 | `enable-subject-links'. Default value: none. | 371 | `enable-subject-links'. Default value: none. |
372 | 372 | ||
373 | repo.max-stats:: | 373 | repo.max-stats:: |
374 | Override the default maximum statistics period. Valid values are equal | 374 | Override the default maximum statistics period. Valid values are equal |
375 | to the values specified for the global "max-stats" setting. Default | 375 | to the values specified for the global "max-stats" setting. Default |
376 | value: none. | 376 | value: none. |
377 | 377 | ||
378 | repo.name:: | 378 | repo.name:: |
379 | The value to show as repository name. Default value: <repo.url>. | 379 | The value to show as repository name. Default value: <repo.url>. |
380 | 380 | ||
381 | repo.owner:: | 381 | repo.owner:: |
382 | A value used to identify the owner of the repository. Default value: | 382 | A value used to identify the owner of the repository. Default value: |
383 | none. | 383 | none. |
384 | 384 | ||
385 | repo.path:: | 385 | repo.path:: |
386 | An absolute path to the repository directory. For non-bare repositories | 386 | An absolute path to the repository directory. For non-bare repositories |
387 | this is the .git-directory. Default value: none. | 387 | this is the .git-directory. Default value: none. |
388 | 388 | ||
389 | repo.readme:: | 389 | repo.readme:: |
390 | A path (relative to <repo.path>) which specifies a file to include | 390 | A path (relative to <repo.path>) which specifies a file to include |
391 | verbatim as the "About" page for this repo. You may also specify a | 391 | verbatim as the "About" page for this repo. You may also specify a |
392 | git refspec by head or by hash by prepending the refspec followed by | 392 | git refspec by head or by hash by prepending the refspec followed by |
393 | a colon. For example, "master:docs/readme.mkd" Default value: <readme>. | 393 | a colon. For example, "master:docs/readme.mkd" Default value: <readme>. |
394 | 394 | ||
395 | repo.snapshots:: | 395 | repo.snapshots:: |
396 | A mask of allowed snapshot-formats for this repo, restricted by the | 396 | A mask of allowed snapshot-formats for this repo, restricted by the |
397 | "snapshots" global setting. Default value: <snapshots>. | 397 | "snapshots" global setting. Default value: <snapshots>. |
398 | 398 | ||
399 | repo.section:: | 399 | repo.section:: |
400 | Override the current section name for this repository. Default value: | 400 | Override the current section name for this repository. Default value: |
401 | none. | 401 | none. |
402 | 402 | ||
403 | repo.source-filter:: | 403 | repo.source-filter:: |
404 | Override the default source-filter. Default value: none. See also: | 404 | Override the default source-filter. Default value: none. See also: |
405 | "enable-filter-overrides". | 405 | "enable-filter-overrides". |
406 | 406 | ||
407 | repo.url:: | 407 | repo.url:: |
408 | The relative url used to access the repository. This must be the first | 408 | The relative url used to access the repository. This must be the first |
409 | setting specified for each repo. Default value: none. | 409 | setting specified for each repo. Default value: none. |
410 | 410 | ||
411 | 411 | ||
412 | REPOSITORY-SPECIFIC CGITRC FILE | 412 | REPOSITORY-SPECIFIC CGITRC FILE |
413 | ------------------------------- | 413 | ------------------------------- |
414 | When the option "scan-path" is used to auto-discover git repositories, cgit | 414 | When the option "scan-path" is used to auto-discover git repositories, cgit |
415 | will try to parse the file "cgitrc" within any found repository. Such a | 415 | will try to parse the file "cgitrc" within any found repository. Such a |
416 | repo-specific config file may contain any of the repo-specific options | 416 | repo-specific config file may contain any of the repo-specific options |
417 | described above, except "repo.url" and "repo.path". Additionally, the "filter" | 417 | described above, except "repo.url" and "repo.path". Additionally, the "filter" |
418 | options are only acknowledged in repo-specific config files when | 418 | options are only acknowledged in repo-specific config files when |
419 | "enable-filter-overrides" is set to "1". | 419 | "enable-filter-overrides" is set to "1". |
420 | 420 | ||
421 | Note: the "repo." prefix is dropped from the option names in repo-specific | 421 | Note: the "repo." prefix is dropped from the option names in repo-specific |
422 | config files, e.g. "repo.desc" becomes "desc". | 422 | config files, e.g. "repo.desc" becomes "desc". |
423 | 423 | ||
424 | 424 | ||
425 | EXAMPLE CGITRC FILE | 425 | EXAMPLE CGITRC FILE |
426 | ------------------- | 426 | ------------------- |
427 | 427 | ||
428 | .... | 428 | .... |
429 | # Enable caching of up to 1000 output entriess | 429 | # Enable caching of up to 1000 output entriess |
430 | cache-size=1000 | 430 | cache-size=1000 |
431 | 431 | ||
432 | 432 | ||
433 | # Specify some default clone prefixes | 433 | # Specify some default clone prefixes |
434 | clone-prefix=git://foobar.com ssh://foobar.com/pub/git http://foobar.com/git | 434 | clone-prefix=git://example.com ssh://example.com/pub/git http://example.com/git |
435 | 435 | ||
436 | # Specify the css url | 436 | # Specify the css url |
437 | css=/css/cgit.css | 437 | css=/css/cgit.css |
438 | 438 | ||
439 | 439 | ||
440 | # Show extra links for each repository on the index page | 440 | # Show extra links for each repository on the index page |
441 | enable-index-links=1 | 441 | enable-index-links=1 |
442 | 442 | ||
443 | 443 | ||
444 | # Show number of affected files per commit on the log pages | 444 | # Show number of affected files per commit on the log pages |
445 | enable-log-filecount=1 | 445 | enable-log-filecount=1 |
446 | 446 | ||
447 | 447 | ||
448 | # Show number of added/removed lines per commit on the log pages | 448 | # Show number of added/removed lines per commit on the log pages |
449 | enable-log-linecount=1 | 449 | enable-log-linecount=1 |
450 | 450 | ||
451 | 451 | ||
452 | # Add a cgit favicon | 452 | # Add a cgit favicon |
453 | favicon=/favicon.ico | 453 | favicon=/favicon.ico |
454 | 454 | ||
455 | 455 | ||
456 | # Use a custom logo | 456 | # Use a custom logo |
457 | logo=/img/mylogo.png | 457 | logo=/img/mylogo.png |
458 | 458 | ||
459 | 459 | ||
460 | # Enable statistics per week, month and quarter | 460 | # Enable statistics per week, month and quarter |
461 | max-stats=quarter | 461 | max-stats=quarter |
462 | 462 | ||
463 | 463 | ||
464 | # Set the title and heading of the repository index page | 464 | # Set the title and heading of the repository index page |
465 | root-title=foobar.com git repositories | 465 | root-title=example.com git repositories |
466 | 466 | ||
467 | 467 | ||
468 | # Set a subheading for the repository index page | 468 | # Set a subheading for the repository index page |
469 | root-desc=tracking the foobar development | 469 | root-desc=tracking the foobar development |
470 | 470 | ||
471 | 471 | ||
472 | # Include some more info about foobar.com on the index page | 472 | # Include some more info about example.com on the index page |
473 | root-readme=/var/www/htdocs/about.html | 473 | root-readme=/var/www/htdocs/about.html |
474 | 474 | ||
475 | 475 | ||
476 | # Allow download of tar.gz, tar.bz2 and zip-files | 476 | # Allow download of tar.gz, tar.bz2 and zip-files |
477 | snapshots=tar.gz tar.bz2 zip | 477 | snapshots=tar.gz tar.bz2 zip |
478 | 478 | ||
479 | 479 | ||
480 | ## | 480 | ## |
481 | ## List of common mimetypes | 481 | ## List of common mimetypes |
482 | ## | 482 | ## |
483 | 483 | ||
484 | mimetype.gif=image/gif | 484 | mimetype.gif=image/gif |
485 | mimetype.html=text/html | 485 | mimetype.html=text/html |
486 | mimetype.jpg=image/jpeg | 486 | mimetype.jpg=image/jpeg |
487 | mimetype.jpeg=image/jpeg | 487 | mimetype.jpeg=image/jpeg |
488 | mimetype.pdf=application/pdf | 488 | mimetype.pdf=application/pdf |
489 | mimetype.png=image/png | 489 | mimetype.png=image/png |
490 | mimetype.svg=image/svg+xml | 490 | mimetype.svg=image/svg+xml |
491 | 491 | ||
492 | 492 | ||
493 | ## | 493 | ## |
494 | ## List of repositories. | 494 | ## List of repositories. |
495 | ## PS: Any repositories listed when section is unset will not be | 495 | ## PS: Any repositories listed when section is unset will not be |
496 | ## displayed under a section heading | 496 | ## displayed under a section heading |
497 | ## PPS: This list could be kept in a different file (e.g. '/etc/cgitrepos') | 497 | ## PPS: This list could be kept in a different file (e.g. '/etc/cgitrepos') |
498 | ## and included like this: | 498 | ## and included like this: |
499 | ## include=/etc/cgitrepos | 499 | ## include=/etc/cgitrepos |
500 | ## | 500 | ## |
501 | 501 | ||
502 | 502 | ||
503 | repo.url=foo | 503 | repo.url=foo |
504 | repo.path=/pub/git/foo.git | 504 | repo.path=/pub/git/foo.git |
505 | repo.desc=the master foo repository | 505 | repo.desc=the master foo repository |
506 | repo.owner=fooman@foobar.com | 506 | repo.owner=fooman@example.com |
507 | repo.readme=info/web/about.html | 507 | repo.readme=info/web/about.html |
508 | 508 | ||
509 | 509 | ||
510 | repo.url=bar | 510 | repo.url=bar |
511 | repo.path=/pub/git/bar.git | 511 | repo.path=/pub/git/bar.git |
512 | repo.desc=the bars for your foo | 512 | repo.desc=the bars for your foo |
513 | repo.owner=barman@foobar.com | 513 | repo.owner=barman@example.com |
514 | repo.readme=info/web/about.html | 514 | repo.readme=info/web/about.html |
515 | 515 | ||
516 | 516 | ||
517 | # The next repositories will be displayed under the 'extras' heading | 517 | # The next repositories will be displayed under the 'extras' heading |
518 | section=extras | 518 | section=extras |
519 | 519 | ||
520 | 520 | ||
521 | repo.url=baz | 521 | repo.url=baz |
522 | repo.path=/pub/git/baz.git | 522 | repo.path=/pub/git/baz.git |
523 | repo.desc=a set of extensions for bar users | 523 | repo.desc=a set of extensions for bar users |
524 | 524 | ||
525 | repo.url=wiz | 525 | repo.url=wiz |
526 | repo.path=/pub/git/wiz.git | 526 | repo.path=/pub/git/wiz.git |
527 | repo.desc=the wizard of foo | 527 | repo.desc=the wizard of foo |
528 | 528 | ||
529 | 529 | ||
530 | # Add some mirrored repositories | 530 | # Add some mirrored repositories |
531 | section=mirrors | 531 | section=mirrors |
532 | 532 | ||
533 | 533 | ||
534 | repo.url=git | 534 | repo.url=git |
535 | repo.path=/pub/git/git.git | 535 | repo.path=/pub/git/git.git |
536 | repo.desc=the dscm | 536 | repo.desc=the dscm |
537 | 537 | ||
538 | 538 | ||
539 | repo.url=linux | 539 | repo.url=linux |
540 | repo.path=/pub/git/linux.git | 540 | repo.path=/pub/git/linux.git |
541 | repo.desc=the kernel | 541 | repo.desc=the kernel |
542 | 542 | ||
543 | # Disable adhoc downloads of this repo | 543 | # Disable adhoc downloads of this repo |
544 | repo.snapshots=0 | 544 | repo.snapshots=0 |
545 | 545 | ||
546 | # Disable line-counts for this repo | 546 | # Disable line-counts for this repo |
547 | repo.enable-log-linecount=0 | 547 | repo.enable-log-linecount=0 |
548 | 548 | ||
549 | # Restrict the max statistics period for this repo | 549 | # Restrict the max statistics period for this repo |
550 | repo.max-stats=month | 550 | repo.max-stats=month |
551 | .... | 551 | .... |
552 | 552 | ||
553 | 553 | ||
554 | BUGS | 554 | BUGS |
555 | ---- | 555 | ---- |
556 | Comments currently cannot appear on the same line as a setting; the comment | 556 | Comments currently cannot appear on the same line as a setting; the comment |
557 | will be included as part of the value. E.g. this line: | 557 | will be included as part of the value. E.g. this line: |
558 | 558 | ||
559 | robots=index # allow indexing | 559 | robots=index # allow indexing |
560 | 560 | ||
561 | will generate the following html element: | 561 | will generate the following html element: |
562 | 562 | ||
563 | <meta name='robots' content='index # allow indexing'/> | 563 | <meta name='robots' content='index # allow indexing'/> |
564 | 564 | ||
565 | 565 | ||
566 | 566 | ||
567 | AUTHOR | 567 | AUTHOR |
568 | ------ | 568 | ------ |
569 | Lars Hjemli <hjemli@gmail.com> | 569 | Lars Hjemli <hjemli@gmail.com> |
570 | Jason A. Donenfeld <Jason@zx2c4.com> | 570 | Jason A. Donenfeld <Jason@zx2c4.com> |