<feed xmlns='http://www.w3.org/2005/Atom'>
<title>cgit-70, branch v0.10.1</title>
<subtitle>a fork of cgit with a Gopher interface</subtitle>
<link rel='alternate' type='text/html' href='http://ns2.complex-space.net/cgit-70/'/>
<entry>
<title>Bump version.</title>
<updated>2014-02-27T23:12:08+00:00</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2014-02-27T23:12:08+00:00</published>
<link rel='alternate' type='text/html' href='http://ns2.complex-space.net/cgit-70/commit/?id=f2fa9c56e29ae32bbe5841e7bfe0217ada4e3df9'/>
<id>f2fa9c56e29ae32bbe5841e7bfe0217ada4e3df9</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>ui-refs: simplify cmp_age logic</title>
<updated>2014-02-26T15:57:15+00:00</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2014-02-26T15:57:15+00:00</published>
<link rel='alternate' type='text/html' href='http://ns2.complex-space.net/cgit-70/commit/?id=493061102653ac6483dc3c9649c726318e2488b6'/>
<id>493061102653ac6483dc3c9649c726318e2488b6</id>
<content type='text'>
The check in parse_user that eventually makes it into committer_date and
tagger_date is:

else if (mode == 3 &amp;&amp; isdigit(*p)) {
    *date = atol(p);
    mode++;
}

Since isdigit('-') is always false, date will never be negative. Thus
the sign of this function:

static int cmp_age(int age1, int age2)
{
    if (age1 != 0 &amp;&amp; age2 != 0)
        return age2 - age1;

    if (age1 == 0 &amp;&amp; age2 == 0)
        return 0;

    if (age1 == 0)
        return +1;

    return -1;
}

Will always be the same as the sign of this function:

static inline int cmp_age(int age1, int age2)
{
    return age2 - age1;
}

Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
Idea-by: Lukas Fleischer &lt;cgit@cryptocrack.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The check in parse_user that eventually makes it into committer_date and
tagger_date is:

else if (mode == 3 &amp;&amp; isdigit(*p)) {
    *date = atol(p);
    mode++;
}

Since isdigit('-') is always false, date will never be negative. Thus
the sign of this function:

static int cmp_age(int age1, int age2)
{
    if (age1 != 0 &amp;&amp; age2 != 0)
        return age2 - age1;

    if (age1 == 0 &amp;&amp; age2 == 0)
        return 0;

    if (age1 == 0)
        return +1;

    return -1;
}

Will always be the same as the sign of this function:

static inline int cmp_age(int age1, int age2)
{
    return age2 - age1;
}

Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
Idea-by: Lukas Fleischer &lt;cgit@cryptocrack.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove unused parameter from cgit_print_snapshot()</title>
<updated>2014-02-21T17:19:00+00:00</updated>
<author>
<name>Lukas Fleischer</name>
<email>cgit@cryptocrack.de</email>
</author>
<published>2014-02-08T13:37:29+00:00</published>
<link rel='alternate' type='text/html' href='http://ns2.complex-space.net/cgit-70/commit/?id=3e9578e9a3393eaebc658ad650a3241bf1930176'/>
<id>3e9578e9a3393eaebc658ad650a3241bf1930176</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>print download link for reference string length == 1</title>
<updated>2014-02-21T00:41:23+00:00</updated>
<author>
<name>Christian Hesse</name>
<email>mail@eworm.de</email>
</author>
<published>2014-02-20T19:48:45+00:00</published>
<link rel='alternate' type='text/html' href='http://ns2.complex-space.net/cgit-70/commit/?id=e6749644bc60865cb560a532b14fb3a007fb00ea'/>
<id>e6749644bc60865cb560a532b14fb3a007fb00ea</id>
<content type='text'>
I have a number of repositories that start tagging with just '1' and
count up. Actually references with sting length of one are skipped, this
patch changes that.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
I have a number of repositories that start tagging with just '1' and
count up. Actually references with sting length of one are skipped, this
patch changes that.
</pre>
</div>
</content>
</entry>
<entry>
<title>Clean up cache documentation.</title>
<updated>2014-02-21T00:36:20+00:00</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2014-02-21T00:36:20+00:00</published>
<link rel='alternate' type='text/html' href='http://ns2.complex-space.net/cgit-70/commit/?id=2e8e9af1d4161bfe1bfbf1e34b1631b7cc1c1b95'/>
<id>2e8e9af1d4161bfe1bfbf1e34b1631b7cc1c1b95</id>
<content type='text'>
Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Skip cache slot when time-to-live is zero</title>
<updated>2014-02-21T00:19:45+00:00</updated>
<author>
<name>Lukas Fleischer</name>
<email>cgit@cryptocrack.de</email>
</author>
<published>2014-02-20T19:59:22+00:00</published>
<link rel='alternate' type='text/html' href='http://ns2.complex-space.net/cgit-70/commit/?id=6ceba453a27ead382d0116d95bdeb6b6be1149e2'/>
<id>6ceba453a27ead382d0116d95bdeb6b6be1149e2</id>
<content type='text'>
If time-to-live is set to zero, we don't need to regenerate the cache
slots on every request. Instead, just skip the caching process and
immediately provide the dynamically generated version of the page.
Setting time-to-live to zero is useful when you want to disable caching
for certain pages.

Signed-off-by: Lukas Fleischer &lt;cgit@cryptocrack.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If time-to-live is set to zero, we don't need to regenerate the cache
slots on every request. Instead, just skip the caching process and
immediately provide the dynamically generated version of the page.
Setting time-to-live to zero is useful when you want to disable caching
for certain pages.

Signed-off-by: Lukas Fleischer &lt;cgit@cryptocrack.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>git: Update to 1.9.0</title>
<updated>2014-02-21T00:18:54+00:00</updated>
<author>
<name>Lukas Fleischer</name>
<email>cgit@cryptocrack.de</email>
</author>
<published>2014-02-20T19:58:13+00:00</published>
<link rel='alternate' type='text/html' href='http://ns2.complex-space.net/cgit-70/commit/?id=8033dc01f4ae1551c21769f580caa723fb176d9c'/>
<id>8033dc01f4ae1551c21769f580caa723fb176d9c</id>
<content type='text'>
No code changes required, just bump the submodule and Makefile versions.

Signed-off-by: Lukas Fleischer &lt;cgit@cryptocrack.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
No code changes required, just bump the submodule and Makefile versions.

Signed-off-by: Lukas Fleischer &lt;cgit@cryptocrack.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Makefile: suppress pkg-config error</title>
<updated>2014-02-20T19:06:29+00:00</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2014-02-20T19:06:29+00:00</published>
<link rel='alternate' type='text/html' href='http://ns2.complex-space.net/cgit-70/commit/?id=8acfa51a8b3c6011483132c933213231f7a4865b'/>
<id>8acfa51a8b3c6011483132c933213231f7a4865b</id>
<content type='text'>
Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Add a cache-snapshot-ttl configuration variable</title>
<updated>2014-02-20T18:56:44+00:00</updated>
<author>
<name>Lukas Fleischer</name>
<email>cgit@cryptocrack.de</email>
</author>
<published>2014-02-05T09:23:58+00:00</published>
<link rel='alternate' type='text/html' href='http://ns2.complex-space.net/cgit-70/commit/?id=a3722ec3c6660ace9fe637d617a0ca225acfacbc'/>
<id>a3722ec3c6660ace9fe637d617a0ca225acfacbc</id>
<content type='text'>
This can be used to specify the TTL for snapshots. Snapshots are usually
static and do not ever change. On the other hand, tarball generation is
CPU intensive.

One use case of this setting (apart from increasing the lifetime of
snapshot cache slots) is caching of snapshots while disabling the cache
for static/dynamic HTML pages (by setting TTL to zero for everything
except for snapshot requests).

Signed-off-by: Lukas Fleischer &lt;cgit@cryptocrack.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This can be used to specify the TTL for snapshots. Snapshots are usually
static and do not ever change. On the other hand, tarball generation is
CPU intensive.

One use case of this setting (apart from increasing the lifetime of
snapshot cache slots) is caching of snapshots while disabling the cache
for static/dynamic HTML pages (by setting TTL to zero for everything
except for snapshot requests).

Signed-off-by: Lukas Fleischer &lt;cgit@cryptocrack.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>diffstat: do not rely on uninitialized data</title>
<updated>2014-02-20T18:48:24+00:00</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2014-02-20T18:48:24+00:00</published>
<link rel='alternate' type='text/html' href='http://ns2.complex-space.net/cgit-70/commit/?id=7e1c0ed2aa50ed2290f63912897a3724b224b7ea'/>
<id>7e1c0ed2aa50ed2290f63912897a3724b224b7ea</id>
<content type='text'>
Right now if you visit:
&lt;http://git.zx2c4.com/systemd/diff/src/udev/udev-builtin-input_id.c?id=bcfce235&gt;
you'll see that if you reload the page a few times, a bunch of times the
diffstat comes out with no lines being shown or changed. I'm not
currently sure what the cause of this is, but I suspect it might have to
do with this uninitialized data.

Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Right now if you visit:
&lt;http://git.zx2c4.com/systemd/diff/src/udev/udev-builtin-input_id.c?id=bcfce235&gt;
you'll see that if you reload the page a few times, a bunch of times the
diffstat comes out with no lines being shown or changed. I'm not
currently sure what the cause of this is, but I suspect it might have to
do with this uninitialized data.

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