<feed xmlns='http://www.w3.org/2005/Atom'>
<title>cgit/ui-plain.c, branch v0.9</title>
<subtitle>A hyperfast web frontend for git repositories written in C.</subtitle>
<id>http://git.cetero.st/cgit/atom/ui-plain.c?h=v0.9</id>
<link rel='self' href='http://git.cetero.st/cgit/atom/ui-plain.c?h=v0.9'/>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/'/>
<updated>2010-08-22T11:29:57Z</updated>
<entry>
<title>Use GIT-1.7.2.2</title>
<updated>2010-08-22T11:29:57Z</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2010-08-22T11:29:57Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=6d7552bc072599313ef423d69156d824c075572a'/>
<id>urn:sha1:6d7552bc072599313ef423d69156d824c075572a</id>
<content type='text'>
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
</entry>
<entry>
<title>ui-plain: print directory listings</title>
<updated>2010-01-31T22:10:00Z</updated>
<author>
<name>Mark Lodato</name>
<email>lodatom@gmail.com</email>
</author>
<published>2010-01-31T19:25:03Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=6c1a7364557b5a19ecef3079e9bdad5c1acb3cb1'/>
<id>urn:sha1:6c1a7364557b5a19ecef3079e9bdad5c1acb3cb1</id>
<content type='text'>
When a user requests a plain view of a tree (as opposed to a blob),
print out a directory listing rather than giving a 404 Not Found.

Also, fix a segfault when ctx-&gt;qry.path is NULL - i.e, when /plain is
requested without a path.

Signed-off-by: Mark Lodato &lt;lodatom@gmail.com&gt;
</content>
</entry>
<entry>
<title>ui-plain: more efficient walk_tree()</title>
<updated>2010-01-31T22:08:49Z</updated>
<author>
<name>Mark Lodato</name>
<email>lodatom@gmail.com</email>
</author>
<published>2010-01-31T06:07:41Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=74ebf82229829bbdbe74a4d9a7b6f29d2889dfc8'/>
<id>urn:sha1:74ebf82229829bbdbe74a4d9a7b6f29d2889dfc8</id>
<content type='text'>
Git's read_tree_recursive() already filters out the objects by pathname,
so we only have to compare baselen to the expected.  That is, no string
matching is required.

Additionally, if the requested path is a directory, the old code would
walk through all of its immediate children.  This is not necessary, this
so we no longer do that.

Signed-off-by: Mark Lodato &lt;lodatom@gmail.com&gt;
</content>
</entry>
<entry>
<title>ui-plain: remove unused curr_rev variable</title>
<updated>2010-01-31T04:54:39Z</updated>
<author>
<name>Mark Lodato</name>
<email>lodatom@gmail.com</email>
</author>
<published>2010-01-31T04:54:16Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=89082346d50ec283a16d3127677f30b427781b6a'/>
<id>urn:sha1:89082346d50ec283a16d3127677f30b427781b6a</id>
<content type='text'>
Signed-off-by: Mark Lodato &lt;lodatom@gmail.com&gt;
</content>
</entry>
<entry>
<title>Fix segfault on ppc when browsing tree</title>
<updated>2009-12-12T10:56:25Z</updated>
<author>
<name>Martins Polakovs</name>
<email>martins.polakovs@gmail.com</email>
</author>
<published>2009-12-10T15:35:42Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=24538b072718924d3418a258cf0009fb5b5768de'/>
<id>urn:sha1:24538b072718924d3418a258cf0009fb5b5768de</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge branch 'stable'</title>
<updated>2009-09-06T17:33:27Z</updated>
<author>
<name>Lars Hjemli</name>
<email>larsh@slackbox.hjemli.net</email>
</author>
<published>2009-09-06T17:33:27Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=670f99097939a08510c2c909cd38f8083800861a'/>
<id>urn:sha1:670f99097939a08510c2c909cd38f8083800861a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>ui-plain.c: only return the blob with the specified path</title>
<updated>2009-09-06T17:33:10Z</updated>
<author>
<name>Lars Hjemli</name>
<email>larsh@slackbox.hjemli.net</email>
</author>
<published>2009-09-06T17:33:10Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=b507252b469333d06afff0888d466e39124a7e07'/>
<id>urn:sha1:b507252b469333d06afff0888d466e39124a7e07</id>
<content type='text'>
When a path to a directory was specified for the 'plain'
view, each blob in the directory used to be returned to
the client. This patch fixes the issue by matching the
path of each blob against the requested path.

Noticed-by: Lars Stoltenow &lt;penma@penma.de&gt;
Signed-off-by: Lars Hjemli &lt;larsh@slackbox.hjemli.net&gt;
</content>
</entry>
<entry>
<title>Add support for mime type registration and lookup</title>
<updated>2009-07-25T10:55:15Z</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2009-02-13T19:43:30Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=c4d46c7035d07070ac1ebf0c0b44df927358687f'/>
<id>urn:sha1:c4d46c7035d07070ac1ebf0c0b44df927358687f</id>
<content type='text'>
This patch makes it possible to register mappings from filename
extension to mime type in cgitrc and use this mapping when returning
blob content in `plain` view.

The reason for adding this mapping to cgitrc (as opposed to parsing
something like /etc/mime.types) is to allow quick lookup of a limited
number of filename extensions (/etc/mime-types on my machine currently
contains over 700 entries).

NB: A nice addition to this patch would be to parse /etc/mime.types
when `plain` view is requested for a file with an extension for which
there is no mapping registered in cgitrc.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'plain-etag'</title>
<updated>2009-07-25T09:59:22Z</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2009-07-25T09:59:22Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=681fdc45473143de3f3c5f69fbc7b94f5d6b0b75'/>
<id>urn:sha1:681fdc45473143de3f3c5f69fbc7b94f5d6b0b75</id>
<content type='text'>
Conflicts:
	ui-shared.c
</content>
</entry>
<entry>
<title>ui-plain: Return 'application/octet-stream' for binary files.</title>
<updated>2009-07-25T09:46:34Z</updated>
<author>
<name>Remko Tronçon</name>
<email>git@el-tramo.be</email>
</author>
<published>2009-07-25T09:45:18Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=7d7700804278bc92c8a5e401ae88d2451180abbe'/>
<id>urn:sha1:7d7700804278bc92c8a5e401ae88d2451180abbe</id>
<content type='text'>
Signed-off-by: Remko Tronçon &lt;git@el-tramo.be&gt;
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
</entry>
</feed>
