Skip to content

Comments

sync: switch to child or available branch in worktree before deleting branch#5798

Merged
kevgo merged 44 commits intomainfrom
kg-sync-prune-main-other-worktree
Nov 22, 2025
Merged

sync: switch to child or available branch in worktree before deleting branch#5798
kevgo merged 44 commits intomainfrom
kg-sync-prune-main-other-worktree

Conversation

@kevgo
Copy link
Contributor

@kevgo kevgo commented Nov 22, 2025

resolves #5797

kevgo added 22 commits November 20, 2025 15:56
…untime.go branch_with_remote_gone_delete_if_empty_at_runtime.go checkout_parent_or_main.go
….feature ancestor_with_multiple_descendents_shipped.feature shipped_changes_conflict_with_existing_feature_branch.feature preserve_git_history.feature cli_flag.feature
…ranches.feature in_sync.feature verbose.feature
…d.feature dependent_ancestor_shipped_and_related_change_on_main.feature dependent_ancestor_shipped_and_unrelated_change_on_main.feature independent_ancestors_shipped.feature parent_shipped.feature parent_deleted_grandchild_conflict.feature dependent_ancestor_shipped.feature dependent_ancestor_shipped_and_main_unrelated_updated.feature dependent_ancestor_shipped_and_main_updates_same_location.feature independent_ancestors_shipped.feature parent_deleted_grandchild_conflicts.feature parent_shipped.feature auto_resolve.feature no_auto_resolve_cli.feature no_auto_resolve_config.feature enabled.feature
…descendents_shipped.feature shipped_changes_conflict_with_existing_feature_branch.feature preserve_git_history.feature cli_flag.feature
…descendents_shipped.feature shipped_changes_conflict_with_existing_feature_branch.feature cli_flag.feature
…ranches.feature in_sync.feature verbose.feature cli_flag.feature happy_path.feature verbose.feature happy_path.feature verbose.feature dependent_ancestor_shipped.feature dependent_ancestor_shipped_and_related_change_on_main.feature dependent_ancestor_shipped_and_unrelated_change_on_main.feature independent_ancestors_shipped.feature parent_shipped.feature parent_deleted_grandchild_conflict.feature dependent_ancestor_shipped.feature dependent_ancestor_shipped_and_main_unrelated_updated.feature dependent_ancestor_shipped_and_main_updates_same_location.feature independent_ancestors_shipped.feature parent_deleted_grandchild_conflicts.feature parent_shipped.feature auto_resolve.feature no_auto_resolve_cli.feature no_auto_resolve_config.feature enabled.feature
…descendents_shipped.feature cli_flag.feature ancestor_with_multiple_descendents_shipped.feature cli_flag.feature dependent_ancestor_shipped.feature dependent_ancestor_shipped_and_related_change_on_main.feature dependent_ancestor_shipped_and_unrelated_change_on_main.feature independent_ancestors_shipped.feature parent_shipped.feature parent_deleted_grandchild_conflict.feature dependent_ancestor_shipped.feature dependent_ancestor_shipped_and_main_unrelated_updated.feature dependent_ancestor_shipped_and_main_updates_same_location.feature independent_ancestors_shipped.feature parent_deleted_grandchild_conflicts.feature parent_shipped.feature auto_resolve.feature no_auto_resolve_cli.feature no_auto_resolve_config.feature enabled.feature
kevgo added 10 commits November 22, 2025 05:49
…descendents_shipped.feature shipped_changes_conflict_with_existing_feature_branch.feature preserve_git_history.feature ancestor_with_multiple_descendents_shipped.feature verbose.feature verbose.feature verbose.feature dependent_ancestor_shipped.feature dependent_ancestor_shipped_and_related_change_on_main.feature dependent_ancestor_shipped_and_unrelated_change_on_main.feature independent_ancestors_shipped.feature parent_shipped.feature parent_deleted_grandchild_conflict.feature dependent_ancestor_shipped.feature dependent_ancestor_shipped_and_main_unrelated_updated.feature dependent_ancestor_shipped_and_main_updates_same_location.feature independent_ancestors_shipped.feature parent_deleted_grandchild_conflicts.feature parent_shipped.feature auto_resolve.feature no_auto_resolve_cli.feature no_auto_resolve_config.feature enabled.feature sync_deleted_branch.go all.go branch_delete_if_empty_at_runtime.go branch_with_remote_gone_delete_if_empty_at_runtime.go checkout_child_or_other_if_needed.go
…anch_with_remote_gone_delete_if_empty_at_runtime.go checkout_child_or_other_if_needed.go
…anch_with_remote_gone_delete_if_empty_at_runtime.go checkout_descendent_or_other.go checkout_descendent_or_other_if_needed.go
@kevgo kevgo force-pushed the kg-sync-prune-main-other-worktree branch from 2b5d5bd to a59c604 Compare November 22, 2025 12:27
@kevgo kevgo merged commit 7493ec3 into main Nov 22, 2025
6 checks passed
@kevgo kevgo deleted the kg-sync-prune-main-other-worktree branch November 22, 2025 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

syncing a branch with deleted remote tries to check out main even if that is in another worktree

1 participant