<feed xmlns='http://www.w3.org/2005/Atom'>
<title>cgit/cgit.c, branch v1.0</title>
<subtitle>A hyperfast web frontend for git repositories written in C.</subtitle>
<id>http://git.cetero.st/cgit/atom/cgit.c?h=v1.0</id>
<link rel='self' href='http://git.cetero.st/cgit/atom/cgit.c?h=v1.0'/>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/'/>
<updated>2016-02-22T17:40:13Z</updated>
<entry>
<title>ui-shared: add homepage to tabs</title>
<updated>2016-02-22T17:40:13Z</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2016-02-22T15:04:15Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=5f2664f13c90f083b827d8fafa6cfc01c0c4f513'/>
<id>urn:sha1:5f2664f13c90f083b827d8fafa6cfc01c0c4f513</id>
<content type='text'>
Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</content>
</entry>
<entry>
<title>ui-plain: add enable-html-serving flag</title>
<updated>2016-01-14T14:42:56Z</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2016-01-14T13:53:28Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=c326f3eb026d67650f79a6dda9a1a42c55d10a25'/>
<id>urn:sha1:c326f3eb026d67650f79a6dda9a1a42c55d10a25</id>
<content type='text'>
Unrestricts plain/ to contents likely to be executed by browser.
</content>
</entry>
<entry>
<title>ui-blob: Do not accept mimetype from user</title>
<updated>2016-01-14T13:31:13Z</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2016-01-14T13:31:13Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=1c581a072651524f3b0d91f33e22a42c4166dd96'/>
<id>urn:sha1:1c581a072651524f3b0d91f33e22a42c4166dd96</id>
<content type='text'>
</content>
</entry>
<entry>
<title>filter: avoid integer overflow in authenticate_post</title>
<updated>2015-11-24T10:31:43Z</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2015-11-24T10:28:00Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=4458abf64172a62b92810c2293450106e6dfc763'/>
<id>urn:sha1:4458abf64172a62b92810c2293450106e6dfc763</id>
<content type='text'>
ctx.env.content_length is an unsigned int, coming from the
CONTENT_LENGTH environment variable, which is parsed by strtoul. The
HTTP/1.1 spec says that "any Content-Length greater than or equal to
zero is a valid value." By storing this into an int, we potentially
overflow it, resulting in the following bounding check failing, leading
to a buffer overflow.

Reported-by: Erik Cabetas &lt;Erik@cabetas.com&gt;
Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</content>
</entry>
<entry>
<title>cgit.c: remove useless null check</title>
<updated>2015-10-09T08:54:19Z</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2015-10-08T22:23:56Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=94182d6031df0d956a94ecd7ece233e345468961'/>
<id>urn:sha1:94182d6031df0d956a94ecd7ece233e345468961</id>
<content type='text'>
Everywhere else in this function we do not check whether the value is
null and parse_configfile() never passes a null value to this callback.

Coverity-id: 13846
Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</content>
</entry>
<entry>
<title>cmd: no need for pre function hook now</title>
<updated>2015-08-14T13:54:32Z</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2015-08-14T13:54:32Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=03de473354dc8c17a3b23a973b5cc67752ad20cb'/>
<id>urn:sha1:03de473354dc8c17a3b23a973b5cc67752ad20cb</id>
<content type='text'>
Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</content>
</entry>
<entry>
<title>cmd: remove "want_layout" field</title>
<updated>2015-08-14T13:46:51Z</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2015-08-14T11:47:21Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=a420c7ce9b2c483c2f93b8a1a03cc80f3eeedb20'/>
<id>urn:sha1:a420c7ce9b2c483c2f93b8a1a03cc80f3eeedb20</id>
<content type='text'>
No commands use this any more.

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</content>
</entry>
<entry>
<title>cgit: use cgit_print_error_page() where appropriate</title>
<updated>2015-08-14T13:46:51Z</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2015-08-14T11:47:02Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=e9b71ae6fe910573156c4632a314b7dbf84d7b64'/>
<id>urn:sha1:e9b71ae6fe910573156c4632a314b7dbf84d7b64</id>
<content type='text'>
These are more-or-less one-to-one translations but in the final hunk we
gain an HTTP error code where we used to send "200 OK", which is an
improvement.

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</content>
</entry>
<entry>
<title>log: allow users to follow a file</title>
<updated>2015-08-12T14:57:46Z</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2015-08-12T14:55:28Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=30304d8156a72ffc95e45e1aa9407319b81bd253'/>
<id>urn:sha1:30304d8156a72ffc95e45e1aa9407319b81bd253</id>
<content type='text'>
Teach the "log" UI to behave in the same way as "git log --follow", when
given a suitable instruction by the user.  The default behaviour remains
to show the log without following renames, but the follow behaviour can
be activated by following a link in the page header.

Follow is not the default because outputting merges in follow mode is
tricky ("git log --follow" will not show merges).  We also disable the
graph in follow mode because the commit graph is not simplified so we
end up with frequent gaps in the graph and many lines that do not
connect with any commits we're actually showing.

We also teach the "diff" and "commit" UIs to respect the follow flag on
URLs, causing the single-file version of these UIs to detect renames.
This feature is needed only for commits that rename the path we're
interested in.

For commits before the file has been renamed (i.e. that appear later in
the log list) we change the file path in the links from the log to point
to the old name; this means that links to commits always limit by the
path known to that commit.  If we didn't do this we would need to walk
down the log diff'ing every commit whenever we want to show a commit.
The drawback is that the "Log" link in the top bar of such a page links
to the log limited by the old name, so it will only show pre-rename
commits.  I consider this a reasonable trade-off since the "Back" button
still works and the log matches the path displayed in the top bar.

Since following renames requires running diff on every commit we
consider, I've added a knob to the configuration file to globally
enable/disable this feature.  Note that we may consider a large number
of commits the revision walking machinery no longer performs any path
limitation so we have to examine every commit until we find a page full
of commits that affect the target path or something related to it.

Suggested-by: René Neumann &lt;necoro@necoro.eu&gt;
Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</content>
</entry>
<entry>
<title>about: always ensure page has a trailing slash</title>
<updated>2015-08-12T13:03:32Z</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2015-08-12T12:50:09Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=d7034806a4b1279f62d606501f831dcad31798e6'/>
<id>urn:sha1:d7034806a4b1279f62d606501f831dcad31798e6</id>
<content type='text'>
Otherwise we can't easily embed links to other /about/ pages.

Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</content>
</entry>
</feed>
