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
1212917fae
Add unit tests for Repo::fullname()
2022-05-26 18:57:31 +02:00
b17f4d68ef
Fix handling of unmanaged repositories
...
Before, there were warnings in case of nested trees.
2022-05-26 18:57:31 +02:00
b8c552fb62
Give repos a namespace to allow subdirectories
2022-05-26 18:57:31 +02:00
6ef759a14e
Separate config structs from internal structs
2022-05-26 18:57:31 +02:00
35e7c34d11
Do not panic when finding unmanaged worktrees fails
2022-05-26 18:57:31 +02:00
50a0f4d766
Fail properly when default branch cannot be detected
2022-05-26 18:57:31 +02:00
1db3eadd4c
Fix formatting
2022-05-26 18:57:14 +02:00
127dd0535e
Normalize paths when printing configuration
2022-05-26 18:53:12 +02:00
664d44eddc
Only initialize worktrees for actually cloned repos
2022-05-26 18:53:12 +02:00
f2f1d5bcaf
Fix worktree initialization
2022-05-26 18:53:12 +02:00
38c66cad62
Add git forge integration
2022-05-26 17:55:07 +02:00
c3c1c98913
Run cargo fmt
2022-05-10 18:26:06 +02:00