<feed xmlns='http://www.w3.org/2005/Atom'>
<title>cgit/ui-plain.c, branch v0.8.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.8.2</id>
<link rel='self' href='http://git.cetero.st/cgit/atom/ui-plain.c?h=v0.8.2'/>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/'/>
<updated>2008-11-06T18:18:07Z</updated>
<entry>
<title>Fix some warnings to allow -Werror</title>
<updated>2008-11-06T18:18:07Z</updated>
<author>
<name>Ramsay Jones</name>
<email>ramsay@ramsay1.demon.co.uk</email>
</author>
<published>2008-11-04T19:22:08Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=bdd4a56ad55720cde3b7b290b6b9fe4c57dc4f01'/>
<id>urn:sha1:bdd4a56ad55720cde3b7b290b6b9fe4c57dc4f01</id>
<content type='text'>
The type used to declare the st_size field of a 'struct stat' can
be a 32- or 64-bit sized type, which can vary from one platform to
another, or even from one compilation to another.  In particular,
on linux, if you include the following define:

    #define _FILE_OFFSET_BITS 64

prior to including certain system header files, then the type used
for the st_size field will be __off64_t, otherwise it will be an
__off_t.  Note that the above define is included at the top of
git-compat-util.h.

In cache.c, the "%zd" format specifier expects a "signed size_t",
another type which can vary, when an __off64_t or a __off_t is
provided.  To supress the warning, use the PRIuMAX format specifier
and cast the st_size field to uintmax_t.  This should work an any
platform for which git currently compiles.

In ui-plain.c, the size parameter of sha1_object_info() and
read_sha1_file() is defined to be "unsigned long *" not "size_t *".
So, to supress the warning, simply declare size with the correct type.

Signed-off-by: Ramsay Jones &lt;ramsay@ramsay1.demon.co.uk&gt;
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
</entry>
<entry>
<title>ui-plain: handle subdirectories</title>
<updated>2008-09-01T22:53:04Z</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2008-09-01T22:53:04Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=135b231160b4c4e25b70e9e31e6df2bcf9e12c56'/>
<id>urn:sha1:135b231160b4c4e25b70e9e31e6df2bcf9e12c56</id>
<content type='text'>
The callback from read_tree_recursive just needs to check the type of
each tree entry; if it's a dir we want to continue scanning, if it's a
regular file we'll assume it's the one we requested.

And while at it, remove some stray fprintfs.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
</entry>
<entry>
<title>Supply status description to html_status()</title>
<updated>2008-08-06T20:57:44Z</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2008-08-06T20:57:44Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=885096c189574b1cf2e0897cc05aadd7b092a677'/>
<id>urn:sha1:885096c189574b1cf2e0897cc05aadd7b092a677</id>
<content type='text'>
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
</entry>
<entry>
<title>Implement plain view</title>
<updated>2008-08-06T09:21:30Z</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2008-08-06T08:53:50Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=e5da4bca54574522b28f88cab0dc8ebad9e35a73'/>
<id>urn:sha1:e5da4bca54574522b28f88cab0dc8ebad9e35a73</id>
<content type='text'>
This implements a way to access plain blobs by path (similar to the
tree view) instead of by sha1.

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