Commit Graph

296 Commits

Author SHA1 Message Date
1a1231b672 depcheck: Add functionality to disable autoupdate for packages 2021-12-21 16:15:12 +01:00
a3ccea9dcb Justfile: Check cargo dep updates during "check" 2021-12-21 16:15:12 +01:00
4a9f1bc278 Make new clippy happy 2021-12-21 16:15:12 +01:00
0b181b9b79 Run cargo fmt with new cargo version 2021-12-21 16:15:12 +01:00
6d747d8e89 dependencies: Update git2 to 0.13.25 2021-12-21 16:15:12 +01:00
72dd861677 dependencies: Update serde to 1.0.131 2021-12-21 16:15:12 +01:00
59c6164c1f depcheck: Commit updates automatically 2021-12-21 16:15:12 +01:00
4722d5a8ff Fix dependencies to exact version 2021-12-21 16:15:12 +01:00
4eb88260c8 Fix missed rename of RepoHandle 2021-12-02 12:43:53 +01:00
a51e5f8918 Fix regression of find with broken repos 2021-12-02 12:43:45 +01:00
c66620a0fc Merge branch 'refactor' into develop 2021-12-01 20:12:37 +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
da601c2d5f Always use color in pytest 2021-12-01 20:12:11 +01:00
ed06c52c8f Add e2e test for finding in tree with broken repos 2021-12-01 20:03:25 +01:00
14b200ee3d Add nonnominandus to contributors 2021-12-01 19:44:46 +01:00
d5eddc4476 Add contributing guidelines 2021-12-01 19:44:46 +01:00
d26a76d064 Add GPLv3 license file 2021-12-01 19:44:46 +01:00
d39df526de Skip unneeded directory hashing in e2e tests 2021-12-01 19:44:46 +01:00
6e6050c71b Fix hashing of directory 2021-12-01 19:44:46 +01:00
98580d32ad Run e2e tests in tmpfs 2021-12-01 19:44:46 +01:00
115eb7c74a Merge pull request #11 from nonnominandus/master
Made a single error message not stall the repo finding process
2021-11-30 09:50:04 +01:00
Douwe Schulte
8b7b91d005 Made a single error message not stall the repo finding process 2021-11-29 21:13:39 +01:00
7aa45c7768 Merge branch 'develop' v0.4 2021-11-29 01:06:09 +01:00
a065de5b2d Release v0.4 2021-11-29 01:05:47 +01:00
d976ccefc2 Merge branch 'e2e' into develop 2021-11-29 00:54:25 +01:00
de186901d0 Support file remotes 2021-11-29 00:53:11 +01:00
c9f4d41780 Properly report push errors 2021-11-29 00:53:11 +01:00
b3906c646a Remove wrong error message about remote branch 2021-11-29 00:53:11 +01:00
43c47bdca6 Fail with non-zero exit code on clippy warnings 2021-11-29 00:45:41 +01:00
df0b5728fc Add test to "check" Justfile target 2021-11-29 00:42:36 +01:00
d0b78686e2 Add an E2E test suite 2021-11-29 00:42:36 +01:00
f02a0fc17a Format cargo update script with black 2021-11-29 00:42:36 +01:00
4e83aba672 Fix formatting of push error message 2021-11-29 00:42:36 +01:00
e2e55b8e79 Properly handle error during repo open 2021-11-29 00:42:36 +01:00
655379cd61 Return failures during sync 2021-11-29 00:42:36 +01:00
340085abf8 Detect change from worktree to non-worktree during sync 2021-11-29 00:42:36 +01:00
f5f8dfa188 Better error message when config not found 2021-11-29 00:42:36 +01:00
e43d4bf3cd Split unit and integ tests in Justfile 2021-11-29 00:23:42 +01:00
48f3bc0199 Support file remotes 2021-11-28 16:23:30 +01:00
0973ae36b8 Properly report push errors 2021-11-28 16:22:22 +01:00
09c67d4908 Remove wrong error message about remote branch 2021-11-28 16:22:22 +01:00
47841dadfb Release v0.3 2021-11-26 17:27:39 +01:00
102758c25c Release v0.3 v0.3 2021-11-26 17:22:09 +01:00
6aa385b044 Merge branch 'develop' 2021-11-26 17:21:48 +01:00
e44b63edbb Remove duplicate docs between README and docs 2021-11-26 17:21:37 +01:00
1e6c9407b6 Do not remove worktree for default branch 2021-11-26 17:21:37 +01:00
b967b6dca3 Set git config properly for worktrees on init/clone
Close #1
2021-11-26 17:21:37 +01:00
83973f8a1a Fix unnecessary to_string() 2021-11-26 17:21:37 +01:00
ff32759058 Add subcommand that converts existing repository
Close #6
2021-11-26 17:21:37 +01:00
b6c06e29a4 Release v0.2 v0.2 2021-11-24 19:50:45 +01:00