Update worktree handling

That's a big one, see the module-level comment for details.
This commit is contained in:
2022-06-23 19:19:28 +02:00
parent ee44fa40fd
commit f027191896
2 changed files with 747 additions and 234 deletions

View File

@@ -513,7 +513,14 @@ fn main() {
track, track,
action_args.no_track, action_args.no_track,
) { ) {
Ok(_) => print_success(&format!("Worktree {} created", &action_args.name)), Ok(warnings) => {
if let Some(warnings) = warnings {
for warning in warnings {
print_warning(&warning);
}
}
print_success(&format!("Worktree {} created", &action_args.name));
}
Err(error) => { Err(error) => {
print_error(&format!("Error creating worktree: {}", error)); print_error(&format!("Error creating worktree: {}", error));
process::exit(1); process::exit(1);

File diff suppressed because it is too large Load Diff