<feed xmlns='http://www.w3.org/2005/Atom'>
<title>cgit/cgit.h, branch ch/log-commit-message</title>
<subtitle>A hyperfast web frontend for git repositories written in C.</subtitle>
<id>http://git.cetero.st/cgit/atom/cgit.h?h=ch%2Flog-commit-message</id>
<link rel='self' href='http://git.cetero.st/cgit/atom/cgit.h?h=ch%2Flog-commit-message'/>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/'/>
<updated>2022-12-19T15:50:23Z</updated>
<entry>
<title>js: add dynamic age update</title>
<updated>2022-12-19T15:50:23Z</updated>
<author>
<name>Andy Green</name>
<email>andy@warmcat.com</email>
</author>
<published>2018-06-24T07:05:20Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=907134b7a29177cb45aa461c549c004b1ae875af'/>
<id>urn:sha1:907134b7a29177cb45aa461c549c004b1ae875af</id>
<content type='text'>
This patch updates the emitted "ages" dynamically on the client side.

After updating on completion of the document load, it sets a timer
to update according to the smallest age it found.  If there are any
ages listed in minutes, then it will update again in 10s.  When the
most recent age is in hours, it updates every 5m.  If days, then
every 30m and so on.

This keeps the cost of the dynamic updates at worst once per 10s.
The updates are done entirely on the client side without contact
with the server.

To make this work reliably, since parsing datetimes is unreliable in
browser js, the unix time is added as an attribute to all age spans.

To make that reliable cross-platform, the unix time is treated as a
uint64_t when it is formatted for printing.

The rules for display conversion of the age is aligned with the
existing server-side rules in ui-shared.h.

If the client or server-side time are not synchronized by ntpd etc,
ages shown on the client will not relate to the original ages computed
at the server.  The client updates the ages immediately when the
DOM has finished loading, so in the case the times at the server and
client are not aligned, this patch changes what the user sees on the
page to reflect patch age compared to client time.

If the server and client clocks are aligned, this patch makes no
difference to what is seen on the page.

Signed-off-by: Andy Green &lt;andy@warmcat.com&gt;
Signed-off-by: Christian Hesse &lt;mail@eworm.de&gt;
</content>
</entry>
<entry>
<title>config: add js</title>
<updated>2022-12-19T15:50:21Z</updated>
<author>
<name>Andy Green</name>
<email>andy@warmcat.com</email>
</author>
<published>2018-06-23T10:25:53Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=aee39b4e9a45e1ba507c0017de50bb9dbbae7af8'/>
<id>urn:sha1:aee39b4e9a45e1ba507c0017de50bb9dbbae7af8</id>
<content type='text'>
Just like the config allows setting css URL path, add a config for
setting the js URL path

Signed-off-by: Andy Green &lt;andy@warmcat.com&gt;
Reviewed-by: John Keeping &lt;john@keeping.me.uk&gt;
Signed-off-by: Christian Hesse &lt;mail@eworm.de&gt;
</content>
</entry>
<entry>
<title>css: change to be a list</title>
<updated>2022-12-19T15:49:09Z</updated>
<author>
<name>Andy Green</name>
<email>andy@warmcat.com</email>
</author>
<published>2018-07-03T03:33:59Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=093ac9697068833a15cae2dbbd5ffbc0203741c0'/>
<id>urn:sha1:093ac9697068833a15cae2dbbd5ffbc0203741c0</id>
<content type='text'>
Without changing the default behaviour of including
/cgit.css if nothing declared, allow the "css" config
to be given multiple times listing one or more
alternative URL paths to be included in the document
head area.

Signed-off-by: Andy Green &lt;andy@warmcat.com&gt;
Signed-off-by: Christian Hesse &lt;mail@eworm.de&gt;
</content>
</entry>
<entry>
<title>global: replace references to 'sha1' with 'oid'</title>
<updated>2020-10-20T21:57:12Z</updated>
<author>
<name>Christian Hesse</name>
<email>mail@eworm.de</email>
</author>
<published>2020-10-20T21:32:45Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=779631c6dc23c15bbbf45a7c7ab9fffb619037b7'/>
<id>urn:sha1:779631c6dc23c15bbbf45a7c7ab9fffb619037b7</id>
<content type='text'>
For some time now sha1 is considered broken and upstream is working to
replace it with sha256. Replace all references to 'sha1' with 'oid',
just as upstream does.

Signed-off-by: Christian Hesse &lt;mail@eworm.de&gt;
</content>
</entry>
<entry>
<title>git: update to v2.29.0</title>
<updated>2020-10-19T18:27:28Z</updated>
<author>
<name>Christian Hesse</name>
<email>mail@eworm.de</email>
</author>
<published>2020-10-06T14:32:08Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=629659d2cffbf059374fc53e6400ff0bebe1ddde'/>
<id>urn:sha1:629659d2cffbf059374fc53e6400ff0bebe1ddde</id>
<content type='text'>
Update to git version v2.29.0, this requires changes for these
upstream commits:

* dbbcd44fb47347a3fdbee88ea21805b7f4ac0b98
  strvec: rename files from argv-array to strvec

* 873cd28a8b17ff21908c78c7929a7615f8c94992
  argv-array: rename to strvec

* d70a9eb611a9d242c1d26847d223b8677609305b
  strvec: rename struct fields

* 6a67c759489e1025665adf78326e9e0d0981bab5
  test-lib-functions: restrict test_must_fail usage

Signed-off-by: Christian Hesse &lt;mail@eworm.de&gt;
</content>
</entry>
<entry>
<title>ui-tree: allow per repository override for enable-blame</title>
<updated>2019-06-25T19:40:59Z</updated>
<author>
<name>Christian Hesse</name>
<email>mail@eworm.de</email>
</author>
<published>2019-02-26T16:08:31Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=e1ad15d368bdeb1bffea588b93a29055c5dfb7f4'/>
<id>urn:sha1:e1ad15d368bdeb1bffea588b93a29055c5dfb7f4</id>
<content type='text'>
The blame operation can cause high cost in terms of CPU load for huge
repositories. Let's add a per repository override for enable-blame.

Signed-off-by: Christian Hesse &lt;mail@eworm.de&gt;
</content>
</entry>
<entry>
<title>git: update to v2.19.1</title>
<updated>2018-10-12T21:06:02Z</updated>
<author>
<name>Christian Hesse</name>
<email>mail@eworm.de</email>
</author>
<published>2018-08-28T16:27:00Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=2c9f56f3e1c754f60ccffbc6c745b9d5a81ea005'/>
<id>urn:sha1:2c9f56f3e1c754f60ccffbc6c745b9d5a81ea005</id>
<content type='text'>
Update to git version v2.19.1. Required changes follow upstream commits:

* commit: add repository argument to get_cached_commit_buffer
  (3ce85f7e5a41116145179f0fae2ce6d86558d099)

* commit: add repository argument to lookup_commit_reference
  (2122f6754c93be8f02bfb5704ed96c88fc9837a8)

* object: add repository argument to parse_object
  (109cd76dd3467bd05f8d2145b857006649741d5c)

* tag: add repository argument to deref_tag
  (a74093da5ed601a09fa158e5ba6f6f14c1142a3e)

* tag: add repository argument to lookup_tag
  (ce71efb713f97f476a2d2ab541a0c73f684a5db3)

* tree: add repository argument to lookup_tree
  (f86bcc7b2ce6cad68ba1a48a528e380c6126705e)

* archive.c: avoid access to the_index
  (b612ee202a48f129f81f8f6a5af6cf71d1a9caef)

* for_each_*_object: move declarations to object-store.h
  (0889aae1cd18c1804ba01c1a4229e516dfb9fe9b)

Signed-off-by: Christian Hesse &lt;mail@eworm.de&gt;
</content>
</entry>
<entry>
<title>extra-head-content: introduce another option for meta tags</title>
<updated>2018-07-03T18:37:00Z</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2018-02-12T22:10:06Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=b522a302c9c4fb9fd9e1ea829ee990afc74980ca'/>
<id>urn:sha1:b522a302c9c4fb9fd9e1ea829ee990afc74980ca</id>
<content type='text'>
This is to support things like go-import meta tags, which are on a
per-repo basis.

Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</content>
</entry>
<entry>
<title>global: remove functionality we deprecated for cgit v1.0</title>
<updated>2018-06-27T16:13:03Z</updated>
<author>
<name>Christian Hesse</name>
<email>mail@eworm.de</email>
</author>
<published>2018-06-18T09:48:43Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=54d37dc154f5308459df0a90c81dabd0245b6c17'/>
<id>urn:sha1:54d37dc154f5308459df0a90c81dabd0245b6c17</id>
<content type='text'>
The man page states these were deprecated for v1.0. We are past v1.1,
so remove the functionality.

Signed-off-by: Christian Hesse &lt;mail@eworm.de&gt;
Reviewed-by: John Keeping &lt;john@keeping.me.uk&gt;
</content>
</entry>
<entry>
<title>snapshot: strip bit from struct cgit_snapshot_format</title>
<updated>2018-06-27T16:13:00Z</updated>
<author>
<name>Christian Hesse</name>
<email>mail@eworm.de</email>
</author>
<published>2018-06-11T06:26:59Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=2f8648ff7f5c7119ab035c134504f04eefe068fb'/>
<id>urn:sha1:2f8648ff7f5c7119ab035c134504f04eefe068fb</id>
<content type='text'>
We had a static bit value in struct cgit_snapshot_format. We do not rely
on it and things can be calculated on the fly. So strip it.

Signed-off-by: Christian Hesse &lt;mail@eworm.de&gt;
</content>
</entry>
</feed>
