<feed xmlns='http://www.w3.org/2005/Atom'>
<title>cgit, branch lf/for-jason</title>
<subtitle>A hyperfast web frontend for git repositories written in C 
</subtitle>
<link rel='alternate' type='text/html' href='https://git.joursoir.net/cgit/'/>
<entry>
<title>ui-plain: print symlink content</title>
<updated>2017-08-10T13:15:58+00:00</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2017-03-06T23:27:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.joursoir.net/cgit/commit/?id=135a75540421a3c8b82634730a3765d1e49442ea'/>
<id>135a75540421a3c8b82634730a3765d1e49442ea</id>
<content type='text'>
We currently ignore symlinks in ui-plain, leading to a 404.  In ui-tree
we print the content of the blob (that is, the path to the target of the
link), so it makes sense to do the same here.

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We currently ignore symlinks in ui-plain, leading to a 404.  In ui-tree
we print the content of the blob (that is, the path to the target of the
link), so it makes sense to do the same here.

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>cgit: don't set vpath unless repo is set</title>
<updated>2017-08-10T13:15:57+00:00</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2017-02-19T12:02:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.joursoir.net/cgit/commit/?id=7d9b5590f4ffbc5d8a6fe30e3e9715ad4b5ca7bd'/>
<id>7d9b5590f4ffbc5d8a6fe30e3e9715ad4b5ca7bd</id>
<content type='text'>
After the previous two patches, this can be classified as a tidy up
rather than a bug fix, but I think it makes sense to group all of the
tests together before setting up the environment for the command to
execute.

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
After the previous two patches, this can be classified as a tidy up
rather than a bug fix, but I think it makes sense to group all of the
tests together before setting up the environment for the command to
execute.

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>parsing: clear query path before starting</title>
<updated>2017-08-10T13:15:57+00:00</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2017-02-19T12:17:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.joursoir.net/cgit/commit/?id=c0d2423f07099366815856500faec3a69db1701a'/>
<id>c0d2423f07099366815856500faec3a69db1701a</id>
<content type='text'>
By specifying the "url" query parameter multiple times it is possible to
end up with ctx.qry.vpath set while ctx.repo is null, which triggers an
invalid code path from cgit_print_pageheader() while printing path
crumbs, resulting in a null dereference.

The previous patch fixed this segfault, but it makes no sense for us to
clear ctx.repo while leaving ctx.qry.path set to the previous value, so
let's just clear it here so that the last "url" parameter given takes
full effect rather than partially overriding the effect of the previous
value.

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
By specifying the "url" query parameter multiple times it is possible to
end up with ctx.qry.vpath set while ctx.repo is null, which triggers an
invalid code path from cgit_print_pageheader() while printing path
crumbs, resulting in a null dereference.

The previous patch fixed this segfault, but it makes no sense for us to
clear ctx.repo while leaving ctx.qry.path set to the previous value, so
let's just clear it here so that the last "url" parameter given takes
full effect rather than partially overriding the effect of the previous
value.

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ui-shared: don't print path crumbs without a repo</title>
<updated>2017-08-10T13:15:56+00:00</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2017-02-19T12:27:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.joursoir.net/cgit/commit/?id=fdcd7dc8186e8d928876ae858b7d2d3a87d29453'/>
<id>fdcd7dc8186e8d928876ae858b7d2d3a87d29453</id>
<content type='text'>
cgit_print_path_crumbs() can call repolink() which assumes that ctx.repo
is non-null.  Currently we don't have any commands that set want_vpath
without also setting want_repo so it shouldn't be possible to fail this
test, but the check in cgit.c is in the wrong order so it is possible to
specify a query string like "?p=log&amp;path=foo/bar" to end up here without
a valid repository.

This was found by American fuzzy lop [0].

[0] http://lcamtuf.coredump.cx/afl/

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
cgit_print_path_crumbs() can call repolink() which assumes that ctx.repo
is non-null.  Currently we don't have any commands that set want_vpath
without also setting want_repo so it shouldn't be possible to fail this
test, but the check in cgit.c is in the wrong order so it is possible to
specify a query string like "?p=log&amp;path=foo/bar" to end up here without
a valid repository.

This was found by American fuzzy lop [0].

[0] http://lcamtuf.coredump.cx/afl/

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>filter: set environment variable PYTHONIOENCODING to utf-8</title>
<updated>2017-08-10T13:15:55+00:00</updated>
<author>
<name>Roy Marples</name>
<email>roy@marples.name</email>
</author>
<published>2017-03-09T00:18:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.joursoir.net/cgit/commit/?id=67e2b69ec96a117b98c9028013ce0258574efe80'/>
<id>67e2b69ec96a117b98c9028013ce0258574efe80</id>
<content type='text'>
This allows different versions of Python to be used rather than
forcing version specific encoding in each script.

Signed-off-by: Roy Marples &lt;roy@marples.name&gt;
Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This allows different versions of Python to be used rather than
forcing version specific encoding in each script.

Signed-off-by: Roy Marples &lt;roy@marples.name&gt;
Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ui-atom: properly escape delimiter in page link</title>
<updated>2017-08-10T13:15:54+00:00</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2017-01-15T12:29:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.joursoir.net/cgit/commit/?id=7f7f91141ced1085dd2c6dbc5c65703d73b1b8c7'/>
<id>7f7f91141ced1085dd2c6dbc5c65703d73b1b8c7</id>
<content type='text'>
If the delimiter here is '&amp;' then it needs to be escaped for inclusion
in an attribute.  Use html_attrf() to ensure that this happens (we know
that hex won't need escaping, but this makes it clearer what's
happening.

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If the delimiter here is '&amp;' then it needs to be escaped for inclusion
in an attribute.  Use html_attrf() to ensure that this happens (we know
that hex won't need escaping, but this makes it clearer what's
happening.

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>git: update to v2.14</title>
<updated>2017-08-10T13:15:54+00:00</updated>
<author>
<name>Jeff Smith</name>
<email>whydoubt@gmail.com</email>
</author>
<published>2017-08-10T00:02:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.joursoir.net/cgit/commit/?id=d08d6fcb19bb5f008b34282fe59fed3acd93e67f'/>
<id>d08d6fcb19bb5f008b34282fe59fed3acd93e67f</id>
<content type='text'>
Numerous changes were made to git functions to use an object_id
structure rather than sending sha1 hashes as raw unsigned character
arrays.  The functions that affect cgit are: parse_object,
lookup_commit_reference, lookup_tag, lookup_tree, parse_tree_indirect,
diff_root_tree_sha1, diff_tree_sha1, and format_display_notes.

Commit b2141fc (config: don't include config.h by default) made it
necessary to that config.h be explicitly included when needed.

Commit 07a3d41 (grep: remove regflags from the public grep_opt API)
removed one way of specifying the ignore-case grep option.

Signed-off-by: Jeff Smith &lt;whydoubt@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Numerous changes were made to git functions to use an object_id
structure rather than sending sha1 hashes as raw unsigned character
arrays.  The functions that affect cgit are: parse_object,
lookup_commit_reference, lookup_tag, lookup_tree, parse_tree_indirect,
diff_root_tree_sha1, diff_tree_sha1, and format_display_notes.

Commit b2141fc (config: don't include config.h by default) made it
necessary to that config.h be explicitly included when needed.

Commit 07a3d41 (grep: remove regflags from the public grep_opt API)
removed one way of specifying the ignore-case grep option.

Signed-off-by: Jeff Smith &lt;whydoubt@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>git: update to v2.13.4</title>
<updated>2017-08-10T13:15:54+00:00</updated>
<author>
<name>Christian Hesse</name>
<email>mail@eworm.de</email>
</author>
<published>2017-07-24T15:22:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.joursoir.net/cgit/commit/?id=3d33b46df24d4dee140d0aafb1eba5fffa314cf0'/>
<id>3d33b46df24d4dee140d0aafb1eba5fffa314cf0</id>
<content type='text'>
Update to git version v2.13.4: With commit 8aee769f (pathspec: copy and free
owned memory) the definition of struct pathspec_item has changed with the
expectation that pathspecs will be managed dynamically. We work around this
a bit by setting up a static structure, but let's allocate the match string
to avoid needing to cast away const.

Updated a patch from John Keeping &lt;john@keeping.me.uk&gt; for git v2.12.1.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Update to git version v2.13.4: With commit 8aee769f (pathspec: copy and free
owned memory) the definition of struct pathspec_item has changed with the
expectation that pathspecs will be managed dynamically. We work around this
a bit by setting up a static structure, but let's allocate the match string
to avoid needing to cast away const.

Updated a patch from John Keeping &lt;john@keeping.me.uk&gt; for git v2.12.1.
</pre>
</div>
</content>
</entry>
<entry>
<title>Update .mailmap with my new email address</title>
<updated>2017-07-27T14:20:44+00:00</updated>
<author>
<name>Lukas Fleischer</name>
<email>lfleischer@lfos.de</email>
</author>
<published>2017-07-27T14:20:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.joursoir.net/cgit/commit/?id=7ce19ba550ff0d32359b9fb35eeb6282747524b9'/>
<id>7ce19ba550ff0d32359b9fb35eeb6282747524b9</id>
<content type='text'>
Signed-off-by: Lukas Fleischer &lt;lfleischer@lfos.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Lukas Fleischer &lt;lfleischer@lfos.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove unused variable from sort_section()</title>
<updated>2017-04-05T04:38:39+00:00</updated>
<author>
<name>Lukas Fleischer</name>
<email>lfleischer@lfos.de</email>
</author>
<published>2017-04-05T04:38:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.joursoir.net/cgit/commit/?id=7ebdb30fdf91d1f63b4fb07e54b089136de5507b'/>
<id>7ebdb30fdf91d1f63b4fb07e54b089136de5507b</id>
<content type='text'>
Signed-off-by: Lukas Fleischer &lt;lfleischer@lfos.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Lukas Fleischer &lt;lfleischer@lfos.de&gt;
</pre>
</div>
</content>
</entry>
</feed>
