<feed xmlns='http://www.w3.org/2005/Atom'>
<title>cgit/ui-plain.c, branch v0.9.2</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.2</id>
<link rel='self' href='http://git.cetero.st/cgit/atom/ui-plain.c?h=v0.9.2'/>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/'/>
<updated>2013-04-08T14:12:52Z</updated>
<entry>
<title>use struct strbuf instead of static buffers</title>
<updated>2013-04-08T14:12:52Z</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2013-04-06T09:28:57Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=fb3655df3bf85bd405c5921bbd4b3a54c705c839'/>
<id>urn:sha1:fb3655df3bf85bd405c5921bbd4b3a54c705c839</id>
<content type='text'>
Use "struct strbuf" from Git to remove the limit on file path length.

Notes on scan-tree:
This is slightly involved since I decided to pass the strbuf into
add_repo() and modify if whenever a new file name is required, which
should avoid any extra allocations within that function.  The pattern
there is to append the filename, use it and then reset the buffer to its
original length (retaining a trailing '/').

Notes on ui-snapshot:
Since write_archive modifies the argv array passed to it we
copy the argv_array values into a new array of char* and then free the
original argv_array structure and the new array without worrying about
what the values now look like.

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</content>
</entry>
<entry>
<title>Remove redundant calls to fmt("%s", ...)</title>
<updated>2013-04-08T14:11:29Z</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2013-04-06T09:49:22Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=42d5476f258e7909682f1b611da00d64507d45c6'/>
<id>urn:sha1:42d5476f258e7909682f1b611da00d64507d45c6</id>
<content type='text'>
After this change there is one remaining call 'fmt("%s", delim)' in
ui-shared.c but is needed as delim is stack allocated and so cannot be
returned from the function.

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</content>
</entry>
<entry>
<title>Mark char* fields in struct cgit_page as const</title>
<updated>2013-04-08T13:59:51Z</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2013-04-07T11:46:45Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=57d09bf448990b3a67436e928807e854e491756f'/>
<id>urn:sha1:57d09bf448990b3a67436e928807e854e491756f</id>
<content type='text'>
Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</content>
</entry>
<entry>
<title>Always #include corresponding .h in .c files</title>
<updated>2013-04-08T13:45:34Z</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2013-04-06T10:37:59Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=8f208794318f83826e98168b8b430f2d9a68bcce'/>
<id>urn:sha1:8f208794318f83826e98168b8b430f2d9a68bcce</id>
<content type='text'>
While doing this, remove declarations from header files where the
corresponding definition is declared "static" in order to avoid build
errors.

Also re-order existing headers in ui-*.c so that the file-specific
header always comes immediately after "cgit.h", helping with future
consistency.

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</content>
</entry>
<entry>
<title>ui-plain.c: Use a context structure in walk_tree()</title>
<updated>2013-03-04T14:12:55Z</updated>
<author>
<name>Lukas Fleischer</name>
<email>cgit@cryptocrack.de</email>
</author>
<published>2013-03-03T16:27:54Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=b1db30cd2577fb59fb4490a284e0a34a0345cc02'/>
<id>urn:sha1:b1db30cd2577fb59fb4490a284e0a34a0345cc02</id>
<content type='text'>
Do not misuse global variables to save the context. Instead, use the
context pointer which was designed to share information between a
read_tree_fn and the caller.

Signed-off-by: Lukas Fleischer &lt;cgit@cryptocrack.de&gt;
</content>
</entry>
<entry>
<title>ui-plain.c: Do not access match variable in print_*()</title>
<updated>2013-03-04T14:12:54Z</updated>
<author>
<name>Lukas Fleischer</name>
<email>cgit@cryptocrack.de</email>
</author>
<published>2013-03-03T16:10:19Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=a6317505ead198c23925c93abbb0926f70e02861'/>
<id>urn:sha1:a6317505ead198c23925c93abbb0926f70e02861</id>
<content type='text'>
Move all code setting the match variable to walk_tree().

This allows for easily moving this variable into a context structure
without having to pass the context to print_*().

Signed-off-by: Lukas Fleischer &lt;cgit@cryptocrack.de&gt;
</content>
</entry>
<entry>
<title>Update git to v1.7.6.5</title>
<updated>2013-03-02T15:38:03Z</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2013-03-02T12:32:11Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=c1633c6befb6762e1ac9434a29980e4df5ffee21'/>
<id>urn:sha1:c1633c6befb6762e1ac9434a29980e4df5ffee21</id>
<content type='text'>
struct pathspec is now used in more places.

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</content>
</entry>
<entry>
<title>Merge branch 'fh/mimetypes'</title>
<updated>2012-03-18T21:01:28Z</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2012-03-18T21:01:28Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=ae90a0b2d18d66e7b1cb98b2e34fd697f8b5311a'/>
<id>urn:sha1:ae90a0b2d18d66e7b1cb98b2e34fd697f8b5311a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>ui_plain: automatically lookup mimetype when mimetype-file is set</title>
<updated>2011-07-19T09:30:07Z</updated>
<author>
<name>Ferry Huberts</name>
<email>ferry.huberts@pelagic.nl</email>
</author>
<published>2011-07-19T08:51:58Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=d01c600c179593a53162a9d4e3040ecfc5078fdc'/>
<id>urn:sha1:d01c600c179593a53162a9d4e3040ecfc5078fdc</id>
<content type='text'>
For sites that do not want to configure mime types by hand but
still want the correct mime type for 'plain' blobs, configuring
a mime type file is made possible. This is handy since such a
file is normally already provided (at least on Linux systems).

Also, this reflects the gitweb option '$mimetypes_file'

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-plain.c: add support for path-selected submodule links</title>
<updated>2011-06-15T08:40:13Z</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2011-06-15T08:10:41Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=7421857b4da9b8523032f08824bca9f3e3ebec4e'/>
<id>urn:sha1:7421857b4da9b8523032f08824bca9f3e3ebec4e</id>
<content type='text'>
In ui-plain.c, the links generated for submodule entry ignored the fact
that the entry was in fact a submodule. This patch adds proper submodule
links to the plain directory listings.

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