Re: [PATCH] gitweb: Adding a `blame' interface.
- From
Shawn Pearce <spearce@spearce.org>
- Date
- Jun 12, 2006, 09:19 UTC
- Message-ID
- <20060612091949.GB29220@spearce.org>
- In-Reply-To
- <Pine.LNX.4.63.0606121107520.21813@wbgn013.biozentrum.uni-wuerzburg.de>
Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
Show 13 quoted lines
> Hi, > > On Mon, 12 Jun 2006, Shawn Pearce wrote: > > > [gitweb] > > description=<div class=\"description\">\n\ > > This is a chunk of text which describes this repository. Some\n\ > > of this text might be rather long, and might need many lines to\n\ > > really be able to describe the repository in a nice editor such as\n\ > > vi running in an 80 character wide xterm.\n\ > > </div> > > AFAIK the trailing "\" will not work.
Actually it does. I figured out that it works (and why it works) when I implemented the GIT repository parser in Java for my pure Java version of GIT...
For example:
[spearce@spearce-pb15 bob]$ cat .git/config
[core]
repositoryformatversion = 0
filemode = true
[gitweb]
description = This is a very\nlong line to put into GIT\n\
repo config.\n\
I hope it works.
on = true
[spearce@spearce-pb15 bob]$ git repo-config gitweb.description
This is a very
long line to put into GIT
repo config.
I hope it works.
[spearce@spearce-pb15 bob]$ git repo-config gitweb.on
trueThe use of a trailing \ makes sense; the collapsing of multiple spaces into one space unless quoted inside of "" doesn't. But whatever...
-- Shawn.