Documentation ¶
Overview ¶
Cherry-pick commits into selected target branch.
salsaflow cherry-pick [-fetch] [-target=TARGET] COMMIT...
Description ¶
Use git cherry-pick to copy the specified commits into the target branch, which is the release branch by default. So this command is useful when you need to get some changes from trunk to the release branch. But it can be used for any cherry-picking when a custom target branch is specified.
This command makes sure that the target branch is up to date, but it does not fetch the repository by default. Use -fetch to update the repository before doing the check.
Steps ¶
The command goes through the following steps:
- Fetch the remote repository when -fetch is set.
- Make sure the target branch is up to date.
- Parse the commit list to get commit hashes.
- Checkout the target branch.
- Run git cherry-pick with the given list of hashes.
- Checkout the original branch.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Command = &gocli.Command{
UsageLine: "cherry-pick [-fetch] [-target=TARGET] COMMIT...",
Short: "cherry-pick commits into target branch",
Long: `
Use git cherry-pick to copy the specified commits into the target branch,
which is the release branch by default. So this command is useful when
you need to get some changes from trunk to the release branch. But it can
be used for any cherry-picking when a custom target branch is specified.
This command makes sure that the target branch is up to date,
but it does not fetch the repository by default. Use -fetch to
update the repository before doing the check.
`,
Action: run,
}
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.