e04f065d42
Drop nightly requirement
2023-08-09 00:30:57 +02:00
8d4af73364
Merge pull request #54 from BapRx/feat/add-verbosity-repo-detection
...
feat: Return an error if the remote type cannot be detected
2023-05-04 14:36:12 +02:00
Hannes Körber
f2fa3411d8
Fix const Option::unwrap_or()
...
Fixes #57
2023-05-04 11:27:56 +02:00
Baptiste Roux
19443bc4ca
chore: Update warning message
2023-02-10 18:02:13 +01:00
Baptiste Roux
e796362e6b
chore: Avoid passing unnecessary reference
2023-02-07 16:49:21 +01:00
Baptiste Roux
37094a3295
feat: Return an error if the remote type cannot be detected
2023-02-02 23:11:04 +01:00
Baptiste Roux
100bac8f87
chore: Return error if the regex is invalid
2023-02-01 18:24:39 +01:00
Baptiste Roux
fdafa3aa81
chore: Pass regex pattern as slice instead of string
2023-02-01 18:14:56 +01:00
Baptiste Roux
956b172426
chore(repo/find): Exlude paths based on regex
2023-01-14 14:40:11 +01:00
23fc942db7
Warn on empty filters
...
Closes #29
2022-12-12 15:43:27 +01:00
38bba1472e
Improve error messages during sync errors
...
Closes #46
2022-12-12 15:21:42 +01:00
7d131bbacf
'Enable deny_unknown_fields for all config structs
2022-12-12 15:10:00 +01:00
6e79dd318a
Make clippy happy
2022-12-12 14:46:08 +01:00
3151b97bc0
dependencies: Update shellexpand to 3.0.0
2022-12-12 14:41:07 +01:00
3a568a774a
Remove init_worktree from sync config
...
It was currently unused and only confuses. The initialization of
worktrees can currently only be controlled via the `--init-worktree`
command line switch. This is unfortunate, but it's the only was to
handle it right now. Changing it would mean a restructure of the code,
mainly the `tree::sync_trees` function.
2022-10-06 12:59:56 +02:00
c6a27525fd
Remove unnecessary deref
2022-10-06 12:20:30 +02:00
5880066531
cli: Update code for clap v4
2022-10-06 12:17:26 +02:00
Vincent Rischmann
061265bbd0
catch the error returned by add_repo_status
...
If add_repo_status returns an error it will eventually be printed to the
user but there won't be any repository information:
[✘] Error getting status: No branch checked out
Catch the error earlier so we can print the repository name:
[✘] Error: freebsd-src: Couldn't add repo status: No branch checked out
2022-09-22 21:10:16 +02:00
bfd7b01ea4
Use en_US for spelling
2022-06-30 20:33:51 +02:00
d8dd604174
Use safer method to remove empty directory
2022-06-30 19:59:46 +02:00
64d8397092
Remove debug output
2022-06-30 19:56:22 +02:00
48fa888f9b
Print each unmanaged repo only once
2022-06-30 19:08:03 +02:00
7d8fbb844e
Properly handle deletion of nested worktrees
2022-06-29 23:40:23 +02:00
f027191896
Update worktree handling
...
That's a big one, see the module-level comment for details.
2022-06-23 19:21:05 +02:00
ee44fa40fd
Add method to get owned commit of branch
2022-06-23 19:21:05 +02:00
e78dcf471a
Print warning when giving --track and --no-track
2022-06-23 19:21:05 +02:00
b77c442f56
Forbid unsafe code
2022-06-17 02:24:15 +02:00
c56765ce26
Match branches with worktrees always, even with slashes
2022-06-17 01:50:01 +02:00
27ef86c1b4
forge: Use "origin" as the default remote name
...
Close #33
2022-06-15 20:49:15 +02:00
d0cbc2f985
forge: Add option to specify remote name
...
Close #32
2022-06-15 20:39:54 +02:00
7363ed48b4
Add clippy suggestions
2022-06-14 00:15:15 +02:00
96943c1483
Use new cargo fmt
2022-06-14 00:15:15 +02:00
30480fb568
Update handling of branches on worktree setup
2022-06-14 00:15:15 +02:00
c3aaea3332
Quote branch name on output
2022-06-14 00:15:15 +02:00
fad6f71876
Improve default branch guessing
2022-06-14 00:15:15 +02:00
73158e3d47
Print ok-ish stuff to stdout
2022-06-14 00:15:15 +02:00
6f4ae88260
Add some comments about repo syncing
2022-06-14 00:15:15 +02:00
a8f8803a92
Do not fail on empty clone target
2022-06-14 00:15:15 +02:00
581a513ebd
Initialize local branches on clone
2022-06-14 00:15:15 +02:00
f1e212ead9
Add function to get all remote branches
2022-06-14 00:15:15 +02:00
bc3001a4e6
Add function to get basename of branch
2022-06-14 00:15:15 +02:00
c4fd1d0452
Refactor default_branch() for readability
2022-06-14 00:15:15 +02:00
1a65a163a1
Use opaque type for auth token
...
So we cannot accidentially output it, as it does not implement
`Display`.
2022-06-14 00:15:15 +02:00
4f68a563c6
providers: Use references for field access
2022-06-14 00:15:15 +02:00
e04e8ceeeb
Use opaque type for auth token
...
So we cannot accidentially output it, as it does not implement
`Display`.
2022-06-14 00:15:15 +02:00
8aaaa55d45
gitlab: Add alternate error field in JSON response
2022-05-27 23:37:54 +02:00
df39bb3076
gitlab: Fix detection of private repositories
2022-05-27 23:37:54 +02:00
bc3d4e1c49
Properly escape URL parameters
2022-05-27 23:37:54 +02:00
32eb4676ee
Restructure into smaller modules
2022-05-27 23:37:54 +02:00
62c1e430b2
Derive Eq when deriving PartialEq
...
There is a clippy lint for this.
2022-05-26 18:57:31 +02:00