<feed xmlns='http://www.w3.org/2005/Atom'>
<title>cgit/ui-stats.c, branch ch/cgitrc</title>
<subtitle>🍴 My patches to cgit
</subtitle>
<id>https://git.ache.one/cgit/atom?h=ch%2Fcgitrc</id>
<link rel='self' href='https://git.ache.one/cgit/atom?h=ch%2Fcgitrc'/>
<link rel='alternate' type='text/html' href='https://git.ache.one/cgit/'/>
<updated>2019-06-05T13:37:49Z</updated>
<entry>
<title>git: update to v2.21.0</title>
<updated>2019-06-05T13:37:49Z</updated>
<author>
<name>Christian Hesse</name>
<email>mail@eworm.de</email>
</author>
<published>2019-02-24T20:19:46Z</published>
<link rel='alternate' type='text/html' href='https://git.ache.one/cgit/commit/?id=985fba80d06f37fdba5e72d738ce21ab5ab5a76d'/>
<id>urn:sha1:985fba80d06f37fdba5e72d738ce21ab5ab5a76d</id>
<content type='text'>
Update to git version v2.21.0. Required changes follow upstream commits:

* 6a7895fd8a3bd409f2b71ffc355d5142172cc2a0
  (commit: prepare free_commit_buffer and release_commit_memory for
  any repo)

* e092073d643b17c82d72cf692fbfaea9c9796f11
  (tree.c: make read_tree*() take 'struct repository *')

Signed-off-by: Christian Hesse &lt;mail@eworm.de&gt;
Reviewed-by: John Keeping &lt;john@keeping.me.uk&gt;
</content>
</entry>
<entry>
<title>forms: action should not be empty</title>
<updated>2016-05-12T19:29:49Z</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2016-05-12T19:29:40Z</published>
<link rel='alternate' type='text/html' href='https://git.ache.one/cgit/commit/?id=c34e28835bc06ea9f76f440909f59a697910e9e8'/>
<id>urn:sha1:c34e28835bc06ea9f76f440909f59a697910e9e8</id>
<content type='text'>
Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</content>
</entry>
<entry>
<title>ui-stats: cast pointer before checking for zero</title>
<updated>2016-02-08T17:27:38Z</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2016-02-08T14:12:35Z</published>
<link rel='alternate' type='text/html' href='https://git.ache.one/cgit/commit/?id=bdcbe0922d7099ebd61d875709ea9408bc1d7543'/>
<id>urn:sha1:bdcbe0922d7099ebd61d875709ea9408bc1d7543</id>
<content type='text'>
We abuse the "void *util" field as a counter and recently started to
cast it to a uintptr_t to avoid risking nasal demons by performing
arithmetic on a void pointer.

However, compilers are also known to do "interesting" things if they
know that a pointer is or isn't NULL.  Make this safer by checking if
the counter (after casting) is non-zero rather than checking if the
pointer is non-null.

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</content>
</entry>
<entry>
<title>ui-stats: if we're going to abuse void*, do it safely</title>
<updated>2016-02-08T13:35:47Z</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2016-02-08T13:35:47Z</published>
<link rel='alternate' type='text/html' href='https://git.ache.one/cgit/commit/?id=a8b9ef8c1c68fbb9c89db2d8c12dca38c15e2bfd'/>
<id>urn:sha1:a8b9ef8c1c68fbb9c89db2d8c12dca38c15e2bfd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>stats: move layout into page function</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:17Z</published>
<link rel='alternate' type='text/html' href='https://git.ache.one/cgit/commit/?id=892c5441f4af2f53a3b1906c4d7e458829e0cf0a'/>
<id>urn:sha1:892c5441f4af2f53a3b1906c4d7e458829e0cf0a</id>
<content type='text'>
This also allows us to return proper HTTP error codes for invalid
requests.

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</content>
</entry>
<entry>
<title>ui-stats: make cgit_period definitions 'static const'</title>
<updated>2015-03-09T16:40:02Z</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2015-03-08T16:32:23Z</published>
<link rel='alternate' type='text/html' href='https://git.ache.one/cgit/commit/?id=bd9fb0324d776aa5583a70a6125fce47697701b1'/>
<id>urn:sha1:bd9fb0324d776aa5583a70a6125fce47697701b1</id>
<content type='text'>
These definitions should not be modified (and never are) so we can move
them to .rodata.

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</content>
</entry>
<entry>
<title>ui-stats.c: set parent pointer to NULL after freeing it</title>
<updated>2014-07-28T00:01:47Z</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2014-07-27T10:56:20Z</published>
<link rel='alternate' type='text/html' href='https://git.ache.one/cgit/commit/?id=2eea471a7821f1f8bf2a4ce61bb748dcb9f7fa17'/>
<id>urn:sha1:2eea471a7821f1f8bf2a4ce61bb748dcb9f7fa17</id>
<content type='text'>
We do this everywhere else, so we should be doing it here as well.

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</content>
</entry>
<entry>
<title>git: update to v2.0.3</title>
<updated>2014-07-28T00:01:35Z</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2014-07-27T10:56:19Z</published>
<link rel='alternate' type='text/html' href='https://git.ache.one/cgit/commit/?id=865afe0eb1b5e6485fe0f65472e6635266e393b1'/>
<id>urn:sha1:865afe0eb1b5e6485fe0f65472e6635266e393b1</id>
<content type='text'>
This is slightly more involved than just bumping the version number
because it pulls in a change to convert the commit buffer to a slab,
removing the "buffer" field from "struct commit".  All sites that access
"commit-&gt;buffer" have been changed to use the new functions provided for
this purpose.

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</content>
</entry>
<entry>
<title>Switch to exclusively using global ctx</title>
<updated>2014-01-16T23:44:54Z</updated>
<author>
<name>Lukas Fleischer</name>
<email>cgit@cryptocrack.de</email>
</author>
<published>2014-01-15T20:53:15Z</published>
<link rel='alternate' type='text/html' href='https://git.ache.one/cgit/commit/?id=f60ffa143cca61e9729ac71033e1a556cf422871'/>
<id>urn:sha1:f60ffa143cca61e9729ac71033e1a556cf422871</id>
<content type='text'>
Drop the context parameter from the following functions (and all static
helpers used by them) and use the global context instead:

* cgit_print_http_headers()
* cgit_print_docstart()
* cgit_print_pageheader()

Remove context parameter from all commands

Drop the context parameter from the following functions (and all static
helpers used by them) and use the global context instead:

* cgit_get_cmd()
* All cgit command functions.
* cgit_clone_info()
* cgit_clone_objects()
* cgit_clone_head()
* cgit_print_plain()
* cgit_show_stats()

In initialization routines, use the global context variable instead of
passing a pointer around locally.

Remove callback data parameter for cache slots

This is no longer needed since the context is always read from the
global context variable.

Signed-off-by: Lukas Fleischer &lt;cgit@cryptocrack.de&gt;
</content>
</entry>
<entry>
<title>ui-stats.c: Remove unused macro</title>
<updated>2014-01-08T13:59:38Z</updated>
<author>
<name>Lukas Fleischer</name>
<email>cgit@cryptocrack.de</email>
</author>
<published>2013-11-22T08:50:17Z</published>
<link rel='alternate' type='text/html' href='https://git.ache.one/cgit/commit/?id=e21da6c2a6ffcd8b4a2b2b06cf7486f36f291a5b'/>
<id>urn:sha1:e21da6c2a6ffcd8b4a2b2b06cf7486f36f291a5b</id>
<content type='text'>
Signed-off-by: Lukas Fleischer &lt;cgit@cryptocrack.de&gt;
</content>
</entry>
</feed>
