Commit Graph

10 Commits

Author SHA1 Message Date
38c66cad62 Add git forge integration 2022-05-26 17:55:07 +02:00
584f68ba42 clap: Remove deprecation warning 2022-02-21 20:28:30 +01:00
9b64de7991 Add YAML as a config format option
@mustafa89 ;)
2022-01-22 11:23:53 +01:00
6e4c388195 Add --stash options to pull and rebase 2022-01-22 11:23:53 +01:00
1ae0ceff60 dependencies: Update clap to 3.0.5 2022-01-08 14:47:29 +01:00
ef8a57c60e Add rebase option for worktrees 2022-01-04 11:18:48 +01:00
717b0d3a74 Add fetch & pull option to worktrees 2021-12-31 11:20:01 +01:00
92e4856dd9 Remove branch-namespace option 2021-12-23 18:33:14 +01:00
b183590096 Add default tracking configuration 2021-12-23 18:33:14 +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