Documentation
¶
Overview ¶
Delete Git branches that are no longer needed.
salsaflow repo prune -state=STATE
Description ¶
Delete Git branches that are no longer needed.
All story branches are checked and the branches that only contain commits associated with stories that are in the selected state or further are offered to be deleted. Both local and remote branches are affected.
This commands counts on the fact that all branches starting with story/ are forked off trunk. In case this is not met, weird things can happen.
Steps ¶
This command goes through the following steps:
- Collect all story branches.
- Drop the branches that contain a commit from a story that does not comply with the state requirements.
- Prompt the user for confirmation for every branch remaining.
- Delete the chosen branches, both local and remote.
Index ¶
Constants ¶
View Source
const StoryBranchPrefix = "story/"
Variables ¶
View Source
var Command = &gocli.Command{
Short: "delete branches that are not needed",
Long: `
Delete Git branches that are no longer needed.
All story branches are checked and the branches that only contain commits
associated with stories that are in the selected state or further
are offered to be deleted. Both local and remote branches are affected.
This commands counts on the fact that all branches starting with story/
are forked off trunk. In case this is not met, weird things can happen.
`,
Action: run,
}
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.