mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-14 11:44:32 +00:00
24 lines
860 B
Go
24 lines
860 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/rsteube/carapace"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var merge_baseCmd = &cobra.Command{
|
|
Use: "merge-base",
|
|
Short: "Find as good common ancestors as possible for a merge",
|
|
Run: func(cmd *cobra.Command, args []string) {},
|
|
GroupID: groups[group_low_level_interrogator].ID,
|
|
}
|
|
|
|
func init() {
|
|
carapace.Gen(merge_baseCmd).Standalone()
|
|
merge_baseCmd.Flags().BoolP("all", "a", false, "output all common ancestors")
|
|
merge_baseCmd.Flags().Bool("fork-point", false, "find where <commit> forked from reflog of <ref>")
|
|
merge_baseCmd.Flags().Bool("independent", false, "list revs not reachable from others")
|
|
merge_baseCmd.Flags().Bool("is-ancestor", false, "is the first one ancestor of the other?")
|
|
merge_baseCmd.Flags().Bool("octopus", false, "find ancestors for a single n-way merge")
|
|
rootCmd.AddCommand(merge_baseCmd)
|
|
}
|