mirror of
https://seed.radicle.dev/rad:z6cFWeWpnZNHh9rUW8phgA3b5yGt.git
synced 2026-11-16 00:10:35 +08:00
To have a clear separation of which are public functions and which are private functions, two `impl Repository` blocks are created. This lead to some refactoring of names and inclusion of helper functions, removing the need for the `git2_repo` function. The `get_commit_stats` function seemed off, since the `Stats` in this case are to do with the repository. Thus, it does not take a commit anymore and instead uses the `head` commit to calculate the repository's `Stats`. Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com> X-Clacks-Overhead: GNU Terry Pratchett