Age | Commit message (Collapse) | Author | |
---|---|---|---|
2021-05-30 | Set repository mtime to GitHub `updated_at` time | Teddy Wing | |
CGit reads the repository modification time from the following locations, in order from top to bottom: 1. agefile 2. repo.git/refs/heads/{default_branch | "master"} 3. repo.git/packed-refs (https://git.zx2c4.com/cgit/tree/ui-repolist.c?id=bd6f5683f6cde4212364354b3139c1d521f40f39#n35) Update the `/refs/heads/{default_branch}` file mtime when cloning and updating the repo to match the GitHub `updated_at` time. This ensures that when mirroring old repositories, they don't appear at the top of the CGit repository index list when sorting by age. | |||
2021-05-30 | Replace boxed errors with concrete error types | Teddy Wing | |
2021-05-30 | database: Use a custom `Error` type | Teddy Wing | |
Get rid of the boxed errors to make matching on errors easier. | |||
2021-05-29 | Start setting up database interface | Teddy Wing | |
2021-05-29 | Work out how to mirror a Git repository | Teddy Wing | |
Based on the guide here: https://libgit2.org/docs/guides/101-samples/#repositories_clone_mirror References: https://github.com/libgit2/libgit2sharp/issues/577 https://github.com/libgit2/libgit2.github.io/pull/31 | |||
2021-05-29 | Parse GitHub API response to a struct | Teddy Wing | |
2021-05-29 | Make a test request to the GitHub API to get user repos | Teddy Wing | |
2021-05-29 | New Rust v1.50.0 project | Teddy Wing | |