1662 Commits

Author SHA1 Message Date
c5548f08e4
Fix display of relative times
Change "min." to "minutes" and fixes nonsense times such as "2020-01-01 ago"
2025-05-16 18:20:40 +10:00
c262004043
Fix display of symlinks in directory listing 2025-05-16 18:08:02 +10:00
4a7a591fe4
Fix display of submodules in directory listing
Refactor directory listing code
2025-05-16 17:57:43 +10:00
e06adbbeb9
Add PKGBUILD 2025-05-16 16:43:26 +10:00
ebead97801
Allow customising path to themed.css 2025-05-16 16:19:42 +10:00
615420c062
Change htmlcc to git submodule 2025-05-16 15:21:13 +10:00
7ec4477c9a
Update footer to link to cgit-yli-theme repo 2025-05-16 14:48:04 +10:00
3dd92de14e
Add (void) to relevant function declarations 2025-05-15 17:38:13 +10:00
b851c7b269
Explicitly specify cgit emitter for htmlcc 2025-05-15 17:07:43 +10:00
90b658f767
Fix memory leaks 2025-05-15 16:00:17 +10:00
bc551c0d18
Fix behaviour of tree view when viewing root of commit 2025-05-15 14:57:45 +10:00
8f023f452d
fixup preserve 2025-05-15 14:57:45 +10:00
836f4cd06d
Refactor short_commit_id function 2025-05-15 14:57:45 +10:00
4358943af4
Preserve current branch selection across links 2025-05-15 14:57:45 +10:00
91ce363f0e
Add compare button to branches page 2025-05-15 14:57:44 +10:00
7f5688dc7e
Implement themed diff page 2025-05-15 14:57:44 +10:00
6fbf6cb4c7
Implement themed tree page 2025-05-15 14:57:43 +10:00
b9891a9f17
Implement themed summary page 2025-05-15 00:58:40 +10:00
afd1d440d6
Implement themed commit page 2025-05-15 00:58:40 +10:00
d8ae2c42e6
Implement themed log page 2025-05-15 00:58:40 +10:00
f39308f3c8
Refactor repo nav bars 2025-05-15 00:58:40 +10:00
4b05ac8a56
Commit CSS build pipeline 2025-05-15 00:58:39 +10:00
e4b108139e
Implement themed refs page 2025-05-15 00:58:29 +10:00
873e51f67b
Fix spacing on index page when multiple repos 2025-05-14 18:25:00 +10:00
5776aebb97
Template-based home page 2025-05-14 18:25:00 +10:00
e750dd63b0
Initial implementation of templating system 2025-05-14 18:25:00 +10:00
Christian Hesse
994d3fe1a8 git: update to v2.49.0
Update to git version v2.49.0, this requires changes for these
upstream commits:

* 88dd321cfedc6ee190dfafe4670a83ea33cdf4a3
  path: drop `git_path()` in favor of `repo_git_path()`

Signed-off-by: Christian Hesse <mail@eworm.de>
2025-03-15 13:03:23 +01:00
Christian Hesse
ce4a66b9d7 git: update to v2.48.1
Update to git version v2.48.0, no additional changes required.

Signed-off-by: Christian Hesse <mail@eworm.de>
2025-01-14 20:15:43 +01:00
Christian Hesse
be06bedb03 git: update to v2.48.0
Update to git version v2.48.0, no additional changes required.

Signed-off-by: Christian Hesse <mail@eworm.de>
2025-01-10 19:50:45 +01:00
Christian Hesse
99a2f47c96 git: update to v2.47.1
Update to git version v2.47.1, no additional changes required.

Signed-off-by: Christian Hesse <mail@eworm.de>
2024-11-25 10:05:37 +01:00
Christian Hesse
c1733e28d9 git: update to v2.47.0
Update to git version v2.47.0, this requires changes for these
upstream commits:

* e8207717f1623325fe1c95338fb03c1104ed5687
  refs: add referent to each_ref_fn

Signed-off-by: Christian Hesse <mail@eworm.de>
2024-10-07 17:34:42 +02:00
Christian Hesse
1cb701a9b6 git: update to v2.46.2
Update to git version v2.46.2, no additional changes required.

Signed-off-by: Christian Hesse <mail@eworm.de>
2024-09-26 19:40:06 +02:00
Christian Hesse
87fdb57d60 git: update to v2.46.1
Update to git version v2.46.1, no additional changes required.

Signed-off-by: Christian Hesse <mail@eworm.de>
2024-09-26 19:40:05 +02:00
Christian Hesse
09d24d7cd0 git: update to v2.46.0
Update to git version v2.46.0, this requires changes for these
upstream commits:

* e7da9385708accf518a80a1e17969020fb361048
  global: introduce `USE_THE_REPOSITORY_VARIABLE` macro

* 9da95bda74cf10e1475384a71fd20914c3b99784
  hash: require hash algorithm in `oidread()` and `oidclr()`

* 30aaff437fddd889ba429b50b96ea4c151c502c5
  refs: pass repo when peeling objects

* c8f815c2083c4b340d4148a15d45c55f2fcc7d3f
  refs: remove functions without ref store

Signed-off-by: Christian Hesse <mail@eworm.de>
2024-08-02 18:22:56 +02:00
Denis Pronin
fb87de795b fix building with clang
fix error that is given because of macro overlapping cgit_filter member:

../filter.c:388:10: error: no member named '__fprintf_chk' in
'struct cgit_filter'
  388 |         filter->fprintf(filter, f, prefix);
      |         ~~~~~~  ^
/usr/include/bits/stdio2.h:92:3: note: expanded from macro 'fprintf'
   92 |   __fprintf_chk (stream, __USE_FORTIFY_LEVEL - 1, __VA_ARGS__)
      |   ^
1 error generated.

Signed-off-by: Denis Pronin <dannftk@yandex.ru>
Signed-off-by: Christian Hesse <mail@eworm.de>
2024-07-16 13:26:10 +02:00
Christian Hesse
34c30d12fc ui-stats: add missing source header
Signed-off-by: Christian Hesse <mail@eworm.de>
2024-07-16 12:10:38 +02:00
Christian Hesse
b2c939af4b git: update to v2.45.2
Update to git version v2.45.2, no additional changes required.

Signed-off-by: Christian Hesse <mail@eworm.de>
2024-06-01 23:29:44 +02:00
Christian Hesse
92a8f1676a git: update to v2.45.1
Update to git version v2.45.1, no additional changes required.

Signed-off-by: Christian Hesse <mail@eworm.de>
2024-05-14 19:59:11 +02:00
Christian Hesse
dbadd856ba git: update to v2.45.0
Update to git version v2.45.0, this requires changes for these
upstream commits:

* 9720d23e8caf4adee44b3a32803a9bb0480118bd
  date: make DATE_MODE thread-safe

Signed-off-by: Christian Hesse <mail@eworm.de>
2024-04-29 21:13:53 +02:00
Christian Hesse
8905003cba git: update to v2.44.0
Update to git version v2.44.0, no additional changes required.

Signed-off-by: Christian Hesse <mail@eworm.de>
2024-02-23 18:28:47 +01:00
Christian Hesse
63d35e556f git: update to v2.43.2
Update to git version v2.43.2, no additional changes required.

(Git v2.43.1 fails to build, thus skipping.)

Signed-off-by: Christian Hesse <mail@eworm.de>
2024-02-14 20:40:39 +01:00
Christian Hesse
793c420897 git: update to v2.43.0
Update to git version v2.43.0, no additional changes required.

Signed-off-by: Christian Hesse <mail@eworm.de>
2023-11-20 20:45:03 +01:00
Christian Hesse
a95762af1a git: update to v2.42.1
Update to git version v2.42.1, no additional changes required.

Signed-off-by: Christian Hesse <mail@eworm.de>
2023-11-02 21:26:06 +01:00
Christian Hesse
2f50b47c72 git: update to v2.42.0
Update to git version v2.42.0, this requires changes for these
upstream commits:

* bc5c5ec0446895f5c4139cd470066beb3c4ac6d5
  cache.h: remove this no-longer-used header

* aba070683295a20bdf4f49146384984961c794b2
  path: move related function to path

* a4e7e317f8f27f861321e6eb08b9c8c0f3ab570c
  config: add ctx arg to config_fn_t

Signed-off-by: Christian Hesse <mail@eworm.de>
2023-08-21 20:56:40 +02:00
Christian Hesse
a6da40bf84 git: update to v2.41.0
Update to git version v2.41.0, with lots of changes...
This requires changes for these upstream commits:

* 60ff56f50372c1498718938ef504e744fe011ffb
  banned.h: mark `strtok()` and `strtok_r()` as banned

* 52acddf36c8cb3778ab2098a0d95cc2e375a4069
  string-list: multi-delimiter `string_list_split_in_place()`

* d850b7a545fcfbd97460a921c7f7c59d933eb0f7
  cocci: apply the "cache.h" part of "the_repository.pending"

* cb338c23d6d518947bf6f7240bf30e2ec232bd3b
  cocci: apply the "commit-reach.h" part of "the_repository.pending"

* ecb5091fd4301ac647db0bd2504112b38f7ee06d
  cocci: apply the "commit.h" part of "the_repository.pending"

* 085390328f5fe1dfba67039b1fd6cc51546a4e41
  cocci: apply the "diff.h" part of "the_repository.pending"

* bc726bd075929aab6b3e09d4dd5c2b0726fd5350
  cocci: apply the "object-store.h" part of "the_repository.pending"

* bab821646a74c446370fa8d01ca851f247df5033
  cocci: apply the "pretty.h" part of "the_repository.pending"

* afe27c889429438829bc8818ed17e4960bd3ef02
  cocci: apply the "packfile.h" part of "the_repository.pending"

* 12cb1c10a64170a5d600dd1c6c8abfeec105fb6b
  cocci: apply the "refs.h" part of "the_repository.pending"

* 035c7de9e9ea11d26df5f9e4bb117f91ed11a9fd
  cocci: apply the "revision.h" part of "the_repository.pending"

... and some more I missed to list 😜 - for example the move and cleanup
of headers and includes (see changes in `cgit.h`) comes to mind...

Signed-off-by: Christian Hesse <mail@eworm.de>
2023-06-01 12:00:43 +02:00
Christian Hesse
0e6744b308 git: update to v2.40.1
Update to git version v2.40.1, no additional changes required.

Signed-off-by: Christian Hesse <mail@eworm.de>
2023-04-25 19:12:11 +02:00
Christian Hesse
2593cd8138 git: update to v2.40.0
Update to git version v2.40.0, no additional changes required.

Signed-off-by: Christian Hesse <mail@eworm.de>
2023-03-13 20:38:46 +01:00
Christian Hesse
4dee601bb6 git: update to v2.39.2
Update to git version v2.39.2, no additional changes required.

Signed-off-by: Christian Hesse <mail@eworm.de>
2023-02-14 20:55:47 +01:00
Christian Hesse
6feb1b669b git: update to v2.39.1
Update to git version v2.39.1, no additional changes required.

Signed-off-by: Christian Hesse <mail@eworm.de>
2023-01-18 07:58:23 +01:00
Samuel Lidén Borell
00ecfaadea config: make empty js= omit script tag
According to the cgitrc man page, an empty js= value should cause the
script tag to be omitted. But instead, a script tag with an empty URL
is emitted. The same applies to css. So, skip emitting a tag if the
specified string is empty.

Signed-off-by: Samuel Lidén Borell <samuel@kodafritt.se>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2023-01-10 17:52:54 +01:00