Commit Graph

12 Commits

Author SHA1 Message Date
72dd861677 dependencies: Update serde to 1.0.131 2021-12-21 16:15:12 +01:00
4722d5a8ff Fix dependencies to exact version 2021-12-21 16:15:12 +01:00
f0c8805cf3 Refactor
This refactors a huge chunk of the code base to make it more maintainable.

Main points:

* Proper separation between bin and lib. Bin handles argument parsing &
  validation and (most of) the output. Lib provides interfaces for all
  opreations.

* Before, libgit2 internals were literred throughout the codebase,
  mainly the `Repository` struct and `git2::Error` in Results. They
  library is now properly wrapped in `repo.rs`, which exposes only the
  required functionality. It also standardizes the Error messages
  (they're just Strings for now) and handles stuff like the copious
  usage of Options to wrap maybe-invalid-utf-8 values. The program will
  still panic on non-utf-8 Strings e.g. in git remotes, but I guess this
  is acceptable. If you actually manage to hit this case, I promise I'll
  fix it :D

* Many unwraps() are now gone and properly handled.

* The table printing functionality is now confined to `table.rs`,
  instead of passing tables as parameters through the whole program.
2021-12-01 20:12:24 +01:00
a065de5b2d Release v0.4 2021-11-29 01:05:47 +01:00
102758c25c Release v0.3 2021-11-26 17:22:09 +01:00
b6c06e29a4 Release v0.2 2021-11-24 19:50:45 +01:00
99c4f33e28 cargo: Specify patch versions for dependencies 2021-11-24 19:22:18 +01:00
78a957268d Add a few simple integration tests 2021-11-22 21:11:41 +01:00
163f142192 Add more metadata to Cargo.toml 2021-11-19 22:44:12 +01:00
5f0ec0fec8 Add status command 2021-11-19 22:24:21 +01:00
768268aae0 Add minimum required rustc version 2021-11-18 12:04:40 +01:00
f6a51c70cc Initial commit 2021-11-18 11:04:48 +01:00