Commit graph

128 commits

Author SHA1 Message Date
729b3ba672 Simplify template types 2023-08-06 18:33:50 +02:00
7d314b98ae Remove placeholder links 2023-08-06 18:33:50 +02:00
4f11b9c912 Insert new commits into the queue 2023-08-06 18:33:50 +02:00
553a56bb12 Rename db to util and use OffsetDateTime with sqlx 2023-08-06 17:41:07 +02:00
6fcd073738 Don't block tokio when collecting new commits 2023-08-06 15:00:11 +02:00
5709a69694 Shut down faster when receiving second SIGINT/SIGTERM 2023-08-06 14:10:18 +02:00
b8c3ce5d47 Order parents and children 2023-08-06 13:57:17 +02:00
520ee0f7da Sort and count refs 2023-08-06 13:53:31 +02:00
72f762464d Show all refs on index page 2023-08-06 13:45:16 +02:00
f080b0fe4c Log occasionally when inserting lots of commits 2023-08-06 13:26:18 +02:00
0146bcb016 Get rid of repo module 2023-08-06 13:14:21 +02:00
2be929ec94 Rename field for consistency 2023-08-06 13:14:21 +02:00
dca83eed55 Show tracked refs from db 2023-08-06 13:14:21 +02:00
21d97a5bf4 Store all refs in the db 2023-08-06 12:59:15 +02:00
7768e4ad4b Serve commit page entirely from the db 2023-08-06 11:53:48 +02:00
0d3cd15b03 Store more commit info in db 2023-08-06 10:47:45 +02:00
0f3cf296f1 Add todos 2023-08-06 03:00:06 +02:00
19a7bda8ab Remove unnecessary index 2023-08-06 03:00:02 +02:00
00a0934658 Remove outlier link to the right 2023-08-06 01:51:53 +02:00
4b31740758 Wrap more text in commit view 2023-08-06 01:35:36 +02:00
3be5673254 Remove whitespace at end of commit messages 2023-08-06 01:34:52 +02:00
d031eee14e Grey out untracked children 2023-08-06 00:53:26 +02:00
b83d908d4b Format author and committer time like git 2023-08-05 23:47:21 +02:00
128384bcf7 Add /commit/:hash page 2023-08-05 23:26:49 +02:00
965efa5b58 Add empty /commit/ page 2023-08-05 23:05:12 +02:00
eb29f1166a Refactor formatting functions 2023-08-05 23:04:28 +02:00
732c33d6f7 Fix VSCode config and dev instructions 2023-08-05 23:01:29 +02:00
755f23dbb9 Set page title properly 2023-08-05 21:33:46 +02:00
52e2d74b96 Make current tab bold 2023-08-05 21:17:46 +02:00
db814b6d40 Use <dl> for tracked refs 2023-08-05 21:08:01 +02:00
3b4d8dab72 List tracked refs on index page 2023-08-05 21:03:18 +02:00
2b4a5d4021 Add somehow::Error wrapping anyhow::Error 2023-08-05 20:42:08 +02:00
a5c0552341 Exclude hyper from normal-verbosity logs 2023-08-05 20:34:28 +02:00
5d62a2891c Update and document scripts 2023-08-05 19:42:59 +02:00
ca463b023e Fix project not compiling without dev.db
After this fix, rust-analyzer used via vscode still requires a dev.db
file, but this can easily be generated via ./meta/update_sqlx_data.
2023-08-05 16:20:32 +02:00
ed404f302e Style nav bar 2023-08-05 16:01:35 +02:00
e17483b4d6 Set up base template 2023-08-05 14:22:31 +02:00
feb73c96c4 Create basic logo 2023-08-05 14:11:11 +02:00
6d93e3bd70 Move web code to web module 2023-08-05 12:58:38 +02:00
3bfeb89686 Add indices for slightly better performance
With the linux kernel commits, this reduced the time to update commit
tracked flags from >60s to 44s, but this requires further testing before
committing to the indices.
2023-08-05 12:31:20 +02:00
523b82632f Rename migration according to sqlx convention 2023-08-05 12:21:07 +02:00
1f66fe0299 Add "tracked" column to table "commits" 2023-08-05 11:52:51 +02:00
b56d0df142 Refactor repo update code again 2023-08-05 11:51:34 +02:00
488ae76c72 Set up DATABASE_URL via .env file 2023-08-05 02:51:04 +02:00
5dbd8e886b Initialize repo and update tracked refs 2023-08-05 02:51:04 +02:00
5871b19f8e Fix repo update choking on duplicated parents 2023-08-05 01:55:40 +02:00
b26ab8feff Fix repo update choking on non-commit refs 2023-08-05 01:39:00 +02:00
1b8f3c9bc1 Reorganize config file 2023-08-05 01:23:12 +02:00
380756df16 Refactor repo update code 2023-08-05 01:23:12 +02:00
087416bf38 Improve performance by reordering inserts 2023-08-05 00:32:40 +02:00