author | Ragnar Ouchterlony <ragnar@lysator.liu.se> | 2009-09-14 18:19:02 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2009-09-16 18:17:56 (UTC) |
commit | c358aa3dfebf4fc1f3005dd960aa5c1c020eed76 (patch) (unidiff) | |
tree | 475fa421d673b270c7d1bde872b96425abfafce8 /cgitrc.5.txt | |
parent | 40e174d5364910750413d94b5417e57d108190ef (diff) | |
download | cgit-c358aa3dfebf4fc1f3005dd960aa5c1c020eed76.zip cgit-c358aa3dfebf4fc1f3005dd960aa5c1c020eed76.tar.gz cgit-c358aa3dfebf4fc1f3005dd960aa5c1c020eed76.tar.bz2 |
Add possibility to switch between unidiff and side-by-side-diff.
A new config option side-by-side-diffs added, defaulting to 0,
meaning unidiff. Also a query option (ss) is used toggle this.
In the commit page you can switch between the two diff formats by
clicking on the link on the "commit"-row, to the right of (patch).
In the diff page you can switch by using the link at the start
of the page.
All commit-links and diff-links will remember the choice.
Signed-off-by: Ragnar Ouchterlony <ragnar@lysator.liu.se>
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
-rw-r--r-- | cgitrc.5.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cgitrc.5.txt b/cgitrc.5.txt index 4dc383d..252d546 100644 --- a/cgitrc.5.txt +++ b/cgitrc.5.txt | |||
@@ -217,48 +217,52 @@ robots:: | |||
217 | 217 | ||
218 | root-desc:: | 218 | root-desc:: |
219 | Text printed below the heading on the repository index page. Default | 219 | Text printed below the heading on the repository index page. Default |
220 | value: "a fast webinterface for the git dscm". | 220 | value: "a fast webinterface for the git dscm". |
221 | 221 | ||
222 | root-readme:: | 222 | root-readme:: |
223 | The content of the file specified with this option will be included | 223 | The content of the file specified with this option will be included |
224 | verbatim below the "about" link on the repository index page. Default | 224 | verbatim below the "about" link on the repository index page. Default |
225 | value: none. | 225 | value: none. |
226 | 226 | ||
227 | root-title:: | 227 | root-title:: |
228 | Text printed as heading on the repository index page. Default value: | 228 | Text printed as heading on the repository index page. Default value: |
229 | "Git Repository Browser". | 229 | "Git Repository Browser". |
230 | 230 | ||
231 | scan-path:: | 231 | scan-path:: |
232 | A path which will be scanned for repositories. If caching is enabled, | 232 | A path which will be scanned for repositories. If caching is enabled, |
233 | the result will be cached as a cgitrc include-file in the cache | 233 | the result will be cached as a cgitrc include-file in the cache |
234 | directory. Default value: none. See also: cache-scanrc-ttl. | 234 | directory. Default value: none. See also: cache-scanrc-ttl. |
235 | 235 | ||
236 | section:: | 236 | section:: |
237 | The name of the current repository section - all repositories defined | 237 | The name of the current repository section - all repositories defined |
238 | after this option will inherit the current section name. Default value: | 238 | after this option will inherit the current section name. Default value: |
239 | none. | 239 | none. |
240 | 240 | ||
241 | side-by-side-diffs:: | ||
242 | If set to "1" shows side-by-side diffs instead of unidiffs per | ||
243 | default. Default value: "0". | ||
244 | |||
241 | snapshots:: | 245 | snapshots:: |
242 | Text which specifies the default set of snapshot formats generated by | 246 | Text which specifies the default set of snapshot formats generated by |
243 | cgit. The value is a space-separated list of zero or more of the | 247 | cgit. The value is a space-separated list of zero or more of the |
244 | values "tar", "tar.gz", "tar.bz2" and "zip". Default value: none. | 248 | values "tar", "tar.gz", "tar.bz2" and "zip". Default value: none. |
245 | 249 | ||
246 | source-filter:: | 250 | source-filter:: |
247 | Specifies a command which will be invoked to format plaintext blobs | 251 | Specifies a command which will be invoked to format plaintext blobs |
248 | in the tree view. The command will get the blob content on its STDIN | 252 | in the tree view. The command will get the blob content on its STDIN |
249 | and the name of the blob as its only command line argument. The STDOUT | 253 | and the name of the blob as its only command line argument. The STDOUT |
250 | from the command will be included verbatim as the blob contents, i.e. | 254 | from the command will be included verbatim as the blob contents, i.e. |
251 | this can be used to implement e.g. syntax highlighting. Default value: | 255 | this can be used to implement e.g. syntax highlighting. Default value: |
252 | none. | 256 | none. |
253 | 257 | ||
254 | summary-branches:: | 258 | summary-branches:: |
255 | Specifies the number of branches to display in the repository "summary" | 259 | Specifies the number of branches to display in the repository "summary" |
256 | view. Default value: "10". | 260 | view. Default value: "10". |
257 | 261 | ||
258 | summary-log:: | 262 | summary-log:: |
259 | Specifies the number of log entries to display in the repository | 263 | Specifies the number of log entries to display in the repository |
260 | "summary" view. Default value: "10". | 264 | "summary" view. Default value: "10". |
261 | 265 | ||
262 | summary-tags:: | 266 | summary-tags:: |
263 | Specifies the number of tags to display in the repository "summary" | 267 | Specifies the number of tags to display in the repository "summary" |
264 | view. Default value: "10". | 268 | view. Default value: "10". |