<feed xmlns='http://www.w3.org/2005/Atom'>
<title>cgit/ui-summary.c, branch lh/grep</title>
<subtitle>A hyperfast web frontend for git repositories written in C.</subtitle>
<id>http://git.cetero.st/cgit/atom/ui-summary.c?h=lh%2Fgrep</id>
<link rel='self' href='http://git.cetero.st/cgit/atom/ui-summary.c?h=lh%2Fgrep'/>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/'/>
<updated>2011-06-13T23:04:30Z</updated>
<entry>
<title>cgit.c: add 'clone-url' setting with support for macro expansion</title>
<updated>2011-06-13T23:04:30Z</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2011-06-06T20:49:13Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=a1429dbc89f9c0945e32cea9fd3424d2fe56aeab'/>
<id>urn:sha1:a1429dbc89f9c0945e32cea9fd3424d2fe56aeab</id>
<content type='text'>
The current 'clone-prefix' setting has some known issues:
* All repos get the same 'clone-prefix' value since the setting is not
  adopted during repo registration (in cgitrc, or during scan-path traversal),
  but only when the setting is used.
* The generated clone-urls for a repo is a combination of 'clone-prefix', a
  slash and the repo url. This doesn't work well with e.g. ssh-style urls
  like 'git@example.org:repo.git', since the inserted slash will make the
  repo relative to the filesystem root.
* If 'remove-suffix' is enabled, the generated clone-urls will not work for
  cloning (except for http-urls to cgit itself) since they miss the '.git'
  suffix.

The new 'clone-url' setting is designed to avoid the mentioned issues:
* Each repo adopts the default 'clone-url' when the repo is defined. This
  allows different groups of repos to adopt different values.
* The clone-urls for a repo is generated by expanding environment variables
  in a string template without inserting arbitrary characters, hence any
  kind of clone-url can be generated.
* Macro expansion also eases the 'remove-suffix' pain since it's now
  possible to define e.g. 'clone-url=git://foo.org/$CGIT_REPO_URL.git' for
  a set of repos. A furter improvement would be to define e.g.
  $CGIT_REPO_SUFFIX to '.git' for all repos which had their url prettified,
  or to store the original $CGIT_REPO_URL in e.g. $CGIT_REPO_REAL_URL before
  suffix removal.

Reviewed-by: Ferry Huberts &lt;mailings@hupie.com&gt;
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
</entry>
<entry>
<title>cgit.c: always setup cgit repo environment variables</title>
<updated>2011-06-13T23:03:46Z</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2011-06-06T19:29:58Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=3ec6b309505dc5f7ba14abe8861b02da34a9df0b'/>
<id>urn:sha1:3ec6b309505dc5f7ba14abe8861b02da34a9df0b</id>
<content type='text'>
When cgit learned to setup environment variables for certain repo
settings before invoking a filter process, the setup occurred inside
cgit_open_filter().

This patch moves the setup out of cgit_open_filter() and into
prepare_repo_cmd() to prepare for additional uses of these variables.

Reviewed-by: Ferry Huberts &lt;mailings@hupie.com&gt;
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
</entry>
<entry>
<title>cgit_open_filter: also take the repo as a parameter</title>
<updated>2011-03-26T10:03:42Z</updated>
<author>
<name>Ferry Huberts</name>
<email>ferry.huberts@pelagic.nl</email>
</author>
<published>2011-03-23T10:57:42Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=d87bba846d368e560193a1f75de6d66bffe986cf'/>
<id>urn:sha1:d87bba846d368e560193a1f75de6d66bffe986cf</id>
<content type='text'>
To prepare for handing repo configuration to the
filter script that is executed.

Signed-off-by: Ferry Huberts &lt;ferry.huberts@pelagic.nl&gt;
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
</entry>
<entry>
<title>ui-log: Line-wrap long commit subjects when showmsg is enabled</title>
<updated>2010-11-16T07:18:37Z</updated>
<author>
<name>Johan Herland</name>
<email>johan@herland.net</email>
</author>
<published>2010-11-15T17:39:52Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=ad230267f8ecae6cb4f0da17d7a5f75ba38203e2'/>
<id>urn:sha1:ad230267f8ecae6cb4f0da17d7a5f75ba38203e2</id>
<content type='text'>
When showmsg is disabled ui-log truncates long commit subjects. This is good.
However, the same is not desirable when showmsg is enabled, since you then
end up with a truncated commit subject followed by the rest of the commit
message below.

Instead, when showmsg is enabled (and we're using all this space to display
the entire commit message, anyway), line-wrap the commit subject instead of
truncating it.

Signed-off-by: Johan Herland &lt;johan@herland.net&gt;
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
</entry>
<entry>
<title>Add support for "readme" option</title>
<updated>2010-08-22T11:35:47Z</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2010-08-21T13:08:01Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=515edb0da3b9156e07e269621d7474cdea82acaf'/>
<id>urn:sha1:515edb0da3b9156e07e269621d7474cdea82acaf</id>
<content type='text'>
The value of this option is used as the default value for repo.readme.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
</entry>
<entry>
<title>Support refspecs in about-filter.</title>
<updated>2010-08-20T16:57:30Z</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2010-08-03T22:45:42Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=379e80e3a83481d3639c5d312eeddcce57c486b2'/>
<id>urn:sha1:379e80e3a83481d3639c5d312eeddcce57c486b2</id>
<content type='text'>
Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
</entry>
<entry>
<title>Add 'about-filter' and 'repo.about-filter' options</title>
<updated>2009-08-09T11:41:54Z</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2009-08-09T11:27:21Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=537c05f138d59c1eb3ac8e2d8b0dca3a38aa5dd4'/>
<id>urn:sha1:537c05f138d59c1eb3ac8e2d8b0dca3a38aa5dd4</id>
<content type='text'>
These options can be used to execute a filter command on each about-page,
both top-level and for each repository (repo.about-filter can be used
to override the current about-filter).

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
</entry>
<entry>
<title>ui-summary: enable arbitrary paths below repo.readme</title>
<updated>2009-08-09T11:41:54Z</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2009-08-09T09:50:34Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=e1782fff8a78b7f265432603351281ad2988bb40'/>
<id>urn:sha1:e1782fff8a78b7f265432603351281ad2988bb40</id>
<content type='text'>
This change makes it possible to include any number of pages below
the 'about' tab for a repository. The path is assumed to be located
in the same directory as the 'repo.readme' file.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
</entry>
<entry>
<title>ui-summary: use html_url_path()</title>
<updated>2008-10-05T19:21:42Z</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2008-10-05T19:21:42Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=0071aa8612c12f626355339d2108ed4c5b336d58'/>
<id>urn:sha1:0071aa8612c12f626355339d2108ed4c5b336d58</id>
<content type='text'>
This makes the clone urls be properly escaped.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
</entry>
<entry>
<title>ui-summary: show clone urls</title>
<updated>2008-07-27T09:54:06Z</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2008-07-27T09:54:06Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=78af25ccac7aab6baccd58e4d65bfe879a25dd54'/>
<id>urn:sha1:78af25ccac7aab6baccd58e4d65bfe879a25dd54</id>
<content type='text'>
If either repo.clone-url or clone-prefix is specified in cgitrc, all
space-separated values in the config option is printed as a possible
clone url on the repo summary page.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
</entry>
</feed>
