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
6bec0eda69
docs: Fix repos command
2021-11-24 19:42:33 +01:00
7541a74fa4
Update dependency locks
2021-11-24 19:37:35 +01:00
4ad4a55631
Use single quotes for remote/branch separator
2021-11-24 19:37:11 +01:00
e2db935c74
Add script to update cargo dependencies
2021-11-24 19:22:18 +01:00
99c4f33e28
cargo: Specify patch versions for dependencies
2021-11-24 19:22:18 +01:00
f50fc9aee2
Add github action to build docs
2021-11-24 19:22:18 +01:00
1cf5585e2c
Add documentation
2021-11-24 19:22:18 +01:00
0c6a4a72ef
Move repo-tree functionality into own subcommand
2021-11-24 19:22:18 +01:00
e516a652f5
Fix typo
2021-11-24 17:22:10 +01:00