aboutsummaryrefslogtreecommitdiffstats
path: root/src/git.rs
AgeCommit message (Collapse)Author
2021-06-07Add license (GNU GPLv3+)Teddy Wing
2021-05-30main::update(): Update repository description on fetch updateTeddy Wing
If the repository was updated, write the description into the `description` file. Add a `github::Repo.description()` method to get an empty string if the description is `None`. This facilitates writing to the `description` file.
2021-05-30git::mirror(): Write empty description if `description` is `None`Teddy Wing
This gets rid of the default description string: Unnamed repository; edit this file 'description' to name the repository.
2021-05-30Replace boxed errors with concrete error typesTeddy Wing
2021-05-30Add repository description when mirroringTeddy Wing
Copy the repository description from GitHub into the clone repo.
2021-05-29src/git.rs: Add function documentationTeddy Wing
2021-05-29Add function to update a Git repositoryTeddy Wing
Should work like: $ git remote update From what I can tell from: https://github.com/git/git/blob/a0dda6023ed82b927fa205c474654699a5b07a82/builtin/remote.c#L1452-L1490 this translates to something like: $ git fetch --prune --multiple default --all
2021-05-29git::mirror(): Extract argumentsTeddy Wing
Move hard-coded repository values to function arguments.
2021-05-29Work out how to mirror a Git repositoryTeddy 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